4 Summary: Pico Editor Clone with Enhancements
7 Url: http://www.nano-editor.org/
8 Group: Productivity/Editors/Other
9 Source0: %{name}-%{version}.tar.bz2
10 Source1001: nano.manifest
12 BuildRequires: file-devel
13 BuildRequires: pkgconfig(ncurses)
16 GNU nano is a small and friendly text editor. It aims to emulate the
17 Pico text editor while also offering a few enhancements.
24 # Remove build time references so build-compare can do its work
25 FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%H:%%M')
26 FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y')
27 sed -i "s/__TIME__/\"$FAKE_BUILDTIME\"/" src/nano.c
28 sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" src/nano.c
31 %configure --disable-rpath --enable-utf8
37 # Remove doc files from /usr/share/nano (they should be in defaultdocdir)
38 rm -rf %{buildroot}%{_datadir}/nano/man-html/
39 rm -rf %{buildroot}%{_mandir}/fr
41 %find_lang %{name} --all-name
48 %manifest %{name}.manifest
50 %defattr(-,root,root,-)