1 Summary: GNU nano - Nano's ANOther editor, an enhanced free Pico clone
2 Summary(pl.UTF-8): GNU nano - jeszcze jeden edytor: darmowy, rozbudowany klon Pico
7 Group: Applications/Editors
8 Source0: https://www.nano-editor.org/dist/latest/%{name}-%{version}.tar.xz
9 # Source0-md5: e5cbe298e4362fabb7e55173862b9a3d
10 Source1: %{name}.desktop
12 Patch0: %{name}-info.patch
13 Patch1: %{name}-ncurses-ncurses.h.patch
14 URL: http://www.nano-editor.org/
15 BuildRequires: autoconf >= 2.69
16 BuildRequires: automake >= 1:1.14
17 BuildRequires: gettext-tools >= 0.18.3
19 BuildRequires: libmagic-devel
20 BuildRequires: ncurses-devel >= 5.0
21 BuildRequires: pkgconfig
22 BuildRequires: tar >= 1:1.22
23 BuildRequires: texinfo
25 BuildRequires: zlib-devel
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 GNU nano (Nano's ANOther editor) is a small, free and friendly editor
30 which aims to replace Pico, the default editor included in the
31 non-free Pine package. Rather than just copying Pico's look and feel,
32 nano also implements some missing (or disabled by default) features in
33 Pico, such as "search and replace" and "go to line number".
35 %description -l pl.UTF-8
36 GNU nano (Nano's ANOther editor - Nano to kolejny edytor) to mały,
37 otwarty i przyjazny edytor, którego celem jest zastąpienie Pico,
38 standardowego edytora zawartego w niewolnym pakiecie Pine. Oprócz
39 wyglądu oraz interfejsu, nano posiada kilka brakujących (lub
40 wyłączonych standardowo) w Pico funkcji, takich jak: "znajdź i zastąp"
41 lub "idź do wiersza numer".
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
63 DESTDIR=$RPM_BUILD_ROOT
65 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
66 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
71 rm -rf $RPM_BUILD_ROOT
73 %post -p /sbin/postshell
74 -/usr/sbin/fix-info-dir -c %{_infodir}
76 %postun -p /sbin/postshell
77 -/usr/sbin/fix-info-dir -c %{_infodir}
79 %files -f %{name}.lang
80 %defattr(644,root,root,755)
81 %doc AUTHORS ChangeLog IMPROVEMENTS NEWS README THANKS TODO doc/{faq.html,sample.nanorc}
82 %attr(755,root,root) %{_bindir}/nano
83 %attr(755,root,root) %{_bindir}/rnano
85 %{_desktopdir}/nano.desktop
86 %{_pixmapsdir}/nano.png
87 %{_mandir}/man1/nano.1*
88 %{_mandir}/man1/rnano.1*
89 %{_mandir}/man5/nanorc.5*
90 %{_infodir}/nano.info*