]> git.pld-linux.org Git - packages/nano.git/blob - nano.spec
- check-files cleanup
[packages/nano.git] / nano.spec
1 Summary:        nano - Nano's ANOther editor, an enhanced free Pico clone
2 Summary(pl):    nano - jeszcze jeden edytor, darmowy, rozbudowany klon Pico
3 Name:           nano
4 Version:        2.0.2
5 Release:        1
6 License:        GPL v2
7 Group:          Applications/Editors
8 Source0:        http://www.nano-editor.org/dist/v2.0/%{name}-%{version}.tar.gz
9 # Source0-md5:  38046476096530e19a7e805513c64108
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
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
70 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
71
72 %postun
73 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
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 %{_desktopdir}/nano.desktop
80 %{_mandir}/man[15]/*
81 %lang(fr) %{_mandir}/fr/man[15]/*
82 %{_infodir}/*info*
83 %{_pixmapsdir}/*
84 %{_datadir}/nano
This page took 0.06809 seconds and 3 git commands to generate.