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: 703d9b5317486c6f49918e27c435fbc9
10 Source1: %{name}.desktop
12 Patch0: %{name}-info.patch
13 URL: https://www.nano-editor.org/
14 BuildRequires: autoconf >= 2.69
15 BuildRequires: automake >= 1:1.14
16 BuildRequires: gettext-tools >= 0.18.3
18 BuildRequires: libmagic-devel
19 BuildRequires: ncurses-devel >= 5.0
20 BuildRequires: pkgconfig
21 BuildRequires: tar >= 1:1.22
22 BuildRequires: texinfo
24 BuildRequires: zlib-devel
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 GNU nano (Nano's ANOther editor) is a small, free and friendly editor
29 which aims to replace Pico, the default editor included in the
30 non-free Pine package. Rather than just copying Pico's look and feel,
31 nano also implements some missing (or disabled by default) features in
32 Pico, such as "search and replace" and "go to line number".
34 %description -l pl.UTF-8
35 GNU nano (Nano's ANOther editor - Nano to kolejny edytor) to mały,
36 otwarty i przyjazny edytor, którego celem jest zastąpienie Pico,
37 standardowego edytora zawartego w niewolnym pakiecie Pine. Oprócz
38 wyglądu oraz interfejsu, nano posiada kilka brakujących (lub
39 wyłączonych standardowo) w Pico funkcji, takich jak: "znajdź i zastąp"
40 lub "idź do wiersza numer".
57 rm -rf $RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
61 DESTDIR=$RPM_BUILD_ROOT
63 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
64 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
69 rm -rf $RPM_BUILD_ROOT
71 %post -p /sbin/postshell
72 -/usr/sbin/fix-info-dir -c %{_infodir}
74 %postun -p /sbin/postshell
75 -/usr/sbin/fix-info-dir -c %{_infodir}
77 %files -f %{name}.lang
78 %defattr(644,root,root,755)
79 %doc AUTHORS ChangeLog IMPROVEMENTS NEWS README THANKS TODO doc/{faq.html,sample.nanorc}
80 %attr(755,root,root) %{_bindir}/nano
81 %attr(755,root,root) %{_bindir}/rnano
83 %{_desktopdir}/nano.desktop
84 %{_pixmapsdir}/nano.png
85 %{_mandir}/man1/nano.1*
86 %{_mandir}/man1/rnano.1*
87 %{_mandir}/man5/nanorc.5*
88 %{_infodir}/nano.info*