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