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 | |
| 5 | Summary : Pico editor clone with enhancements |
| 6 | Name : %{name} |
David Lawrence Ramsey | 6b9e7cf | 2006-11-05 03:44:41 +0000 | [diff] [blame] | 7 | Version : %{version} |
| 8 | Release : %{release} |
| 9 | License : GPL |
| 10 | Group : Applications/Editors |
David Lawrence Ramsey | 7643642 | 2006-06-02 21:21:53 +0000 | [diff] [blame] | 11 | URL : http://www.nano-editor.org/ |
David Lawrence Ramsey | 6b9e7cf | 2006-11-05 03:44:41 +0000 | [diff] [blame] | 12 | Source : http://www.nano-editor.org/dist/v2.0/%{name}-%{version}.tar.gz |
| 13 | BuildRoot : %{_tmppath}/%{name}-%{version}-root |
David Lawrence Ramsey | e88bc62 | 2006-11-05 17:00:41 +0000 | [diff] [blame] | 14 | BuildRequires : autoconf, automake, gettext-devel, ncurses-devel |
Chris Allegretta | 06d6237 | 2002-03-30 16:51:38 +0000 | [diff] [blame] | 15 | |
| 16 | %description |
David Lawrence Ramsey | 6b9e7cf | 2006-11-05 03:44:41 +0000 | [diff] [blame] | 17 | GNU nano is a small and friendly text editor. It aims to emulate the |
| 18 | Pico text editor while also offering a few enhancements. |
Chris Allegretta | 06d6237 | 2002-03-30 16:51:38 +0000 | [diff] [blame] | 19 | |
| 20 | %prep |
| 21 | %setup -q |
| 22 | |
| 23 | %build |
Benno Schulenberg | f7b5c5a | 2014-03-26 14:08:10 +0000 | [diff] [blame] | 24 | %configure |
David Lawrence Ramsey | 6b9e7cf | 2006-11-05 03:44:41 +0000 | [diff] [blame] | 25 | make |
Chris Allegretta | 06d6237 | 2002-03-30 16:51:38 +0000 | [diff] [blame] | 26 | |
| 27 | %install |
David Lawrence Ramsey | 6b9e7cf | 2006-11-05 03:44:41 +0000 | [diff] [blame] | 28 | rm -rf %{buildroot} |
| 29 | make DESTDIR="%{buildroot}" install |
Chris Allegretta | 06d6237 | 2002-03-30 16:51:38 +0000 | [diff] [blame] | 30 | |
| 31 | %files |
| 32 | %defattr(-,root,root) |
David Lawrence Ramsey | 637f6e5 | 2003-11-04 18:34:44 +0000 | [diff] [blame] | 33 | %doc AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README THANKS TODO doc/faq.html doc/nanorc.sample |
David Lawrence Ramsey | 8bf9ba0 | 2004-08-01 22:00:29 +0000 | [diff] [blame] | 34 | %{_bindir}/* |
David Lawrence Ramsey | f0c6e78 | 2006-11-05 17:13:44 +0000 | [diff] [blame] | 35 | %{_mandir}/man*/* |
| 36 | %{_mandir}/fr/man*/* |
| 37 | %{_infodir}/nano.info* |
Chris Allegretta | 06d6237 | 2002-03-30 16:51:38 +0000 | [diff] [blame] | 38 | %{_datadir}/locale/*/LC_MESSAGES/nano.mo |
David Lawrence Ramsey | 5e6434c | 2006-06-01 17:23:28 +0000 | [diff] [blame] | 39 | %{_datadir}/nano/* |