]>
Commit | Line | Data |
---|---|---|
c702279a | 1 | Summary: nano - Nano's ANOther editor, an enhanced free Pico clone |
253774de | 2 | Summary(pl.UTF-8): nano - jeszcze jeden edytor, darmowy, rozbudowany klon Pico |
73c55e77 | 3 | Name: nano |
593198c5 | 4 | Version: 2.2.6 |
62b517ee | 5 | Release: 5 |
65d41850 | 6 | License: GPL v3+ |
73c55e77 | 7 | Group: Applications/Editors |
fb58fead | 8 | Source0: http://www.nano-editor.org/dist/v2.2/%{name}-%{version}.tar.gz |
593198c5 | 9 | # Source0-md5: 03233ae480689a008eb98feb1b599807 |
663d5965 | 10 | Source1: %{name}.desktop |
8aba7ac1 | 11 | Source2: %{name}.png |
12 | Patch0: %{name}-info.patch | |
388a4e07 | 13 | Patch1: %{name}-ncurses-ncurses.h.patch |
9d8efbf5 | 14 | URL: http://www.nano-editor.org/ |
70f31c9e | 15 | BuildRequires: autoconf |
16 | BuildRequires: automake | |
c97a9cd3 | 17 | BuildRequires: gettext-tools |
d668e20e | 18 | BuildRequires: glib2-devel |
95672197 | 19 | BuildRequires: groff |
73c55e77 | 20 | BuildRequires: ncurses-devel >= 5.0 |
c0a89782 | 21 | BuildRequires: texinfo |
dc38c714 | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
73c55e77 | 23 | |
24 | %description | |
c702279a | 25 | nano (Nano's ANOther editor) is a small, free and friendly editor |
26 | which aims to replace Pico, the default editor included in the | |
27 | non-free Pine package. Rather than just copying Pico's look and feel, | |
28 | nano also implements some missing (or disabled by default) features in | |
29 | Pico, such as "search and replace" and "go to line number". | |
73c55e77 | 30 | |
e1d07199 JR |
31 | %description -l pl.UTF-8 |
32 | nano to mały, otwarty i przyjazny edytor, którego celem jest | |
33 | zastąpienie Pico, standardowego edytora zawartego w niewolnym pakiecie | |
34 | Pine. Oprócz wyglądu oraz interfejsu, nano posiada kilka brakujących | |
35 | (lub wyłączonych standardowo) w Pico funkcji, takich jak: "znajdź i | |
36 | zastąp" lub "idź do wiersza numer". | |
5617a770 | 37 | |
73c55e77 | 38 | %prep |
39 | %setup -q | |
c702279a | 40 | %patch0 -p1 |
41 | %patch1 -p2 | |
1e1d3339 | 42 | |
73c55e77 | 43 | %build |
cb5d3d12 | 44 | %{__gettextize} |
c702279a | 45 | %{__aclocal} -I m4 |
ed992bca | 46 | %{__autoconf} |
388a4e07 | 47 | %{__autoheader} |
ed992bca | 48 | %{__automake} |
c702279a | 49 | %configure \ |
50 | --enable-all | |
9605f910 | 51 | %{__make} |
73c55e77 | 52 | |
53 | %install | |
26732ec3 | 54 | rm -rf $RPM_BUILD_ROOT |
d936a6d9 | 55 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} |
73c55e77 | 56 | |
bed1b070 PG |
57 | %{__make} install \ |
58 | DESTDIR=$RPM_BUILD_ROOT | |
73c55e77 | 59 | |
d936a6d9 | 60 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
8aba7ac1 | 61 | install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} |
663d5965 | 62 | |
73c55e77 | 63 | %find_lang %{name} |
64 | ||
26732ec3 | 65 | %clean |
66 | rm -rf $RPM_BUILD_ROOT | |
73c55e77 | 67 | |
6199d524 ER |
68 | %post -p /sbin/postshell |
69 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
c0a89782 | 70 | |
6199d524 ER |
71 | %postun -p /sbin/postshell |
72 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
c0a89782 | 73 | |
73c55e77 | 74 | %files -f %{name}.lang |
75 | %defattr(644,root,root,755) | |
c702279a | 76 | %doc AUTHORS BUGS ChangeLog NEWS README THANKS TODO UPGRADE doc/nanorc.sample doc/faq.html |
73c55e77 | 77 | %attr(755,root,root) %{_bindir}/nano |
bf60c6fd | 78 | %attr(755,root,root) %{_bindir}/rnano |
d936a6d9 | 79 | %{_desktopdir}/nano.desktop |
6447cc1f | 80 | %{_mandir}/man[15]/* |
c702279a | 81 | %lang(fr) %{_mandir}/fr/man[15]/* |
c0a89782 | 82 | %{_infodir}/*info* |
65d41850 | 83 | %{_pixmapsdir}/nano.png |
c702279a | 84 | %{_datadir}/nano |