##// END OF EJS Templates
fix contrib/mercurial.spec for hgext
Xiaofeng Ling -
r1890:d4545f1b default
parent child Browse files
Show More
@@ -1,39 +1,42 b''
1 Summary: Mercurial -- a distributed SCM
1 Summary: Mercurial -- a distributed SCM
2 Name: mercurial
2 Name: mercurial
3 Version: 0.7
3 Version: 0.7
4 Release: 1
4 Release: 1
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
14
14 %description
15 %description
15 Mercurial is a fast, lightweight source control management system designed
16 Mercurial is a fast, lightweight source control management system designed
16 for efficient handling of very large distributed projects.
17 for efficient handling of very large distributed projects.
17
18
18 %prep
19 %prep
19 rm -rf $RPM_BUILD_ROOT
20 rm -rf $RPM_BUILD_ROOT
20 %setup -q
21 %setup -q
21
22
22 %build
23 %build
23 python setup.py build
24 python setup.py build
24
25
25 %install
26 %install
26 python setup.py install --root $RPM_BUILD_ROOT
27 python setup.py install --root $RPM_BUILD_ROOT
27
28
28 %clean
29 %clean
29 rm -rf $RPM_BUILD_ROOT
30 rm -rf $RPM_BUILD_ROOT
30
31
31 %files
32 %files
32 %defattr(-,root,root,-)
33 %defattr(-,root,root,-)
33 %doc doc/* contrib/patchbomb *.cgi
34 %doc doc/* contrib/patchbomb *.cgi
34 %dir %{pythonlib}
35 %dir %{pythonlib}
36 %dir %{hgext}
35 %{_bindir}/hgmerge
37 %{_bindir}/hgmerge
36 %{_bindir}/hg
38 %{_bindir}/hg
37 %{pythonlib}/templates
39 %{pythonlib}/templates
38 %{pythonlib}/*.py*
40 %{pythonlib}/*.py*
39 %{pythonlib}/*.so
41 %{pythonlib}/*.so
42 %{hgext}/*.py*
General Comments 0
You need to be logged in to leave comments. Login now