]> git.pld-linux.org Git - packages/nano.git/blob - nano.spec
- bump release to 3 for allow upgrade from RH,
[packages/nano.git] / nano.spec
1 Summary:        nano (Nano's ANOther editor)
2 Summary(pl):    nano - jeszcze jeden edytor
3 Name:           nano
4 Version:        1.2.1
5 Release:        3
6 License:        GPL
7 Group:          Applications/Editors
8 Source0:        http://www.nano-editor.org/dist/v1.2/%{name}-%{version}.tar.gz
9 Source1:        %{name}.desktop
10 Source2:        %{name}.png
11 Patch0:         %{name}-info.patch
12 Patch1:         %{name}-ncurses-ncurses.h.patch
13 URL:            http://www.nano-editor.org/
14 BuildRequires:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  gettext-devel
17 BuildRequires:  ncurses-devel >= 5.0
18 BuildRequires:  texinfo
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 nano (Nano's ANOther editor) is the editor formerly known as TIP (TIP
23 Isn't Pico). It aims to emulate Pico as closely as possible while also
24 offering a few enhancements.
25
26 %description -l pl
27 nano to edytor wcze¶niej znany jako TIP (Tip to nIe Pico). Jego celem
28 jest emulowanie Pico tak dobrze jak to mo¿liwe, jednocze¶nie oferuj±c
29 kilka rozszerzeñ.
30
31 %prep
32 %setup -q
33 %patch0 -p1
34 %patch1 -p1
35
36 %build
37 rm -f missing m4/*.m4
38 %{__gettextize}
39 %{__aclocal}
40 %{__autoconf}
41 %{__autoheader}
42 %{__automake}
43 %configure
44 %{__make}
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT{%{_applnkdir}/Editors,%{_pixmapsdir}}
49
50 %{__make} install DESTDIR=$RPM_BUILD_ROOT
51
52 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Editors
53 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
54
55 %find_lang %{name}
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %post
61 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
62
63 %postun
64 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
65
66 %files -f %{name}.lang
67 %defattr(644,root,root,755)
68 %doc README ChangeLog AUTHORS NEWS TODO
69 %attr(755,root,root) %{_bindir}/nano
70 %{_applnkdir}/Editors/nano.desktop
71 %{_mandir}/man[15]/*
72 %{_infodir}/*info*
73 %{_pixmapsdir}/*
This page took 0.03037 seconds and 4 git commands to generate.