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