29 Packager: OpenPKG Foundation e.V. |
29 Packager: OpenPKG Foundation e.V. |
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: 2.1 |
35 Release: 20101018 |
35 Release: 20120208 |
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 Source1: hgweb.cgi |
|
40 Source2: hgweb.cfg |
39 |
41 |
40 # build information |
42 # build information |
41 Prefix: %{l_prefix} |
43 Prefix: %{l_prefix} |
42 BuildRoot: %{l_buildroot} |
44 BuildRoot: %{l_buildroot} |
43 BuildPreReq: OpenPKG, openpkg >= 20100101, python, python::with_bzip2 = yes |
45 BuildPreReq: OpenPKG, openpkg >= 20060823, python, python::with_bzip2 = yes |
44 PreReq: OpenPKG, openpkg >= 20100101, python, python::with_bzip2 = yes |
46 PreReq: OpenPKG, openpkg >= 20060823, python, python::with_bzip2 = yes |
|
47 AutoReq: no |
|
48 AutoReqProv: no |
45 |
49 |
46 %description |
50 %description |
47 Mercurial is a fast, lightweight Source Control Management (SCM) |
51 Mercurial is a fast, lightweight Source Control Management (SCM) |
48 system designed for efficient handling of very large distributed |
52 system designed for efficient handling of very large distributed |
49 projects. |
53 projects. |
50 |
54 |
51 %track |
55 %track |
52 prog mercurial = { |
56 prog mercurial = { |
53 version = %{version} |
57 version = %{version} |
54 url = http://mercurial.selenic.com/release/ |
58 url = http://mercurial.selenic.com/release/ |
55 regex = mercurial-(__VER__)\.tar\.gz |
59 regex = mercurial-(\d+\.\d+(\.\d+)?)\.tar\.gz |
56 } |
60 } |
57 |
61 |
58 %prep |
62 %prep |
59 %setup -q |
63 %setup -q |
60 %{l_shtool} subst \ |
64 %{l_shtool} subst \ |
67 %build |
71 %build |
68 |
72 |
69 %install |
73 %install |
70 rm -rf $RPM_BUILD_ROOT |
74 rm -rf $RPM_BUILD_ROOT |
71 %{l_shtool} mkdir -f -p -m 755 \ |
75 %{l_shtool} mkdir -f -p -m 755 \ |
|
76 $RPM_BUILD_ROOT%{l_prefix}/cgi \ |
72 $RPM_BUILD_ROOT%{l_prefix}/bin \ |
77 $RPM_BUILD_ROOT%{l_prefix}/bin \ |
|
78 $RPM_BUILD_ROOT%{l_prefix}/etc/mercurial \ |
73 $RPM_BUILD_ROOT%{l_prefix}/libexec/mercurial \ |
79 $RPM_BUILD_ROOT%{l_prefix}/libexec/mercurial \ |
74 $RPM_BUILD_ROOT%{l_prefix}/lib/mercurial \ |
80 $RPM_BUILD_ROOT%{l_prefix}/lib/mercurial \ |
75 $RPM_BUILD_ROOT%{l_prefix}/man/man1 \ |
81 $RPM_BUILD_ROOT%{l_prefix}/man/man1 \ |
76 $RPM_BUILD_ROOT%{l_prefix}/man/man5 |
82 $RPM_BUILD_ROOT%{l_prefix}/man/man5 |
77 %{l_shtool} subst \ |
83 %{l_shtool} subst \ |
87 echo "PYTHONPATH=\"%{l_prefix}/lib/mercurial\"" |
93 echo "PYTHONPATH=\"%{l_prefix}/lib/mercurial\"" |
88 echo "export PYTHONPATH" |
94 echo "export PYTHONPATH" |
89 echo "%{l_prefix}/bin/python %{l_prefix}/libexec/mercurial/hg \${1+\"\$@\"}" |
95 echo "%{l_prefix}/bin/python %{l_prefix}/libexec/mercurial/hg \${1+\"\$@\"}" |
90 ) >$RPM_BUILD_ROOT%{l_prefix}/bin/hg |
96 ) >$RPM_BUILD_ROOT%{l_prefix}/bin/hg |
91 chmod 755 $RPM_BUILD_ROOT%{l_prefix}/bin/hg |
97 chmod 755 $RPM_BUILD_ROOT%{l_prefix}/bin/hg |
|
98 %{l_shtool} install -c -m 755 %{l_value -s -a} \ |
|
99 %{SOURCE hgweb.cgi} $RPM_BUILD_ROOT%{l_prefix}/cgi/ |
|
100 %{l_shtool} install -c -m 644 %{l_value -s -a} \ |
|
101 %{SOURCE hgweb.cfg} $RPM_BUILD_ROOT%{l_prefix}/etc/mercurial/ |
92 %{l_shtool} install -c -m 644 \ |
102 %{l_shtool} install -c -m 644 \ |
93 doc/*.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/ |
103 doc/*.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/ |
94 %{l_shtool} install -c -m 644 \ |
104 %{l_shtool} install -c -m 644 \ |
95 doc/*.5 $RPM_BUILD_ROOT%{l_prefix}/man/man5/ |
105 doc/*.5 $RPM_BUILD_ROOT%{l_prefix}/man/man5/ |
96 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
106 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ |
|
107 %{l_files_std} \ |
|
108 '%config %{l_prefix}/etc/mercurial/*' |
97 |
109 |
98 %files -f files |
110 %files -f files |
99 |
111 |
100 %clean |
112 %clean |
101 rm -rf $RPM_BUILD_ROOT |
113 rm -rf $RPM_BUILD_ROOT |