OSDN Git Service

nano openrc sed partly finished
authorHe Chenlan <210hcl@gmail.com>
Tue, 2 Feb 2021 13:59:01 +0000 (21:59 +0800)
committerHe Chenlan <210hcl@gmail.com>
Tue, 2 Feb 2021 13:59:01 +0000 (21:59 +0800)
nano.spec [new file with mode: 0644]
openrc.spec [new file with mode: 0644]
sed.spec [new file with mode: 0644]

diff --git a/nano.spec b/nano.spec
new file mode 100644 (file)
index 0000000..195dcb7
--- /dev/null
+++ b/nano.spec
@@ -0,0 +1,41 @@
+Summary: A small, friendly text editor
+Version: 5.5
+Release: 0
+License: GPLv3+
+URL: https://nano-editor.org/
+Source0: https://mirrors.sjtug.sjtu.edu.cn/gnu/%{name}/%{name}-%{version}.tar.xz
+Source1: https://mirrors.sjtug.sjtu.edu.cn/gnu/%{name}/%{name}-%{version}.tar.xz.sig
+Source2: nanorc
+
+%description
+GNU nano was designed to be a free replacement for the Pico text editor, part
+of the Pine email suite from The University of Washington. It aimed to "emulate
+Pico as closely as is reasonable and then include extra functionality".
+
+%prep
+%setup -q
+
+%build
+%configure \
+  --disable-rpath \
+  --enable-utf8
+make %{?_smp_mflags}
+sed -e 's/^#.*set speller.*$/set speller "hunspell"/' \
+    -e 's|^# \(include "/usr/share/nano/\*.nanorc"\)|\1|' \
+    %{SOURCE2} doc/sample.nanorc > ./nanorc
+%install
+%make_install
+
+mkdir -p %{buildroot}%{_sysconfdir}
+install -m 0644 ./nanorc %{buildroot}%{_sysconfdir}/nanorc
+
+
+%files
+%defattr(-,root,root,-)
+%doc
+
+
+%changelog
+* Tue Feb  2 2021 He Chenlan <210hcl@gmail.com> - 
+- Initial build.
+
diff --git a/openrc.spec b/openrc.spec
new file mode 100644 (file)
index 0000000..98d4ba5
--- /dev/null
@@ -0,0 +1,29 @@
+
+Name:           openrc
+Version:        0.42.1
+Release:        0
+Summary:        OpenRC manages the services, startup and shutdown of a host
+License:        2BSD
+URL:            https://github.com/OpenRC/openrc
+Source0:        https://github.com/OpenRC/openrc/archive/0.42.1.tar.gz
+Patch0:         gcc10.patch     
+
+%description
+OpenRC manages the services, startup and shutdown of a host
+
+%prep
+%setup
+%patch0 -p1
+%build
+make %{?_smp_mflags}
+
+%check
+make check %{?_smp_mflags}
+
+%install
+%make_install
+
+%files
+
+
+%changelog
diff --git a/sed.spec b/sed.spec
new file mode 100644 (file)
index 0000000..71b7be7
--- /dev/null
+++ b/sed.spec
@@ -0,0 +1,46 @@
+#
+# spec file for package sed
+#
+# Copyright (c) 2021 SUSE LLC
+#
+# All modifications and additions to the file contributed by third parties
+# remain the property of their copyright owners, unless otherwise agreed
+# upon. The license for this file, and modifications and additions to the
+# file, is the same license as for the pristine package itself (unless the
+# license for the pristine package is not an Open Source License, in which
+# case the license is the MIT License). An "Open Source License" is a
+# license that conforms to the Open Source Definition (Version 1.9)
+# published by the Open Source Initiative.
+
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
+#
+
+
+Name:           sed
+Version:        
+Release:        0
+Summary:        
+License:        
+URL:            
+Source0:        
+BuildRequires:  
+Requires:       
+
+%description
+
+
+%prep
+%setup -q
+
+%build
+%configure
+make %{?_smp_mflags}
+
+%install
+%make_install
+
+%files
+%license add-license-file-here
+%doc add-docs-here
+
+%changelog