]> git.pld-linux.org Git - packages/nano.git/blob - nano.spec
- updated to 2.1.0
[packages/nano.git] / nano.spec
1 Summary:        nano - Nano's ANOther editor, an enhanced free Pico clone
2 Summary(pl.UTF-8):      nano - jeszcze jeden edytor, darmowy, rozbudowany klon Pico
3 Name:           nano
4 Version:        2.1.0
5 Release:        1
6 License:        GPL v2
7 Group:          Applications/Editors
8 Source0:        http://www.nano-editor.org/dist/v2.1/%{name}-%{version}.tar.gz
9 # Source0-md5:  ee854d98893c6bd07b903c1b5c963b06
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
16 BuildRequires:  automake
17 BuildRequires:  gettext-devel
18 BuildRequires:  glib-devel
19 BuildRequires:  ncurses-devel >= 5.0
20 BuildRequires:  texinfo
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
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".
29
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".
36
37 %prep
38 %setup -q
39 %patch0 -p1
40 %patch1 -p2
41
42 %build
43 %{__gettextize}
44 %{__aclocal} -I m4
45 %{__autoconf}
46 %{__autoheader}
47 %{__automake}
48 %configure \
49         --enable-all
50 %{__make}
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
55
56 %{__make} install \
57         DESTDIR=$RPM_BUILD_ROOT
58
59 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
60 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
61
62 %find_lang %{name}
63
64 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
65
66 %clean
67 rm -rf $RPM_BUILD_ROOT
68
69 %post   -p      /sbin/postshell
70 -/usr/sbin/fix-info-dir -c %{_infodir}
71
72 %postun -p      /sbin/postshell
73 -/usr/sbin/fix-info-dir -c %{_infodir}
74
75 %files -f %{name}.lang
76 %defattr(644,root,root,755)
77 %doc AUTHORS BUGS ChangeLog NEWS README THANKS TODO UPGRADE doc/nanorc.sample doc/faq.html
78 %attr(755,root,root) %{_bindir}/nano
79 %attr(755,root,root) %{_bindir}/rnano
80 %{_desktopdir}/nano.desktop
81 %{_mandir}/man[15]/*
82 %lang(fr) %{_mandir}/fr/man[15]/*
83 %{_infodir}/*info*
84 %{_pixmapsdir}/*
85 %{_datadir}/nano
This page took 0.027121 seconds and 3 git commands to generate.