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