2002-03-30 19:51:38 +03:00
|
|
|
%define name @PACKAGE@
|
2006-11-05 06:44:41 +03:00
|
|
|
%define version @VERSION@
|
|
|
|
%define release 1
|
2002-03-30 19:51:38 +03:00
|
|
|
|
|
|
|
Name : %{name}
|
2006-11-05 06:44:41 +03:00
|
|
|
Version : %{version}
|
|
|
|
Release : %{release}
|
2015-06-04 21:05:27 +03:00
|
|
|
Summary : a user-friendly editor, a Pico clone with enhancements
|
|
|
|
|
2014-06-14 00:52:39 +04:00
|
|
|
License : GPLv3+
|
2006-11-05 06:44:41 +03:00
|
|
|
Group : Applications/Editors
|
2016-06-20 20:44:56 +03:00
|
|
|
URL : https://nano-editor.org/
|
2018-01-29 11:46:47 +03:00
|
|
|
Source : https://nano-editor.org/dist/latest/%{name}-%{version}.tar.gz
|
2015-06-04 21:05:27 +03:00
|
|
|
|
2006-11-05 06:44:41 +03:00
|
|
|
BuildRoot : %{_tmppath}/%{name}-%{version}-root
|
2015-02-09 22:53:29 +03:00
|
|
|
BuildRequires : autoconf, automake, gettext-devel, ncurses-devel, texinfo
|
2015-06-04 21:05:27 +03:00
|
|
|
Requires(post) : info
|
|
|
|
Requires(preun) : info
|
2002-03-30 19:51:38 +03:00
|
|
|
|
|
|
|
%description
|
2016-08-14 22:18:00 +03:00
|
|
|
GNU nano is a small and friendly text editor. It aims to emulate the
|
2015-06-04 21:05:27 +03:00
|
|
|
Pico text editor while also offering several enhancements.
|
2002-03-30 19:51:38 +03:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2014-03-26 18:08:10 +04:00
|
|
|
%configure
|
2006-11-05 06:44:41 +03:00
|
|
|
make
|
2002-03-30 19:51:38 +03:00
|
|
|
|
|
|
|
%install
|
2006-11-05 06:44:41 +03:00
|
|
|
make DESTDIR="%{buildroot}" install
|
2015-06-04 21:05:27 +03:00
|
|
|
#ln -s nano %{buildroot}/%{_bindir}/pico
|
|
|
|
rm -f %{buildroot}/%{_infodir}/dir
|
|
|
|
|
|
|
|
%post
|
|
|
|
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
|
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ $1 = 0 ] ; then
|
|
|
|
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
|
|
|
|
fi
|
2002-03-30 19:51:38 +03:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2016-12-24 19:49:14 +03:00
|
|
|
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS TODO doc/faq.html doc/sample.nanorc
|
2004-08-02 02:00:29 +04:00
|
|
|
%{_bindir}/*
|
2015-02-09 22:53:29 +03:00
|
|
|
%{_docdir}/nano/*
|
2006-11-05 20:13:44 +03:00
|
|
|
%{_mandir}/man*/*
|
|
|
|
%{_mandir}/fr/man*/*
|
|
|
|
%{_infodir}/nano.info*
|
2002-03-30 19:51:38 +03:00
|
|
|
%{_datadir}/locale/*/LC_MESSAGES/nano.mo
|
2006-06-01 21:23:28 +04:00
|
|
|
%{_datadir}/nano/*
|