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
|
|
|
#
|
2022-02-10 20:05:39 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
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
|
|
|
|
2021-12-17 15:42:52 +01:00
|
|
|
%define _version 6
|
2006-12-21 13:32:37 +01:00
|
|
|
Name: nano
|
2022-04-29 09:11:32 +02:00
|
|
|
Version: 6.3
|
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
|
2020-12-31 14:44:40 +01:00
|
|
|
Source3: nanorc
|
2022-07-27 06:17:16 +02:00
|
|
|
# PATCH-FIX-OPENSUSE obs-channel-and-patchinfo-syntax.patch maurizio.galli@suse.com -- enable syntax for _channel and _patchinfo files used by OBS
|
|
|
|
Patch0: obs-channel-and-patchinfo-syntax.patch
|
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)
|
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
|
2022-07-27 06:17:16 +02:00
|
|
|
%autosetup -p1
|
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
|
2020-04-07 22:01:39 +02:00
|
|
|
%make_build
|
2006-12-21 13:32:37 +01:00
|
|
|
|
2020-12-31 14:44:40 +01:00
|
|
|
# generate default /etc/nanorc
|
|
|
|
# - set hunspell as the default spell-checker
|
|
|
|
# - enable syntax highlighting by default
|
|
|
|
sed -e 's/^#.*set speller.*$/set speller "hunspell"/' \
|
2021-02-25 07:39:04 +01:00
|
|
|
-e 's|^# \(include "%{_datadir}/nano/\*.nanorc"\)|\1|' \
|
2020-12-31 14:44:40 +01:00
|
|
|
%{SOURCE3} doc/sample.nanorc > ./nanorc
|
|
|
|
|
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
|
|
|
|
2020-12-31 14:44:40 +01:00
|
|
|
# install default /etc/nanorc
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}
|
|
|
|
install -m 0644 ./nanorc %{buildroot}%{_sysconfdir}/nanorc
|
|
|
|
|
|
|
|
# enable useful extra syntax highlighting files by default
|
|
|
|
mv %{buildroot}%{_datadir}/nano/extra/{ada,fortran,haskell,spec}.* %{buildroot}%{_datadir}/nano
|
|
|
|
|
2011-03-01 04:15:35 +01:00
|
|
|
%find_lang %{name} --with-man --all-name
|
2008-09-13 05:55:48 +02: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
|
2020-12-31 14:44:40 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/nanorc
|
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
|
2022-02-21 10:10:08 +01:00
|
|
|
%license COPYING COPYING.DOC
|
2010-02-18 16:42:56 +01:00
|
|
|
|
2007-03-29 18:21:59 +02:00
|
|
|
%changelog
|