Chris Allegretta | 06d6237 | 2002-03-30 16:51:38 +0000 | [diff] [blame] | 1 | %define name @PACKAGE@ |
David Lawrence Ramsey | 6b9e7cf | 2006-11-05 03:44:41 +0000 | [diff] [blame] | 2 | %define version @VERSION@ |
| 3 | %define release 1 |
Chris Allegretta | 06d6237 | 2002-03-30 16:51:38 +0000 | [diff] [blame] | 4 | |
Chris Allegretta | 06d6237 | 2002-03-30 16:51:38 +0000 | [diff] [blame] | 5 | Name : %{name} |
David Lawrence Ramsey | 6b9e7cf | 2006-11-05 03:44:41 +0000 | [diff] [blame] | 6 | Version : %{version} |
| 7 | Release : %{release} |
Benno Schulenberg | 0424243 | 2015-06-04 18:05:27 +0000 | [diff] [blame] | 8 | Summary : a user-friendly editor, a Pico clone with enhancements |
| 9 | |
Benno Schulenberg | c5c0d74 | 2014-06-13 20:52:39 +0000 | [diff] [blame] | 10 | License : GPLv3+ |
David Lawrence Ramsey | 6b9e7cf | 2006-11-05 03:44:41 +0000 | [diff] [blame] | 11 | Group : Applications/Editors |
Jordi Mallach | c2b199e | 2016-06-20 19:44:56 +0200 | [diff] [blame] | 12 | URL : https://nano-editor.org/ |
Jordi Mallach | 49eaa7c | 2016-06-21 00:06:55 +0200 | [diff] [blame] | 13 | Source : https://nano-editor.org/dist/v2.6/%{name}-%{version}.tar.gz |
Benno Schulenberg | 0424243 | 2015-06-04 18:05:27 +0000 | [diff] [blame] | 14 | |
David Lawrence Ramsey | 6b9e7cf | 2006-11-05 03:44:41 +0000 | [diff] [blame] | 15 | BuildRoot : %{_tmppath}/%{name}-%{version}-root |
Chris Allegretta | 6c77648 | 2015-02-09 19:53:29 +0000 | [diff] [blame] | 16 | BuildRequires : autoconf, automake, gettext-devel, ncurses-devel, texinfo |
Benno Schulenberg | 0424243 | 2015-06-04 18:05:27 +0000 | [diff] [blame] | 17 | Requires(post) : info |
| 18 | Requires(preun) : info |
Chris Allegretta | 06d6237 | 2002-03-30 16:51:38 +0000 | [diff] [blame] | 19 | |
| 20 | %description |
Benno Schulenberg | 49fc528 | 2016-08-14 21:18:00 +0200 | [diff] [blame] | 21 | GNU nano is a small and friendly text editor. It aims to emulate the |
Benno Schulenberg | 0424243 | 2015-06-04 18:05:27 +0000 | [diff] [blame] | 22 | Pico text editor while also offering several enhancements. |
Chris Allegretta | 06d6237 | 2002-03-30 16:51:38 +0000 | [diff] [blame] | 23 | |
| 24 | %prep |
| 25 | %setup -q |
| 26 | |
| 27 | %build |
Benno Schulenberg | f7b5c5a | 2014-03-26 14:08:10 +0000 | [diff] [blame] | 28 | %configure |
David Lawrence Ramsey | 6b9e7cf | 2006-11-05 03:44:41 +0000 | [diff] [blame] | 29 | make |
Chris Allegretta | 06d6237 | 2002-03-30 16:51:38 +0000 | [diff] [blame] | 30 | |
| 31 | %install |
David Lawrence Ramsey | 6b9e7cf | 2006-11-05 03:44:41 +0000 | [diff] [blame] | 32 | make DESTDIR="%{buildroot}" install |
Benno Schulenberg | 0424243 | 2015-06-04 18:05:27 +0000 | [diff] [blame] | 33 | #ln -s nano %{buildroot}/%{_bindir}/pico |
| 34 | rm -f %{buildroot}/%{_infodir}/dir |
| 35 | |
| 36 | %post |
| 37 | /sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || : |
| 38 | |
| 39 | %preun |
| 40 | if [ $1 = 0 ] ; then |
| 41 | /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || : |
| 42 | fi |
Chris Allegretta | 06d6237 | 2002-03-30 16:51:38 +0000 | [diff] [blame] | 43 | |
| 44 | %files |
| 45 | %defattr(-,root,root) |
Benno Schulenberg | f1b87f9 | 2016-12-24 17:49:14 +0100 | [diff] [blame] | 46 | %doc AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS TODO doc/faq.html doc/sample.nanorc |
David Lawrence Ramsey | 8bf9ba0 | 2004-08-01 22:00:29 +0000 | [diff] [blame] | 47 | %{_bindir}/* |
Chris Allegretta | 6c77648 | 2015-02-09 19:53:29 +0000 | [diff] [blame] | 48 | %{_docdir}/nano/* |
David Lawrence Ramsey | f0c6e78 | 2006-11-05 17:13:44 +0000 | [diff] [blame] | 49 | %{_mandir}/man*/* |
| 50 | %{_mandir}/fr/man*/* |
| 51 | %{_infodir}/nano.info* |
Chris Allegretta | 06d6237 | 2002-03-30 16:51:38 +0000 | [diff] [blame] | 52 | %{_datadir}/locale/*/LC_MESSAGES/nano.mo |
David Lawrence Ramsey | 5e6434c | 2006-06-01 17:23:28 +0000 | [diff] [blame] | 53 | %{_datadir}/nano/* |