Show More
@@ -1,42 +1,42 b'' | |||||
1 | Summary: Mercurial -- a distributed SCM |
|
1 | Summary: Mercurial -- a distributed SCM | |
2 | Name: mercurial |
|
2 | Name: mercurial | |
3 |
Version: 0. |
|
3 | Version: 0.8 | |
4 |
Release: |
|
4 | Release: 0 | |
5 | License: GPL |
|
5 | License: GPL | |
6 | Group: Development/Tools |
|
6 | Group: Development/Tools | |
7 | Source: http://www.selenic.com/mercurial/release/%{name}-%{version}.tar.gz |
|
7 | Source: http://www.selenic.com/mercurial/release/%{name}-%{version}.tar.gz | |
8 | URL: http://www.selenic.com/mercurial |
|
8 | URL: http://www.selenic.com/mercurial | |
9 | BuildRoot: /tmp/build.%{name}-%{version}-%{release} |
|
9 | BuildRoot: /tmp/build.%{name}-%{version}-%{release} | |
10 |
|
10 | |||
11 | %define pythonver %(python -c 'import sys;print ".".join(map(str, sys.version_info[:2]))') |
|
11 | %define pythonver %(python -c 'import sys;print ".".join(map(str, sys.version_info[:2]))') | |
12 | %define pythonlib %{_libdir}/python%{pythonver}/site-packages/%{name} |
|
12 | %define pythonlib %{_libdir}/python%{pythonver}/site-packages/%{name} | |
13 | %define hgext %{_libdir}/python%{pythonver}/site-packages/hgext |
|
13 | %define hgext %{_libdir}/python%{pythonver}/site-packages/hgext | |
14 |
|
14 | |||
15 | %description |
|
15 | %description | |
16 | Mercurial is a fast, lightweight source control management system designed |
|
16 | Mercurial is a fast, lightweight source control management system designed | |
17 | for efficient handling of very large distributed projects. |
|
17 | for efficient handling of very large distributed projects. | |
18 |
|
18 | |||
19 | %prep |
|
19 | %prep | |
20 | rm -rf $RPM_BUILD_ROOT |
|
20 | rm -rf $RPM_BUILD_ROOT | |
21 | %setup -q |
|
21 | %setup -q | |
22 |
|
22 | |||
23 | %build |
|
23 | %build | |
24 | python setup.py build |
|
24 | python setup.py build | |
25 |
|
25 | |||
26 | %install |
|
26 | %install | |
27 | python setup.py install --root $RPM_BUILD_ROOT |
|
27 | python setup.py install --root $RPM_BUILD_ROOT | |
28 |
|
28 | |||
29 | %clean |
|
29 | %clean | |
30 | rm -rf $RPM_BUILD_ROOT |
|
30 | rm -rf $RPM_BUILD_ROOT | |
31 |
|
31 | |||
32 | %files |
|
32 | %files | |
33 | %defattr(-,root,root,-) |
|
33 | %defattr(-,root,root,-) | |
34 |
%doc doc/* |
|
34 | %doc doc/* *.cgi | |
35 | %dir %{pythonlib} |
|
35 | %dir %{pythonlib} | |
36 | %dir %{hgext} |
|
36 | %dir %{hgext} | |
37 | %{_bindir}/hgmerge |
|
37 | %{_bindir}/hgmerge | |
38 | %{_bindir}/hg |
|
38 | %{_bindir}/hg | |
39 | %{pythonlib}/templates |
|
39 | %{pythonlib}/templates | |
40 | %{pythonlib}/*.py* |
|
40 | %{pythonlib}/*.py* | |
41 | %{pythonlib}/*.so |
|
41 | %{pythonlib}/*.so | |
42 | %{hgext}/*.py* |
|
42 | %{hgext}/*.py* |
General Comments 0
You need to be logged in to leave comments.
Login now