|
|
|
@ -1,28 +1,24 @@
|
|
|
|
|
# build nano-default-editor by default only on fedora
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
%bcond_without default_editor
|
|
|
|
|
%else
|
|
|
|
|
%bcond_with default_editor
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Summary: A small text editor
|
|
|
|
|
Name: nano
|
|
|
|
|
Version: 5.6.1
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
License: GPLv3+
|
|
|
|
|
Version: 8.1
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
License: GPL-3.0-or-later
|
|
|
|
|
URL: https://www.nano-editor.org
|
|
|
|
|
Source: https://www.nano-editor.org/dist/latest/%{name}-%{version}.tar.xz
|
|
|
|
|
Source2: nanorc
|
|
|
|
|
|
|
|
|
|
# Shell snippets for default-editor setup
|
|
|
|
|
Source11: nano-default-editor.sh
|
|
|
|
|
Source12: nano-default-editor.csh
|
|
|
|
|
Source13: nano-default-editor.fish
|
|
|
|
|
Source0: https://www.nano-editor.org/dist/latest/%{name}-%{version}.tar.xz
|
|
|
|
|
Source1: https://www.nano-editor.org/dist/latest/%{name}-%{version}.tar.xz.asc
|
|
|
|
|
# gpg --keyserver keyserver.ubuntu.com --recv-key 168E6F4297BFD7A79AFD4496514BBE2EB8E1961F
|
|
|
|
|
# gpg --output bensberg.pgp --armor --export bensberg@telfort.nl
|
|
|
|
|
Source2: bensberg.pgp
|
|
|
|
|
|
|
|
|
|
# Additional sources
|
|
|
|
|
Source3: nanorc
|
|
|
|
|
|
|
|
|
|
BuildRequires: file-devel
|
|
|
|
|
BuildRequires: gettext-devel
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: git
|
|
|
|
|
BuildRequires: gnupg2
|
|
|
|
|
BuildRequires: groff
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
@ -33,21 +29,8 @@ Conflicts: filesystem < 3
|
|
|
|
|
%description
|
|
|
|
|
GNU nano is a small and friendly text editor.
|
|
|
|
|
|
|
|
|
|
%if %{with default_editor}
|
|
|
|
|
%package default-editor
|
|
|
|
|
Summary: Sets GNU nano as the default editor
|
|
|
|
|
Requires: nano = %{version}-%{release}
|
|
|
|
|
# Ensure that only one package with this capability is installed
|
|
|
|
|
Provides: system-default-editor
|
|
|
|
|
Conflicts: system-default-editor
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description default-editor
|
|
|
|
|
This package ensures the EDITOR shell variable
|
|
|
|
|
is set in common shells to GNU nano.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
|
|
|
|
%autosetup -S git
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
@ -62,7 +45,7 @@ cd build
|
|
|
|
|
# - enable syntax highlighting by default (#1270712)
|
|
|
|
|
sed -e 's/^#.*set speller.*$/set speller "hunspell"/' \
|
|
|
|
|
-e 's|^# \(include "/usr/share/nano/\*.nanorc"\)|\1|' \
|
|
|
|
|
%{SOURCE2} doc/sample.nanorc > ./nanorc
|
|
|
|
|
%{SOURCE3} doc/sample.nanorc > ./nanorc
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
cd build
|
|
|
|
@ -82,45 +65,103 @@ rm -rf %{buildroot}%{_datadir}/nano/extra
|
|
|
|
|
|
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
|
|
%if %{with default_editor}
|
|
|
|
|
# install nano-default-editor snippets
|
|
|
|
|
install -Dpm 0644 %{SOURCE11} %{buildroot}%{_sysconfdir}/profile.d/%{basename:%{S:11}}
|
|
|
|
|
install -Dpm 0644 %{SOURCE12} %{buildroot}%{_sysconfdir}/profile.d/%{basename:%{S:12}}
|
|
|
|
|
install -Dpm 0644 %{SOURCE13} %{buildroot}%{_datadir}/fish/vendor_conf.d/%{basename:%{S:13}}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files -f build/%{name}.lang
|
|
|
|
|
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS TODO
|
|
|
|
|
%license COPYING
|
|
|
|
|
%doc AUTHORS ChangeLog NEWS README THANKS TODO
|
|
|
|
|
%doc build/doc/sample.nanorc
|
|
|
|
|
%doc doc/{faq,nano}.html
|
|
|
|
|
%{_bindir}/*
|
|
|
|
|
%{_bindir}/{,r}nano
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/nanorc
|
|
|
|
|
%{_mandir}/man*/*
|
|
|
|
|
%{_mandir}/man1/{,r}nano.1*
|
|
|
|
|
%{_mandir}/man5/nanorc.5*
|
|
|
|
|
%{_infodir}/nano.info*
|
|
|
|
|
%{_datadir}/nano
|
|
|
|
|
|
|
|
|
|
%if %{with default_editor}
|
|
|
|
|
%files default-editor
|
|
|
|
|
%dir %{_sysconfdir}/profile.d
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/profile.d/nano-default-editor.*
|
|
|
|
|
%dir %{_datadir}/fish/vendor_conf.d
|
|
|
|
|
%{_datadir}/fish/vendor_conf.d/nano-default-editor.fish
|
|
|
|
|
%endif
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Nov 26 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 8.1-1
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
* Thu Jul 18 2024 Lukáš Zaoral <lzaoral@redhat.com> - 8.1-1
|
|
|
|
|
- rebase to latest upstream release (RHEL-35944)
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 5.6.1-5
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
* Mon Jul 01 2024 Lukáš Zaoral <lzaoral@redhat.com> - 8.0-1
|
|
|
|
|
- rebase to latest upstream version (RHEL-35944)
|
|
|
|
|
- remove `nano-default-editor` from the specfile (RHEL-30790)
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 7.2-7
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 7.2-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jun 10 2021 Florian Weimer <fweimer@redhat.com> - 5.6.1-4
|
|
|
|
|
- Rebuild with updated binutils (#1960667)
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 7.2-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed May 05 2021 Kamil Dudka <kdudka@redhat.com> - 5.6.1-3
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 7.2-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Mar 21 2023 Lukáš Zaoral <lzaoral@redhat.com> - 7.2-3
|
|
|
|
|
- migrated to SPDX license
|
|
|
|
|
|
|
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 7.2-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jan 18 2023 Lukáš Zaoral <lzaoral@redhat.com> - 7.2-1
|
|
|
|
|
- Update to 7.2 (rhbz#2161916)
|
|
|
|
|
- Do not use %%{_bindir}/* and %%{_mandir}/* as suggested by the packaging
|
|
|
|
|
guidelines.
|
|
|
|
|
|
|
|
|
|
* Wed Dec 14 2022 Lukáš Zaoral <lzaoral@redhat.com> - 7.1-1
|
|
|
|
|
- new upstream release (#2153268)
|
|
|
|
|
|
|
|
|
|
* Tue Nov 15 2022 Lukáš Zaoral <lzaoral@redhat.com> - 7.0-1
|
|
|
|
|
- new upstream release (#2142885)
|
|
|
|
|
- update GPG signature key
|
|
|
|
|
|
|
|
|
|
* Tue Aug 02 2022 Lukáš Zaoral <lzaoral@redhat.com> - 6.4-1
|
|
|
|
|
- new upstream release (#2113894)
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 6.3-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Apr 28 2022 Kamil Dudka <kdudka@redhat.com> - 6.3-1
|
|
|
|
|
- new upstream release
|
|
|
|
|
|
|
|
|
|
* Sat Feb 19 2022 Kamil Dudka <kdudka@redhat.com> - 6.2-1
|
|
|
|
|
- new upstream release
|
|
|
|
|
|
|
|
|
|
* Wed Feb 09 2022 Kamil Dudka <kdudka@redhat.com> - 6.1-1
|
|
|
|
|
- new upstream release
|
|
|
|
|
|
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 6.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Dec 15 2021 Kamil Dudka <kdudka@redhat.com> - 6.0-1
|
|
|
|
|
- new upstream release
|
|
|
|
|
|
|
|
|
|
* Wed Oct 06 2021 Kamil Dudka <kdudka@redhat.com> - 5.9-1
|
|
|
|
|
- new upstream release
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.8-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jul 07 2021 Kamil Dudka <kdudka@redhat.com> - 5.8-3
|
|
|
|
|
- fix infinite recursion when handling an error (#1976410)
|
|
|
|
|
|
|
|
|
|
* Wed Jun 16 2021 Zdenek Dohnal <zdohnal@redhat.com> - 5.8-2
|
|
|
|
|
- introduce 'default-editor' subpackage to support smooth non-nano upgrades (#1955884)
|
|
|
|
|
|
|
|
|
|
* Tue Jun 15 2021 Kamil Dudka <kdudka@redhat.com> - 5.8-1
|
|
|
|
|
- new upstream release
|
|
|
|
|
|
|
|
|
|
* Tue May 25 2021 Florian Weimer <fweimer@redhat.com> - 5.7-3
|
|
|
|
|
- Rebuild with new binutils to fix ppc64le corruption (#1960730)
|
|
|
|
|
|
|
|
|
|
* Wed May 05 2021 Kamil Dudka <kdudka@redhat.com> - 5.7-2
|
|
|
|
|
- build nano-default-editor by default only on fedora
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 5.6.1-2
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
* Thu Apr 29 2021 Kamil Dudka <kdudka@redhat.com> - 5.7-1
|
|
|
|
|
- new upstream release
|
|
|
|
|
|
|
|
|
|
* Wed Mar 03 2021 Kamil Dudka <kdudka@redhat.com> - 5.6.1-1
|
|
|
|
|
- new upstream release
|
|
|
|
|