]>
Commit | Line | Data |
---|---|---|
47cb852f JB |
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 | |
73c55e77 | 3 | Name: nano |
61047b7b JB |
4 | Version: 5.8 |
5 | Release: 1 | |
65d41850 | 6 | License: GPL v3+ |
73c55e77 | 7 | Group: Applications/Editors |
ff4fbe8a | 8 | Source0: https://www.nano-editor.org/dist/latest/%{name}-%{version}.tar.xz |
61047b7b | 9 | # Source0-md5: d2249e3dd108c830df00efd7c1b79d86 |
663d5965 | 10 | Source1: %{name}.desktop |
8aba7ac1 | 11 | Source2: %{name}.png |
12 | Patch0: %{name}-info.patch | |
2196017b | 13 | URL: https://www.nano-editor.org/ |
8e3cb499 JB |
14 | BuildRequires: autoconf >= 2.69 |
15 | BuildRequires: automake >= 1:1.14 | |
16 | BuildRequires: gettext-tools >= 0.18.3 | |
95672197 | 17 | BuildRequires: groff |
47cb852f | 18 | BuildRequires: libmagic-devel |
73c55e77 | 19 | BuildRequires: ncurses-devel >= 5.0 |
8e3cb499 JB |
20 | BuildRequires: pkgconfig |
21 | BuildRequires: tar >= 1:1.22 | |
c0a89782 | 22 | BuildRequires: texinfo |
8e3cb499 | 23 | BuildRequires: xz |
47cb852f | 24 | BuildRequires: zlib-devel |
dc38c714 | 25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
73c55e77 | 26 | |
27 | %description | |
47cb852f | 28 | GNU nano (Nano's ANOther editor) is a small, free and friendly editor |
c702279a | 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". | |
73c55e77 | 33 | |
e1d07199 | 34 | %description -l pl.UTF-8 |
47cb852f JB |
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". | |
5617a770 | 41 | |
73c55e77 | 42 | %prep |
43 | %setup -q | |
c702279a | 44 | %patch0 -p1 |
1e1d3339 | 45 | |
73c55e77 | 46 | %build |
cb5d3d12 | 47 | %{__gettextize} |
c702279a | 48 | %{__aclocal} -I m4 |
ed992bca | 49 | %{__autoconf} |
388a4e07 | 50 | %{__autoheader} |
ed992bca | 51 | %{__automake} |
47cb852f JB |
52 | %configure |
53 | ||
9605f910 | 54 | %{__make} |
73c55e77 | 55 | |
56 | %install | |
26732ec3 | 57 | rm -rf $RPM_BUILD_ROOT |
d936a6d9 | 58 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} |
73c55e77 | 59 | |
bed1b070 PG |
60 | %{__make} install \ |
61 | DESTDIR=$RPM_BUILD_ROOT | |
73c55e77 | 62 | |
d936a6d9 | 63 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
8aba7ac1 | 64 | install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} |
663d5965 | 65 | |
73c55e77 | 66 | %find_lang %{name} |
67 | ||
26732ec3 | 68 | %clean |
69 | rm -rf $RPM_BUILD_ROOT | |
73c55e77 | 70 | |
47cb852f | 71 | %post -p /sbin/postshell |
6199d524 | 72 | -/usr/sbin/fix-info-dir -c %{_infodir} |
c0a89782 | 73 | |
47cb852f | 74 | %postun -p /sbin/postshell |
6199d524 | 75 | -/usr/sbin/fix-info-dir -c %{_infodir} |
c0a89782 | 76 | |
73c55e77 | 77 | %files -f %{name}.lang |
78 | %defattr(644,root,root,755) | |
47cb852f | 79 | %doc AUTHORS ChangeLog IMPROVEMENTS NEWS README THANKS TODO doc/{faq.html,sample.nanorc} |
73c55e77 | 80 | %attr(755,root,root) %{_bindir}/nano |
bf60c6fd | 81 | %attr(755,root,root) %{_bindir}/rnano |
47cb852f | 82 | %{_datadir}/nano |
d936a6d9 | 83 | %{_desktopdir}/nano.desktop |
65d41850 | 84 | %{_pixmapsdir}/nano.png |
47cb852f JB |
85 | %{_mandir}/man1/nano.1* |
86 | %{_mandir}/man1/rnano.1* | |
87 | %{_mandir}/man5/nanorc.5* | |
88 | %{_infodir}/nano.info* |