1 ## |
1 ## |
2 ## mercurial.spec -- OpenPKG RPM Package Specification |
2 ## mercurial.spec -- OpenPKG RPM Package Specification |
3 ## Copyright (c) 2000-2009 OpenPKG Foundation e.V. <http://openpkg.net/> |
3 ## Copyright (c) 2000-2010 OpenPKG Foundation e.V. <http://openpkg.net/> |
4 ## |
4 ## |
5 ## Permission to use, copy, modify, and distribute this software for |
5 ## Permission to use, copy, modify, and distribute this software for |
6 ## any purpose with or without fee is hereby granted, provided that |
6 ## any purpose with or without fee is hereby granted, provided that |
7 ## the above copyright notice and this permission notice appear in all |
7 ## the above copyright notice and this permission notice appear in all |
8 ## copies. |
8 ## copies. |
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.3.1 |
34 Version: 1.6.2 |
35 Release: 20090804 |
35 Release: 20100803 |
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 Prefix: %{l_prefix} |
41 BuildPreReq: OpenPKG, openpkg >= 20100101, python |
42 BuildRoot: %{l_buildroot} |
42 PreReq: OpenPKG, openpkg >= 20100101, python |
43 BuildPreReq: OpenPKG, openpkg >= 20060823, python |
|
44 PreReq: OpenPKG, openpkg >= 20060823, python |
|
45 AutoReq: no |
|
46 AutoReqProv: no |
|
47 |
43 |
48 %description |
44 %description |
49 Mercurial is a fast, lightweight Source Control Management (SCM) |
45 Mercurial is a fast, lightweight Source Control Management (SCM) |
50 system designed for efficient handling of very large distributed |
46 system designed for efficient handling of very large distributed |
51 projects. |
47 projects. |
57 regex = mercurial-(__VER__)\.tar\.gz |
53 regex = mercurial-(__VER__)\.tar\.gz |
58 } |
54 } |
59 |
55 |
60 %prep |
56 %prep |
61 %setup -q |
57 %setup -q |
62 %{l_shtool} subst \ |
|
63 -e 's;[Mm]ercurial [Rr]epositories;Repositories List;' \ |
|
64 templates/*/index.tmpl |
|
65 %{l_shtool} subst \ |
|
66 -e 's;[Mm]ercurial [Rr]epository;Repository Name;' \ |
|
67 templates/*/footer.tmpl |
|
68 |
58 |
69 %build |
59 %build |
70 |
60 |
71 %install |
61 %install |
72 rm -rf $RPM_BUILD_ROOT |
|
73 %{l_shtool} mkdir -f -p -m 755 \ |
62 %{l_shtool} mkdir -f -p -m 755 \ |
74 $RPM_BUILD_ROOT%{l_prefix}/bin \ |
63 $RPM_BUILD_ROOT%{l_prefix}/bin \ |
75 $RPM_BUILD_ROOT%{l_prefix}/libexec/mercurial \ |
64 $RPM_BUILD_ROOT%{l_prefix}/libexec/mercurial \ |
76 $RPM_BUILD_ROOT%{l_prefix}/lib/mercurial \ |
65 $RPM_BUILD_ROOT%{l_prefix}/lib/mercurial \ |
77 $RPM_BUILD_ROOT%{l_prefix}/man/man1 \ |
66 $RPM_BUILD_ROOT%{l_prefix}/man/man1 \ |