diff --git a/nano-4.5.tar.xz b/nano-4.5.tar.xz new file mode 100644 index 0000000000000000000000000000000000000000..9da2d13a1ef65d4fd30bd36b008a026ba77c7d86 Binary files /dev/null and b/nano-4.5.tar.xz differ diff --git a/nano.spec b/nano.spec new file mode 100644 index 0000000000000000000000000000000000000000..c98cb94ed2fe99a5819c4ab2bb28dc2522982e6c --- /dev/null +++ b/nano.spec @@ -0,0 +1,64 @@ +Name: nano +Version: 4.5 +Release: 2 +Summary: Nano is now part of Apache CouchDB +License: GPLv3+ +URL: https://www.nano-editor.org +Source0: https://www.nano-editor.org/dist/latest/%{name}-%{version}.tar.xz + +BuildRequires: file-devel gettext-devel gcc git ncurses-devel sed texinfo groff +Conflicts: filesystem < 3 + +%description +Nano is now part of Apache CouchDB. + +%package_help + +%prep +%autosetup -S git + + +%build +install -d build +cd build +%global _configure ../configure +%configure +%make_build + +sed -e 's/# set nowrap/set nowrap/' \ + -e 's/^#.*set speller.*$/set speller "hunspell"/' \ + -e 's|^# \(include "/usr/share/nano/\*.nanorc"\)|\1|' \ + +%install +cd build +%make_install +rm -rf %{buildroot}%{_infodir}/dir +rm -rf %{buildroot}%{_docdir}/nano/{nano,nano.1,nanorc.5,rnano.1}.html + +install -d %{buildroot}%{_sysconfdir} + +%find_lang %{name} + +%files -f build/%{name}.lang +%defattr(-,root,root) +%doc AUTHORS +%license COPYING + +%{_bindir}/* +%{_datadir}/nano +%{_infodir}/nano.info* + +%files help +%defattr(-,root,root) +%doc ChangeLog INSTALL NEWS README THANKS TODO +%doc build/doc/sample.nanorc +%doc doc/nano.html +%{_mandir}/man*/* +%{_defaultdocdir}/nano/faq.html + +%changelog +* Fri Jan 17 2020 Lei Zhang - 4.5-2 +- Remove useless nanorc config file + +* Tue Nov 26 2019 openEuler Buildteam - 4.5-1 +- Package init