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