]> git.pld-linux.org Git - packages/nano.git/blob - nano.spec
b1e3f703e0296675b9b8193aa7e23cd3129f1030
[packages/nano.git] / nano.spec
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
3 Name:           nano
4 Version:        5.8
5 Release:        1
6 License:        GPL v3+
7 Group:          Applications/Editors
8 Source0:        https://www.nano-editor.org/dist/latest/%{name}-%{version}.tar.xz
9 # Source0-md5:  d2249e3dd108c830df00efd7c1b79d86
10 Source1:        %{name}.desktop
11 Source2:        %{name}.png
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
17 BuildRequires:  groff
18 BuildRequires:  libmagic-devel
19 BuildRequires:  ncurses-devel >= 5.0
20 BuildRequires:  pkgconfig
21 BuildRequires:  tar >= 1:1.22
22 BuildRequires:  texinfo
23 BuildRequires:  xz
24 BuildRequires:  zlib-devel
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
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".
33
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".
41
42 %prep
43 %setup -q
44 %patch0 -p1
45
46 %build
47 %{__gettextize}
48 %{__aclocal} -I m4
49 %{__autoconf}
50 %{__autoheader}
51 %{__automake}
52 %configure
53
54 %{__make}
55
56 %install
57 rm -rf $RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
59
60 %{__make} install \
61         DESTDIR=$RPM_BUILD_ROOT
62
63 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
64 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
65
66 %find_lang %{name}
67
68 %clean
69 rm -rf $RPM_BUILD_ROOT
70
71 %post   -p /sbin/postshell
72 -/usr/sbin/fix-info-dir -c %{_infodir}
73
74 %postun -p /sbin/postshell
75 -/usr/sbin/fix-info-dir -c %{_infodir}
76
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
82 %{_datadir}/nano
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*
This page took 0.107104 seconds and 2 git commands to generate.