mercurial/mercurial.spec

changeset 477
eaa40d75d36a
parent 269
b93b2c78541a
child 600
00bfe519c9d3
equal deleted inserted replaced
2:ec01c45700d4 3:a21fbe0d26e3
30 Distribution: OpenPKG Community 30 Distribution: OpenPKG Community
31 Class: EVAL 31 Class: EVAL
32 Group: SCM 32 Group: SCM
33 License: GPL 33 License: GPL
34 Version: 1.6.2 34 Version: 1.6.2
35 Release: 20100803 35 Release: 20101018
36 36
37 # list of sources 37 # list of sources
38 Source0: http://mercurial.selenic.com/release/mercurial-%{version}.tar.gz 38 Source0: http://mercurial.selenic.com/release/mercurial-%{version}.tar.gz
39 39
40 # build information 40 # build information
41 BuildPreReq: OpenPKG, openpkg >= 20100101, python 41 Prefix: %{l_prefix}
42 PreReq: OpenPKG, openpkg >= 20100101, python 42 BuildRoot: %{l_buildroot}
43 BuildPreReq: OpenPKG, openpkg >= 20100101, python, python::with_bzip2 = yes
44 PreReq: OpenPKG, openpkg >= 20100101, python, python::with_bzip2 = yes
43 45
44 %description 46 %description
45 Mercurial is a fast, lightweight Source Control Management (SCM) 47 Mercurial is a fast, lightweight Source Control Management (SCM)
46 system designed for efficient handling of very large distributed 48 system designed for efficient handling of very large distributed
47 projects. 49 projects.
53 regex = mercurial-(__VER__)\.tar\.gz 55 regex = mercurial-(__VER__)\.tar\.gz
54 } 56 }
55 57
56 %prep 58 %prep
57 %setup -q 59 %setup -q
60 %{l_shtool} subst \
61 -e 's;[Mm]ercurial [Rr]epositories;Repositories List;' \
62 templates/*/index.tmpl
63 %{l_shtool} subst \
64 -e 's;[Mm]ercurial [Rr]epository;Repository Name;' \
65 templates/*/footer.tmpl
58 66
59 %build 67 %build
60 68
61 %install 69 %install
70 rm -rf $RPM_BUILD_ROOT
62 %{l_shtool} mkdir -f -p -m 755 \ 71 %{l_shtool} mkdir -f -p -m 755 \
63 $RPM_BUILD_ROOT%{l_prefix}/bin \ 72 $RPM_BUILD_ROOT%{l_prefix}/bin \
64 $RPM_BUILD_ROOT%{l_prefix}/libexec/mercurial \ 73 $RPM_BUILD_ROOT%{l_prefix}/libexec/mercurial \
65 $RPM_BUILD_ROOT%{l_prefix}/lib/mercurial \ 74 $RPM_BUILD_ROOT%{l_prefix}/lib/mercurial \
66 $RPM_BUILD_ROOT%{l_prefix}/man/man1 \ 75 $RPM_BUILD_ROOT%{l_prefix}/man/man1 \
87 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} 96 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
88 97
89 %files -f files 98 %files -f files
90 99
91 %clean 100 %clean
101 rm -rf $RPM_BUILD_ROOT
92 102

mercurial