Initialize for nano

This commit is contained in:
zyppe 2024-03-05 16:47:01 +08:00
commit e1c2cba436
8 changed files with 1225 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
nano-7.2.tar.xz

1
.nano.metadata Normal file
View file

@ -0,0 +1 @@
82186f2a698b087f44e52b8e56ce5566c74f05b48496b584b6bd030898a2d361 nano-7.2.tar.xz

16
nano-7.2.tar.xz.asc Normal file
View file

@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEFo5vQpe/16ea/USWUUu+Lrjhlh8FAmPHs3QACgkQUUu+Lrjh
lh8v7xAAkjEvFQBTw7PvhKM09QSQbXStROONWSoR2RCwreKGG4LWAxXF2iMiz0Ze
/WomPV7OXqEn7Mu8kVH3VgYA6BHAjhnYsZQZjmu/TmtsgGcCLnxRBLS3NTjwv23U
hSJcmYa8EezuvBhvCh2deyQl9anQz6hMeOU/65rtL1/xN+oqlaTf3sFWge86/xxO
QcgE2JDU5VHpAIEKbLI4e48fkqFqv5Q0/8Xcmbs6d06x+U4t5+j7r9X2GoXK4oIy
jdYmnzBKqJVIcppi9Caosbhu+kWDalZTl2tRojMHtMexbo4E+JfX3LJgIW1hmB6p
FPn4xSQzLRq+i6m7pB6UBsRjhYmPFDq598w71Hevq0jyM61TrJ0Rh9IhgE5K1Zwn
NMhpYDr1CgjWJSpYqa3mpIPKSWRply4y51pHCgVCW/ZljbOlbs4NewoD9w9/QNoR
ocIYMa9NLouiAq6jE8FuyDCs9k2NoDilxmNcO0jDfYnIe1MMJz7XXopBKgjwB3DN
2/UUmLt3f2ArnzEtMFfATHZKXVdED+o9cipz1SAR1pVTeMMNVn7JD9+0nT6LP76+
SCYFQ4QPRAXhT0zAwLagWmkcqoNMRHmxkkRjsolzYci8cjfV3c1J8UFMkx1W3mXp
Vyi0yk0awXUY2mwAP3WtJBQyHOlG9P6LoLvLpzD/doaC4NNi/pg=
=OeQA
-----END PGP SIGNATURE-----

1030
nano.changes Normal file

File diff suppressed because it is too large Load diff

77
nano.keyring Normal file
View file

@ -0,0 +1,77 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBGNRHa4BEADxMujoSa2zyg1mTh2xxbhowLjDYWMEh68CvPNcKDx0tlEd30Ae
wp/OSdoKD8Yyv0EdsR+Rs+s9EkoQZx0odBJQLrtbP8+F3xpIqxWbON9VlDpLiMgj
NmbYZ/I+LarG7PNNtNHbIMQb0jgHrdY4AJPmKCk1sPCNoDJ3uxuhdHhkAKT9Gd4C
2jxx4hpLNAha1pwDSiogf8aeskjqiIDM65gp5G6vK4XqvUX3Z2kgyVxsuOphlm5J
jJ8DE4Y8GU7c6WGKnkF65h/BWUgAgIYrgMSpb18h0CyDmN6nxSphJBlJwwda5R1M
EEXjeTx46sYZHFyoA3FH2d+JydhPx7PYD+65jvWCOX+CUrRvopvyJ4EqImH953pu
1suqkT2cRaKDc2/a4fAYt0cTKyB9wnuUQYM6yeke9D2D2/F69hQrJO5kbB1M4W1T
7LPfai9stz1hbtc4EIJ9q6F7qzHWuEK3dFXGqpKr5DOjTYSTXlHsPH/0nR81zVEU
ZDrc1Evoi9XOSuazgw+Rp1ThnuOO6NXTxSQiu4XpFOI0yLW0u0ZtuSLt7ac9QuKJ
BDkdkzBoXgmcGoxOoMOh7Ta2VUIloHbdHpYlKqUF+L7R1+weVuSJDP1Gh2zHFJMP
vBa16Qzz5BMsEtA2kX37LEqJWQ2x+Xy2LdJ5LC7JJp6Gme6g3lX/jtIWawARAQAB
tCdCZW5ubyBTY2h1bGVuYmVyZyA8YmVuc2JlcmdAY29ldmVybi5ubD6JAlQEEwEK
AD4WIQQWjm9Cl7/Xp5r9RJZRS74uuOGWHwUCY1EdrgIbAwUJDYdhKQULCQgHAgYV
CgkICwIEFgIDAQIeAQIXgAAKCRBRS74uuOGWHxWlEACJM0rFKPJ3f//AKH5pIDFP
Lv8GilM5MXK8khPql0s6k2wNzqliOTxwAG55Sn7ddhHASlIzkhoATX+EfPXOsjd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3qIdrO1hbZeijmgbciT7FyX8ht9KTK898IdwQM09w
3HNDvNKpbux2QsWEdFbezUBto2KZGek68oA7AQ8wDHmASp1ML6Jkl2JbyJz57Baz
j+Fb47et2dHfF/3ISEwt+/9Q9U22aiT7JDFvdvChlezNFIVlrN89p1FO8LC6dSUa
aoX7W3zRyydcxCNTpQv1HalwgEzxIsL+msaPyrO5NVn40EmNSSsE0GPg15BgyhM9
yjizJhaU74dgQECWuSHKFj29uVyVS5Y2A1XbsPPqiB/yOFKq3kZBnT1sHX91k7EK
K8dqxmXCIqkG9iMh/vId/gI6d9Ci57nY0FluIrbE/L9z1Gei2eMFsFmSvnW9fIc3
NtKfnvQRBOXedCw0kmvyScJ6EZ3znoV0PFstgvmp4wSlnb2Dw74euRcBe5/wxX1V
AHSYhqKWMnoe6snYnUQR9h5Wm7A5sq4D91+uMVHTr/1llbSDS+6J1tE6WNg5gpiU
LhOr0IoxlSTtUCDY2c49wqh850GA
=0djc
-----END PGP PUBLIC KEY BLOCK-----

83
nano.spec Normal file
View file

@ -0,0 +1,83 @@
#
# spec file for package nano
#
# Copyright (c) 2022-2023 ZhuningOS
#
%define _version 7
Name: nano
Version: 7.2
Release: bp155.1.5
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
Source3: nanorc
# 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
BuildRequires: file-devel
BuildRequires: groff-full
BuildRequires: makeinfo
BuildRequires: pkgconfig
BuildRequires: pkgconfig(ncurses)
BuildRequires: pkgconfig(zlib)
%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
%autosetup -p1
%build
%configure \
--disable-rpath \
--enable-utf8
%make_build
# generate default /etc/nanorc
# - set hunspell as the default spell-checker
# - enable syntax highlighting by default
sed -e 's/^#.*set speller.*$/set speller "hunspell"/' \
-e 's|^# \(include "%{_datadir}/nano/\*.nanorc"\)|\1|' \
%{SOURCE3} doc/sample.nanorc > ./nanorc
%install
%make_install
# Move documents to a proper directory.
mkdir -p %{buildroot}%{_docdir}/
mv -f %{buildroot}%{_datadir}/doc/%{name}/ %{buildroot}%{_docdir}/%{name}/
# 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
%find_lang %{name} --with-man --all-name
%files
%license COPYING COPYING.DOC
%doc AUTHORS ChangeLog* IMPROVEMENTS NEWS README THANKS TODO doc/sample.nanorc
%doc %{_docdir}/nano/
%{_bindir}/nano
%{_bindir}/rnano
%config(noreplace) %{_sysconfdir}/nanorc
%{_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
%license COPYING COPYING.DOC
%changelog

6
nanorc Normal file
View file

@ -0,0 +1,6 @@
## This is a system-wide configuration file for the nano editor.
##
## Each user can save his own configuration to ~/.nanorc
##
## See the nanorc(5) man page for details.

View file

@ -0,0 +1,11 @@
diff -rub a/syntax/xml.nanorc b/syntax/xml.nanorc
--- a/syntax/xml.nanorc 2022-04-08 17:13:15.000000000 +0800
+++ b/syntax/xml.nanorc 2022-07-25 16:59:05.041959714 +0800
@@ -1,6 +1,6 @@
## Syntax highlighting for XML files.
-syntax xml "\.([jrsx]html?|jnlp|mml|pom|rng|sgml?|svg|w[as]dl|wsdd|xjb|xml|xs(d|lt?)|xul)$"
+syntax xml "(\.([jrsx]html?|jnlp|mml|pom|rng|sgml?|svg|w[as]dl|wsdd|xjb|xml|xs(d|lt?)|xul)$|_patchinfo|_channel)"
header "<\?xml.*version=.*\?>"
magic "(XML|SGML) (sub)?document"
comment "<!--|-->"