##// END OF EJS Templates
Clean up RPM spec file
Florian La Roche -
r1273:ab22af71 default
parent child Browse files
Show More
@@ -1,35 +1,28 b''
1 1 Summary: Mercurial -- a distributed SCM
2 2 Name: mercurial
3 Version: 0.6
3 Version: 0.7
4 4 Release: 1
5 Copyright: GPL
5 License: GPL
6 6 Group: Development/Tools
7 Distribution: RedHat
8 7 Source: http://www.selenic.com/mercurial/release/%{name}-%{version}.tar.gz
9 Packager: Arun Sharma <arun@sharma-home.net>
10 Prefix: /usr
8 URL: http://www.selenic.com/mercurial
11 9 BuildRoot: /tmp/build.%{name}-%{version}-%{release}
12 10
13 11 %define pythonver %(python -c 'import sys;print ".".join(map(str, sys.version_info[:2]))')
14 12 %define pythonlib %{_libdir}/python%{pythonver}/site-packages/%{name}
15 13
16 14 %description
17
18 15 Mercurial is a fast, lightweight source control management system designed
19 16 for efficient handling of very large distributed projects.
20 17
21 18 %prep
22
23 19 rm -rf $RPM_BUILD_ROOT
24
25 %setup -q -n %{name}-%{version}
20 %setup -q
26 21
27 22 %build
28
29 23 python setup.py build
30 24
31 25 %install
32
33 26 python setup.py install --root $RPM_BUILD_ROOT
34 27
35 28 %clean
@@ -37,11 +30,10 b' rm -rf $RPM_BUILD_ROOT'
37 30
38 31 %files
39 32 %defattr(-,root,root,-)
40 %doc doc
33 %doc doc/* contrib/patchbomb *.cgi
41 34 %dir %{pythonlib}
42 35 %{_bindir}/hgmerge
43 36 %{_bindir}/hg
44 37 %{pythonlib}/templates
45 %{pythonlib}/*.pyc
46 %{pythonlib}/*.py
38 %{pythonlib}/*.py*
47 39 %{pythonlib}/*.so
General Comments 0
You need to be logged in to leave comments. Login now