2006-12-21 13:32:37 +01:00
|
|
|
#
|
2011-03-01 04:15:35 +01:00
|
|
|
# spec file for package nano
|
2006-12-21 13:32:37 +01:00
|
|
|
#
|
2019-03-26 09:52:59 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2006-12-21 13:32:37 +01:00
|
|
|
#
|
2008-08-27 01:56:32 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-11-12 08:58:42 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-12-21 13:32:37 +01:00
|
|
|
#
|
|
|
|
|
2011-03-01 10:01:41 +01:00
|
|
|
|
2019-03-26 09:52:59 +01:00
|
|
|
%define _version 4
|
2006-12-21 13:32:37 +01:00
|
|
|
Name: nano
|
2019-08-27 03:59:55 +02:00
|
|
|
Version: 4.4
|
2013-03-26 12:38:18 +01:00
|
|
|
Release: 0
|
2015-03-25 17:24:29 +01:00
|
|
|
Summary: Pico editor clone with enhancements
|
2018-05-20 09:25:12 +02:00
|
|
|
License: GPL-3.0-or-later
|
2016-08-04 10:05:56 +02:00
|
|
|
Group: Productivity/Text/Editors
|
2018-09-10 10:20:02 +02:00
|
|
|
URL: https://nano-editor.org/
|
2017-07-25 19:39:57 +02:00
|
|
|
Source0: https://nano-editor.org/dist/v%{_version}/%{name}-%{version}.tar.xz
|
|
|
|
Source1: https://nano-editor.org/dist/v%{_version}/%{name}-%{version}.tar.xz.asc
|
2016-06-20 15:05:54 +02:00
|
|
|
Source2: https://savannah.gnu.org/people/viewgpg.php?user_id=42085#/%{name}.keyring
|
2011-03-01 04:15:35 +01:00
|
|
|
BuildRequires: file-devel
|
2017-02-24 20:33:56 +01:00
|
|
|
BuildRequires: groff-full
|
|
|
|
BuildRequires: makeinfo
|
2016-06-20 15:05:54 +02:00
|
|
|
BuildRequires: pkgconfig
|
2019-03-26 10:10:46 +01:00
|
|
|
BuildRequires: pkgconfig(ncurses)
|
2017-05-10 12:54:47 +02:00
|
|
|
BuildRequires: pkgconfig(zlib)
|
2015-03-25 17:24:29 +01:00
|
|
|
Requires(post): info
|
|
|
|
Requires(preun): info
|
|
|
|
Recommends: %{name}-lang = %{version}
|
2011-03-01 04:15:35 +01:00
|
|
|
|
2006-12-21 13:32:37 +01:00
|
|
|
%description
|
2015-03-25 17:24:29 +01:00
|
|
|
GNU nano is a small and friendly text editor. It aims to emulate
|
|
|
|
the Pico text editor while also offering a few enhancements.
|
2006-12-21 13:32:37 +01:00
|
|
|
|
2011-03-01 10:01:41 +01:00
|
|
|
%lang_package
|
2013-03-26 12:38:18 +01:00
|
|
|
|
2006-12-21 13:32:37 +01:00
|
|
|
%prep
|
2011-03-01 04:15:35 +01:00
|
|
|
%setup -q
|
2011-05-12 21:32:34 +02:00
|
|
|
|
2006-12-21 13:32:37 +01:00
|
|
|
%build
|
2015-03-25 17:24:29 +01:00
|
|
|
%configure \
|
|
|
|
--disable-rpath \
|
|
|
|
--enable-utf8
|
2013-03-26 12:38:18 +01:00
|
|
|
make %{?_smp_mflags}
|
2006-12-21 13:32:37 +01:00
|
|
|
|
|
|
|
%install
|
2015-03-25 17:24:29 +01:00
|
|
|
%make_install
|
2006-12-21 13:32:37 +01:00
|
|
|
|
2015-03-25 17:24:29 +01:00
|
|
|
# Move documents to a proper directory.
|
|
|
|
mkdir -p %{buildroot}%{_docdir}/
|
|
|
|
mv -f %{buildroot}%{_datadir}/doc/%{name}/ %{buildroot}%{_docdir}/%{name}/
|
2011-03-01 04:15:35 +01:00
|
|
|
|
|
|
|
%find_lang %{name} --with-man --all-name
|
2008-09-13 05:55:48 +02:00
|
|
|
|
2008-02-25 17:30:35 +01:00
|
|
|
%post
|
2015-03-25 17:24:29 +01:00
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info%{?ext_info}
|
2011-03-01 10:01:41 +01:00
|
|
|
|
2011-03-01 04:15:35 +01:00
|
|
|
%preun
|
2015-03-25 17:24:29 +01:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{?ext_info}
|
2008-02-25 17:30:35 +01:00
|
|
|
|
2010-02-18 16:42:56 +01:00
|
|
|
%files
|
2018-05-20 09:25:12 +02:00
|
|
|
%license COPYING COPYING.DOC
|
|
|
|
%doc AUTHORS ChangeLog* IMPROVEMENTS NEWS README THANKS TODO doc/sample.nanorc
|
2015-03-25 17:24:29 +01:00
|
|
|
%doc %{_docdir}/nano/
|
2010-10-06 22:40:39 +02:00
|
|
|
%{_bindir}/nano
|
|
|
|
%{_bindir}/rnano
|
2011-03-01 04:15:35 +01:00
|
|
|
%{_datadir}/nano/
|
2015-03-25 17:24:29 +01:00
|
|
|
%{_infodir}/nano.info%{?ext_info}
|
|
|
|
%{_mandir}/man1/nano.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/rnano.1%{?ext_man}
|
|
|
|
%{_mandir}/man5/nanorc.5%{?ext_man}
|
2006-12-21 13:32:37 +01:00
|
|
|
|
2010-02-18 16:42:56 +01:00
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
2007-03-29 18:21:59 +02:00
|
|
|
%changelog
|