From e8c7ff263bfafe995fa77e7936fcf263fb638a6e Mon Sep 17 00:00:00 2001 From: "Ralf S. Engelschall" Date: Fri, 6 May 2005 16:10:56 +0000 Subject: [PATCH] upgrading package: bzip2 1.0.2 -> 1.0.3 --- bzip2/bzip2.spec | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/bzip2/bzip2.spec b/bzip2/bzip2.spec index aefb5faa6a..b2ac2988c4 100644 --- a/bzip2/bzip2.spec +++ b/bzip2/bzip2.spec @@ -22,25 +22,21 @@ ## SUCH DAMAGE. ## -# package version -%define V_long 1.0.2 -%define V_short 102 - # package information Name: bzip2 Summary: De-/Compression with BZIP2 Algorithm -URL: http://sources.redhat.com/bzip2/ +URL: http://www.bzip.org/ Vendor: Free Software Foundation Packager: OpenPKG Distribution: OpenPKG Class: CORE Group: Compression License: GPL -Version: %{V_long} -Release: 20050125 +Version: 1.0.3 +Release: 20050506 # list of sources -Source0: ftp://sources.redhat.com/pub/bzip2/v%{V_short}/bzip2-%{V_long}.tar.gz +Source0: http://www.bzip.org/%{version}/bzip2-%{version}.tar.gz # build information Prefix: %{l_prefix} @@ -60,9 +56,7 @@ AutoReqProv: no %track prog bzip2 = { version = %{version} - url = ftp://sources.redhat.com/pub/bzip2/ - regex = v(\d+) - url = ftp://sources.redhat.com/pub/bzip2/v__NEWVER__/ + url = http://www.bzip.org/downloads.html regex = bzip2-(__VER__)\.tar\.gz } @@ -91,8 +85,16 @@ AutoReqProv: no rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2>/dev/null || true + # install manual + %{l_shtool} mkdir -f -p -m 755 \ + $RPM_BUILD_ROOT%{l_prefix}/share/bzip2 + %{l_shtool} install -c -m 644 \ + manual.html $RPM_BUILD_ROOT%{l_prefix}/share/bzip2/ + # determine installation files - %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ + %{l_files_std} \ + '%config %{l_prefix}/share/bzip2/manual.html' %files -f files