eb8d31e4ad
GNU nano 3.0 OBS-URL: https://build.opensuse.org/request/show/634568 OBS-URL: https://build.opensuse.org/package/show/editors/nano?expand=0&rev=95
85 lines
2.4 KiB
RPMSpec
85 lines
2.4 KiB
RPMSpec
#
|
|
# spec file for package nano
|
|
#
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define _version 3
|
|
Name: nano
|
|
Version: 3.0
|
|
Release: 0
|
|
Summary: Pico editor clone with enhancements
|
|
License: GPL-3.0-or-later
|
|
Group: Productivity/Text/Editors
|
|
URL: https://nano-editor.org/
|
|
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
|
|
Source2: https://savannah.gnu.org/people/viewgpg.php?user_id=42085#/%{name}.keyring
|
|
BuildRequires: file-devel
|
|
BuildRequires: groff-full
|
|
BuildRequires: makeinfo
|
|
BuildRequires: ncurses-devel
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: pkgconfig(zlib)
|
|
Requires(post): info
|
|
Requires(preun): info
|
|
Recommends: %{name}-lang = %{version}
|
|
|
|
%description
|
|
GNU nano is a small and friendly text editor. It aims to emulate
|
|
the Pico text editor while also offering a few enhancements.
|
|
|
|
%lang_package
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%configure \
|
|
--disable-rpath \
|
|
--enable-utf8
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%make_install
|
|
|
|
# Move documents to a proper directory.
|
|
mkdir -p %{buildroot}%{_docdir}/
|
|
mv -f %{buildroot}%{_datadir}/doc/%{name}/ %{buildroot}%{_docdir}/%{name}/
|
|
|
|
%find_lang %{name} --with-man --all-name
|
|
|
|
%post
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info%{?ext_info}
|
|
|
|
%preun
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{?ext_info}
|
|
|
|
%files
|
|
%license COPYING COPYING.DOC
|
|
%doc AUTHORS ChangeLog* IMPROVEMENTS NEWS README THANKS TODO doc/sample.nanorc
|
|
%doc %{_docdir}/nano/
|
|
%{_bindir}/nano
|
|
%{_bindir}/rnano
|
|
%{_datadir}/nano/
|
|
%{_infodir}/nano.info%{?ext_info}
|
|
%{_mandir}/man1/nano.1%{?ext_man}
|
|
%{_mandir}/man1/rnano.1%{?ext_man}
|
|
%{_mandir}/man5/nanorc.5%{?ext_man}
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%changelog
|