]> git.pld-linux.org Git - packages/nano.git/blob - nano.spec
- rel. 4
[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:        4
6 License:        GPL
7 Group:          Applications/Editors
8 Source0:        http://www.nano-editor.org/dist/v1.2/%{name}-%{version}.tar.gz
9 # Source0-md5:  188d24b9cc4c1041ac58d6b6f7941eb4
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 the editor formerly known as TIP (TIP
25 Isn't Pico). It aims to emulate Pico as closely as possible while also
26 offering a few enhancements.
27
28 %description -l pl
29 nano to edytor wcze¶niej znany jako TIP (Tip to nIe Pico). Jego celem
30 jest emulowanie Pico tak dobrze jak to mo¿liwe, jednocze¶nie oferuj±c
31 kilka rozszerzeñ.
32
33 %prep
34 %setup -q
35 %patch0 -p1
36 %patch1 -p1
37
38 %build
39 rm -f missing m4/*.m4
40 %{__gettextize}
41 %{__aclocal}
42 %{__autoconf}
43 %{__autoheader}
44 %{__automake}
45 %configure
46 %{__make}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT{%{_applnkdir}/Editors,%{_pixmapsdir}}
51
52 %{__make} install DESTDIR=$RPM_BUILD_ROOT
53
54 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Editors
55 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
56
57 %find_lang %{name}
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %post
63 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
64
65 %postun
66 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
67
68 %files -f %{name}.lang
69 %defattr(644,root,root,755)
70 %doc README ChangeLog AUTHORS NEWS TODO
71 %attr(755,root,root) %{_bindir}/nano
72 %{_applnkdir}/Editors/nano.desktop
73 %{_mandir}/man[15]/*
74 %{_infodir}/*info*
75 %{_pixmapsdir}/*
This page took 0.054811 seconds and 4 git commands to generate.