diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000000000000000000000000000000000..d87f5613ec4234f82f8eaeebc563711f587fdf88 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.xz filter=lfs diff=lfs merge=lfs -text diff --git a/.lfsconfig b/.lfsconfig new file mode 100644 index 0000000000000000000000000000000000000000..0c7f570390b0e36438ef1c1262278ae17ca8f7fe --- /dev/null +++ b/.lfsconfig @@ -0,0 +1,2 @@ +[lfs] + url = https://artlfs.openeuler.openatom.cn/src-openEuler/nano diff --git a/nano-8.0.tar.xz b/nano-8.0.tar.xz deleted file mode 100644 index 797c119a98df61f061158e7d83f8f209cb144ff0..0000000000000000000000000000000000000000 Binary files a/nano-8.0.tar.xz and /dev/null differ diff --git a/nano-8.7.tar.xz b/nano-8.7.tar.xz new file mode 100644 index 0000000000000000000000000000000000000000..3c891b92e5b655c6677a9cfc66d634199b8982b8 --- /dev/null +++ b/nano-8.7.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:afd287aa672c48b8e1a93fdb6c6588453d527510d966822b687f2835f0d986e9 +size 1710220 diff --git a/nano-spec.nanorc.patch b/nano-spec.nanorc.patch new file mode 100644 index 0000000000000000000000000000000000000000..c64a2c0323a26ffdb4d33a1a06d59eecb6cb5438 --- /dev/null +++ b/nano-spec.nanorc.patch @@ -0,0 +1,20 @@ +--- nano-8.3/syntax/extra/spec.nanorc.orig 2024-12-24 09:08:21.384867199 +0800 ++++ nano-8.3/syntax/extra/spec.nanorc 2024-12-24 09:10:14.585485066 +0800 +@@ -15,7 +15,7 @@ + color brightblue "\<((Source|Patch)[0-9]*|Nosource|Nopatch)[[:space:]]*:" + # Architectures. + color brightred "\<((a|loong)arch64|alpha(ev(56?|67?)|pca56)?|amd64|armv(3l|4b|4l|5t(ej?)?l|6h?l|7(hn?)?l|8h?l)|athlon|em64t|geode|i370|i(3|4|5|6)86|ia32e|ia64|m68k(mint)?|mips(64)?(el|r6|r6el)?)\>" +-color brightred "\<(pentium(3|4)|ppc(32dy4|8260|8560)?|ppc64(le|p7)?|ppc(64)?(i|p)series|riscv64|rs6000|s390x?|sgi|sh(3|4|4a)?|sparc(64v?|v8|v9v?)?|x86_64(_v2|_v3|_v4)?|xtensa)\>" ++color brightred "\<(pentium(3|4)|ppc(32dy4|8260|8560)?|ppc64(le|p7)?|ppc(64)?(i|p)series|riscv64|rs6000|s390x?|sgi|sh(3|4|4a)?|sparc(64v?|v8|v9v?)?|sw64|x86_64(_v2|_v3|_v4)?|xtensa)\>" + + # Architecture and OS conditionals. + color brightred "%(ifarch|elifarch|ifnarch|ifos|elifos|ifnos)\>" +@@ -24,7 +24,7 @@ + color magenta start="%\{" end="\}" + color yellow start="%\{__" end="\}" + # Sections. +-color red "^%((prep|build|install|check|clean)$|(description|files|package|changelog)\>)" ++color red "^%((prep|generate_buildrequires|conf|build|install|check|clean)$|(description|files|package|changelog)\>)" + color red "^%((pre|post)(trans|un)?|trigger(prein|in|un|postun)?)\>" + color red "^%(trans)?filetrigger(in|un|postun)\>" + color red "^%(sourcelist|patchlist|generate_buildrequires|verifyscript)\>" diff --git a/nano.spec b/nano.spec index 0f38a2e36003d91de8653336e4cfdae3ad14ab00..bcaa3e1d2b8e86b2787f077251d6b30e97d518da 100644 --- a/nano.spec +++ b/nano.spec @@ -1,13 +1,15 @@ Name: nano -Version: 8.0 +Version: 8.7 Release: 1 Summary: Nano is a tiny GNU editor -License: GPLv3+ +License: GPL-3.0-or-later URL: https://www.nano-editor.org Source0: https://www.nano-editor.org/dist/v8/%{name}-%{version}.tar.xz +Patch0: nano-spec.nanorc.patch -BuildRequires: file-devel gettext-devel gcc ncurses-devel sed texinfo groff -Conflicts: filesystem < 3 +BuildRequires: file-devel gettext-devel gcc sed texinfo groff +BuildRequires: pkgconfig(ncursesw) +Conflicts: filesystem < 3 %description Nano is a tiny GNU editor @@ -18,9 +20,6 @@ Nano is a tiny GNU editor %autosetup -p1 %build -install -d build -cd build -%global _configure ../configure %configure %make_build @@ -29,21 +28,19 @@ sed -e 's/^#.*set speller.*$/set speller "hunspell"/' \ doc/sample.nanorc >> ./nanorc %install -cd build %make_install rm -rf %{buildroot}%{_infodir}/dir rm -rf %{buildroot}%{_docdir}/nano/{nano,nano.1,nanorc.5,rnano.1}.html install -d %{buildroot}%{_sysconfdir} -install -m 0644 ./nanorc %{buildroot}%{_sysconfdir}/nanorc +install -m 0644 nanorc %{buildroot}%{_sysconfdir}/nanorc mv %{buildroot}%{_datadir}/nano/extra/* %{buildroot}%{_datadir}/nano rm -rf %{buildroot}%{_datadir}/nano/extra %find_lang %{name} -%files -f build/%{name}.lang -%defattr(-,root,root) +%files -f %{name}.lang %doc AUTHORS %license COPYING @@ -53,14 +50,17 @@ rm -rf %{buildroot}%{_datadir}/nano/extra %{_infodir}/nano.info* %files help -%defattr(-,root,root) %doc ChangeLog INSTALL NEWS README THANKS TODO -%doc build/doc/sample.nanorc +%doc doc/sample.nanorc %doc doc/nano.html %{_mandir}/man*/* %{_defaultdocdir}/nano/faq.html %changelog +* Wed Nov 12 2025 Funda Wang - 8.7-1 +- update to 8.7 +- Update settings against rpm spec format + * Mon Jun 17 2024 yaoxin - 8.0-1 - Update to 8.0 * CVE-2024-5742: Avoid privilege escalations via symlink attacks