mercurial/mercurial.spec

changeset 270
42bbe3abe794
parent 269
b93b2c78541a
child 600
00bfe519c9d3
     1.1 --- a/mercurial/mercurial.spec	Tue Oct 19 14:53:19 2010 +0200
     1.2 +++ b/mercurial/mercurial.spec	Tue Oct 19 14:54:49 2010 +0200
     1.3 @@ -32,14 +32,16 @@
     1.4  Group:        SCM
     1.5  License:      GPL
     1.6  Version:      1.6.2
     1.7 -Release:      20100803
     1.8 +Release:      20101018
     1.9  
    1.10  #   list of sources
    1.11  Source0:      http://mercurial.selenic.com/release/mercurial-%{version}.tar.gz
    1.12  
    1.13  #   build information
    1.14 -BuildPreReq:  OpenPKG, openpkg >= 20100101, python
    1.15 -PreReq:       OpenPKG, openpkg >= 20100101, python
    1.16 +Prefix:       %{l_prefix}
    1.17 +BuildRoot:    %{l_buildroot}
    1.18 +BuildPreReq:  OpenPKG, openpkg >= 20100101, python, python::with_bzip2 = yes
    1.19 +PreReq:       OpenPKG, openpkg >= 20100101, python, python::with_bzip2 = yes
    1.20  
    1.21  %description
    1.22      Mercurial is a fast, lightweight Source Control Management (SCM)
    1.23 @@ -55,10 +57,17 @@
    1.24  
    1.25  %prep
    1.26      %setup -q
    1.27 +    %{l_shtool} subst \
    1.28 +        -e 's;[Mm]ercurial [Rr]epositories;Repositories List;' \
    1.29 +        templates/*/index.tmpl
    1.30 +    %{l_shtool} subst \
    1.31 +        -e 's;[Mm]ercurial [Rr]epository;Repository Name;' \
    1.32 +        templates/*/footer.tmpl
    1.33  
    1.34  %build
    1.35  
    1.36  %install
    1.37 +    rm -rf $RPM_BUILD_ROOT
    1.38      %{l_shtool} mkdir -f -p -m 755 \
    1.39          $RPM_BUILD_ROOT%{l_prefix}/bin \
    1.40          $RPM_BUILD_ROOT%{l_prefix}/libexec/mercurial \
    1.41 @@ -89,4 +98,5 @@
    1.42  %files -f files
    1.43  
    1.44  %clean
    1.45 +    rm -rf $RPM_BUILD_ROOT
    1.46  

mercurial