]> git.pld-linux.org Git - packages/nano.git/blob - nano.spec
- nb -> no, rel. 6
[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:        6
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 Patch2:         %{name}-no.patch
15 URL:            http://www.nano-editor.org/
16 BuildRequires:  autoconf
17 BuildRequires:  automake
18 BuildRequires:  gettext-devel
19 BuildRequires:  glib-devel
20 BuildRequires:  ncurses-devel >= 5.0
21 BuildRequires:  texinfo
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 nano (Nano's ANOther editor) is the editor formerly known as TIP (TIP
26 Isn't Pico). It aims to emulate Pico as closely as possible while also
27 offering a few enhancements.
28
29 %description -l pl
30 nano to edytor wcze¶niej znany jako TIP (Tip to nIe Pico). Jego celem
31 jest emulowanie Pico tak dobrze jak to mo¿liwe, jednocze¶nie oferuj±c
32 kilka rozszerzeñ.
33
34 %prep
35 %setup -q
36 %patch0 -p1
37 %patch1 -p1
38 %patch2 -p1
39
40 mv -f po/{nb,no}.po
41 mv -f po/{nb,no}.gmo
42
43 %build
44 rm -f missing m4/*.m4
45 %{__gettextize}
46 %{__aclocal}
47 %{__autoconf}
48 %{__autoheader}
49 %{__automake}
50 %configure
51 %{__make}
52
53 %install
54 rm -rf $RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT{%{_applnkdir}/Editors,%{_pixmapsdir}}
56
57 %{__make} install \
58         DESTDIR=$RPM_BUILD_ROOT
59
60 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Editors
61 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
62
63 %find_lang %{name}
64
65 %clean
66 rm -rf $RPM_BUILD_ROOT
67
68 %post
69 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
70
71 %postun
72 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
73
74 %files -f %{name}.lang
75 %defattr(644,root,root,755)
76 %doc README ChangeLog AUTHORS NEWS TODO
77 %attr(755,root,root) %{_bindir}/nano
78 %{_applnkdir}/Editors/nano.desktop
79 %{_mandir}/man[15]/*
80 %{_infodir}/*info*
81 %{_pixmapsdir}/*
This page took 0.075656 seconds and 4 git commands to generate.