| 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 \ |