]> git.pld-linux.org Git - packages/nano.git/blob - nano.spec
9b306338060287a45d395a942a8f87603085b82f
[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:        2.8.4
5 Release:        1
6 License:        GPL v3+
7 Group:          Applications/Editors
8 Source0:        https://www.nano-editor.org/dist/v2.8/%{name}-%{version}.tar.xz
9 # Source0-md5:  02ff28870194178595b287fc16fa611b
10 Source1:        %{name}.desktop
11 Source2:        %{name}.png
12 Patch0:         %{name}-info.patch
13 Patch1:         %{name}-ncurses-ncurses.h.patch
14 URL:            http://www.nano-editor.org/
15 BuildRequires:  autoconf >= 2.69
16 BuildRequires:  automake >= 1:1.14
17 BuildRequires:  gettext-tools >= 0.18.3
18 BuildRequires:  groff
19 BuildRequires:  libmagic-devel
20 BuildRequires:  ncurses-devel >= 5.0
21 BuildRequires:  pkgconfig
22 BuildRequires:  tar >= 1:1.22
23 BuildRequires:  texinfo
24 BuildRequires:  xz
25 BuildRequires:  zlib-devel
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 GNU nano (Nano's ANOther editor) is a small, free and friendly editor
30 which aims to replace Pico, the default editor included in the
31 non-free Pine package. Rather than just copying Pico's look and feel,
32 nano also implements some missing (or disabled by default) features in
33 Pico, such as "search and replace" and "go to line number".
34
35 %description -l pl.UTF-8
36 GNU nano (Nano's ANOther editor - Nano to kolejny edytor) to mały,
37 otwarty i przyjazny edytor, którego celem jest zastąpienie Pico,
38 standardowego edytora zawartego w niewolnym pakiecie Pine. Oprócz
39 wyglądu oraz interfejsu, nano posiada kilka brakujących (lub
40 wyłączonych standardowo) w Pico funkcji, takich jak: "znajdź i zastąp"
41 lub "idź do wiersza numer".
42
43 %prep
44 %setup -q
45 %patch0 -p1
46 %patch1 -p2
47
48 %build
49 %{__gettextize}
50 %{__aclocal} -I m4
51 %{__autoconf}
52 %{__autoheader}
53 %{__automake}
54 %configure
55
56 %{__make}
57
58 %install
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
61
62 %{__make} install \
63         DESTDIR=$RPM_BUILD_ROOT
64
65 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
66 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
67
68 %find_lang %{name}
69
70 %clean
71 rm -rf $RPM_BUILD_ROOT
72
73 %post   -p /sbin/postshell
74 -/usr/sbin/fix-info-dir -c %{_infodir}
75
76 %postun -p /sbin/postshell
77 -/usr/sbin/fix-info-dir -c %{_infodir}
78
79 %files -f %{name}.lang
80 %defattr(644,root,root,755)
81 %doc AUTHORS ChangeLog IMPROVEMENTS NEWS README THANKS TODO doc/{faq.html,sample.nanorc}
82 %attr(755,root,root) %{_bindir}/nano
83 %attr(755,root,root) %{_bindir}/rnano
84 %{_datadir}/nano
85 %{_desktopdir}/nano.desktop
86 %{_pixmapsdir}/nano.png
87 %{_mandir}/man1/nano.1*
88 %{_mandir}/man1/rnano.1*
89 %{_mandir}/man5/nanorc.5*
90 %{_infodir}/nano.info*
This page took 0.041657 seconds and 2 git commands to generate.