Accepting request 416812 from home:adra:branches:editors
Update to version 2.6.2 OBS-URL: https://build.opensuse.org/request/show/416812 OBS-URL: https://build.opensuse.org/package/show/editors/nano?expand=0&rev=49
This commit is contained in:
committed by
Git OBS Bridge
parent
8034e65c60
commit
75711bd557
19
nano.spec
19
nano.spec
@@ -18,14 +18,14 @@
|
||||
|
||||
%define _version 2.6
|
||||
Name: nano
|
||||
Version: 2.6.1
|
||||
Version: 2.6.2
|
||||
Release: 0
|
||||
Summary: Pico editor clone with enhancements
|
||||
License: GPL-3.0+
|
||||
Group: Productivity/Editors/Other
|
||||
Group: Productivity/Text/Editors
|
||||
Url: http://nano-editor.org/
|
||||
Source0: http://nano-editor.org/dist/v%{_version}/%{name}-%{version}.tar.gz
|
||||
Source1: http://nano-editor.org/dist/v%{_version}/%{name}-%{version}.tar.gz.asc
|
||||
Source0: http://nano-editor.org/dist/v%{_version}/%{name}-%{version}.tar.xz
|
||||
Source1: http://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: ncurses-devel
|
||||
@@ -35,6 +35,9 @@ Requires(post): info
|
||||
Requires(preun): info
|
||||
Recommends: %{name}-lang = %{version}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?suse_version} <= 1110
|
||||
BuildRequires: xz
|
||||
%endif
|
||||
%if 0%{?suse_version} > 1230
|
||||
BuildRequires: groff-full
|
||||
%else
|
||||
@@ -55,12 +58,6 @@ the Pico text editor while also offering a few enhancements.
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
# Remove build time references so build-compare can do its work.
|
||||
FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%H:%%M')
|
||||
FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y')
|
||||
sed -i "s/__TIME__/\"$FAKE_BUILDTIME\"/" src/nano.c
|
||||
sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" src/nano.c
|
||||
|
||||
%build
|
||||
%configure \
|
||||
--disable-rpath \
|
||||
@@ -84,7 +81,7 @@ mv -f %{buildroot}%{_datadir}/doc/%{name}/ %{buildroot}%{_docdir}/%{name}/
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc AUTHORS ChangeLog ChangeLog.pre-2.1 COPYING COPYING.DOC NEWS README THANKS TODO
|
||||
%doc AUTHORS ChangeLog ChangeLog.pre-2.1 COPYING COPYING.DOC IMPROVEMENTS NEWS README THANKS TODO doc/nanorc.sample
|
||||
%doc %{_docdir}/nano/
|
||||
%exclude %{_docdir}/%{name}/*/
|
||||
%{_bindir}/nano
|
||||
|
Reference in New Issue
Block a user