Browse Source

upgrading package: nano 2.9.8 -> 3.1

master
parent
commit
64494cb873
  1. 13
      nano/nano.spec

13
nano/nano.spec

@ -22,9 +22,9 @@
##
# package version
%define V_opkg 2.9.8
%define V_dist 2.9.8
%define V_subdir 2.9
%define V_opkg 3.1
%define V_dist 3.1
%define V_subdir 3
# package information
Name: nano
@ -37,10 +37,10 @@ Class: BASE
Group: Editor
License: GPL
Version: %{V_opkg}
Release: 20180602
Release: 20180922
# list of sources
Source0: http://www.nano-editor.org/dist/v%{V_subdir}/nano-%{V_dist}.tar.gz
Source0: http://www.nano-editor.org/dist/v%{V_subdir}/nano-%{V_dist}.tar.xz
Patch0: nano.patch
# build information
@ -57,7 +57,7 @@ PreReq: ncurses
prog nano = {
version = %{V_dist}
url = http://www.nano-editor.org/download.php
regex = nano-(\d+\.\d+.\d+(pre\d+)?)\s*\.tar\.gz
regex = nano-(\d+\.\d+)\s*\.tar\.xz
}
%prep
@ -83,6 +83,7 @@ PreReq: ncurses
%{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
strip $RPM_BUILD_ROOT%{l_prefix}/bin/nano >/dev/null 2>&1 || true
rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/doc
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files

Loading…
Cancel
Save