1 | Name: nano |
---|
2 | Summary: Pico editor clone with enhancements |
---|
3 | Version: 2.2.6 |
---|
4 | Release: 1%{?_dist_release} |
---|
5 | |
---|
6 | Group: Applications/Editors |
---|
7 | License: GPLv3+ and GFDL |
---|
8 | URL: http://www.nano-editor.org/ |
---|
9 | |
---|
10 | Source0: http://www.nano-editor.org/dist/v2.2/%{name}-%{version}.tar.gz |
---|
11 | |
---|
12 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
13 | BuildRequires: gettext |
---|
14 | BuildRequires: ncurses-devel |
---|
15 | Requires(post): /sbin/install-info |
---|
16 | Requires(preun): /sbin/install-info |
---|
17 | |
---|
18 | %description |
---|
19 | GNU nano is a small and friendly text editor. It aims to emulate the |
---|
20 | Pico text editor while also offering a few enhancements. |
---|
21 | |
---|
22 | %prep |
---|
23 | %setup -q |
---|
24 | |
---|
25 | %build |
---|
26 | %configure --enable-all |
---|
27 | make |
---|
28 | |
---|
29 | %install |
---|
30 | rm -rf %{buildroot} |
---|
31 | make DESTDIR="%{buildroot}" install |
---|
32 | |
---|
33 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir |
---|
34 | |
---|
35 | %clean |
---|
36 | rm -rf %{buildroot} |
---|
37 | |
---|
38 | %post |
---|
39 | /sbin/install-info --info-dir=%{_infodir} %{_infodir}/nano.info.gz |
---|
40 | |
---|
41 | %preun |
---|
42 | if [ $1 = 0 ] ;then |
---|
43 | /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/nano.info.gz |
---|
44 | fi |
---|
45 | |
---|
46 | %files |
---|
47 | %defattr(-,root,root) |
---|
48 | %doc AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README THANKS TODO |
---|
49 | %doc doc/faq.html doc/nanorc.sample |
---|
50 | %{_bindir}/* |
---|
51 | %{_mandir}/man*/* |
---|
52 | %{_mandir}/fr/man*/* |
---|
53 | %{_infodir}/nano.info* |
---|
54 | %{_datadir}/locale/*/LC_MESSAGES/nano.mo |
---|
55 | %{_datadir}/nano/* |
---|
56 | |
---|
57 | %changelog |
---|
58 | * Sun Dec 01 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.6-1 |
---|
59 | - new upstream release |
---|
60 | |
---|
61 | * Tue Oct 12 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.5-1 |
---|
62 | - new upstream release |
---|
63 | |
---|
64 | * Fri Mar 19 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.3-1 |
---|
65 | - new upstream release |
---|
66 | |
---|
67 | * Fri Jan 1 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.1-1 |
---|
68 | - new upstream release |
---|
69 | - added %post, %preun section |
---|
70 | |
---|
71 | * Fri Mar 20 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0.9-1 |
---|
72 | - Initial build for Vine Linux. |
---|