blob: 05a7891bbc77a22a68462ff7b4277a0d086f7ced [file] [log] [blame]
Chris Allegretta06d62372002-03-30 16:51:38 +00001%define name @PACKAGE@
David Lawrence Ramsey6b9e7cf2006-11-05 03:44:41 +00002%define version @VERSION@
3%define release 1
Chris Allegretta06d62372002-03-30 16:51:38 +00004
Chris Allegretta06d62372002-03-30 16:51:38 +00005Name : %{name}
David Lawrence Ramsey6b9e7cf2006-11-05 03:44:41 +00006Version : %{version}
7Release : %{release}
Benno Schulenberg04242432015-06-04 18:05:27 +00008Summary : a user-friendly editor, a Pico clone with enhancements
9
Benno Schulenbergc5c0d742014-06-13 20:52:39 +000010License : GPLv3+
David Lawrence Ramsey6b9e7cf2006-11-05 03:44:41 +000011Group : Applications/Editors
Jordi Mallachc2b199e2016-06-20 19:44:56 +020012URL : https://nano-editor.org/
Jordi Mallach49eaa7c2016-06-21 00:06:55 +020013Source : https://nano-editor.org/dist/v2.6/%{name}-%{version}.tar.gz
Benno Schulenberg04242432015-06-04 18:05:27 +000014
David Lawrence Ramsey6b9e7cf2006-11-05 03:44:41 +000015BuildRoot : %{_tmppath}/%{name}-%{version}-root
Chris Allegretta6c776482015-02-09 19:53:29 +000016BuildRequires : autoconf, automake, gettext-devel, ncurses-devel, texinfo
Benno Schulenberg04242432015-06-04 18:05:27 +000017Requires(post) : info
18Requires(preun) : info
Chris Allegretta06d62372002-03-30 16:51:38 +000019
20%description
Benno Schulenberg49fc5282016-08-14 21:18:00 +020021GNU nano is a small and friendly text editor. It aims to emulate the
Benno Schulenberg04242432015-06-04 18:05:27 +000022Pico text editor while also offering several enhancements.
Chris Allegretta06d62372002-03-30 16:51:38 +000023
24%prep
25%setup -q
26
27%build
Benno Schulenbergf7b5c5a2014-03-26 14:08:10 +000028%configure
David Lawrence Ramsey6b9e7cf2006-11-05 03:44:41 +000029make
Chris Allegretta06d62372002-03-30 16:51:38 +000030
31%install
David Lawrence Ramsey6b9e7cf2006-11-05 03:44:41 +000032make DESTDIR="%{buildroot}" install
Benno Schulenberg04242432015-06-04 18:05:27 +000033#ln -s nano %{buildroot}/%{_bindir}/pico
34rm -f %{buildroot}/%{_infodir}/dir
35
36%post
37/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
38
39%preun
40if [ $1 = 0 ] ; then
41/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
42fi
Chris Allegretta06d62372002-03-30 16:51:38 +000043
44%files
45%defattr(-,root,root)
Benno Schulenbergf1b87f92016-12-24 17:49:14 +010046%doc AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS TODO doc/faq.html doc/sample.nanorc
David Lawrence Ramsey8bf9ba02004-08-01 22:00:29 +000047%{_bindir}/*
Chris Allegretta6c776482015-02-09 19:53:29 +000048%{_docdir}/nano/*
David Lawrence Ramseyf0c6e782006-11-05 17:13:44 +000049%{_mandir}/man*/*
50%{_mandir}/fr/man*/*
51%{_infodir}/nano.info*
Chris Allegretta06d62372002-03-30 16:51:38 +000052%{_datadir}/locale/*/LC_MESSAGES/nano.mo
David Lawrence Ramsey5e6434c2006-06-01 17:23:28 +000053%{_datadir}/nano/*