# HG changeset patch # User Michael Schloh von Bennewitz # Date 1287492889 -7200 # Node ID 42bbe3abe7942acbde8baa66039fbb8c91550b37 # Parent b93b2c78541ad3f34dcfd32522bc3b947ce8f761 Backport RPM boilerplate logic required by legacy OpenPKG scripts. diff -r b93b2c78541a -r 42bbe3abe794 mercurial/mercurial.spec --- a/mercurial/mercurial.spec Tue Oct 19 14:53:19 2010 +0200 +++ b/mercurial/mercurial.spec Tue Oct 19 14:54:49 2010 +0200 @@ -32,14 +32,16 @@ Group: SCM License: GPL Version: 1.6.2 -Release: 20100803 +Release: 20101018 # list of sources Source0: http://mercurial.selenic.com/release/mercurial-%{version}.tar.gz # build information -BuildPreReq: OpenPKG, openpkg >= 20100101, python -PreReq: OpenPKG, openpkg >= 20100101, python +Prefix: %{l_prefix} +BuildRoot: %{l_buildroot} +BuildPreReq: OpenPKG, openpkg >= 20100101, python, python::with_bzip2 = yes +PreReq: OpenPKG, openpkg >= 20100101, python, python::with_bzip2 = yes %description Mercurial is a fast, lightweight Source Control Management (SCM) @@ -55,10 +57,17 @@ %prep %setup -q + %{l_shtool} subst \ + -e 's;[Mm]ercurial [Rr]epositories;Repositories List;' \ + templates/*/index.tmpl + %{l_shtool} subst \ + -e 's;[Mm]ercurial [Rr]epository;Repository Name;' \ + templates/*/footer.tmpl %build %install + rm -rf $RPM_BUILD_ROOT %{l_shtool} mkdir -f -p -m 755 \ $RPM_BUILD_ROOT%{l_prefix}/bin \ $RPM_BUILD_ROOT%{l_prefix}/libexec/mercurial \ @@ -89,4 +98,5 @@ %files -f files %clean + rm -rf $RPM_BUILD_ROOT