From c6919423d0a8e35c0d4fe328b740319927b2830b Mon Sep 17 00:00:00 2001 From: He Chenlan <210hcl@gmail.com> Date: Tue, 2 Feb 2021 21:59:01 +0800 Subject: [PATCH] nano openrc sed partly finished --- nano.spec | 41 +++++++++++++++++++++++++++++++++++++++++ openrc.spec | 29 +++++++++++++++++++++++++++++ sed.spec | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 116 insertions(+) create mode 100644 nano.spec create mode 100644 openrc.spec create mode 100644 sed.spec diff --git a/nano.spec b/nano.spec new file mode 100644 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 index 0000000..98d4ba5 --- /dev/null +++ b/openrc.spec @@ -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 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 -- 2.11.0