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