459
|
1 |
Summary: Mercurial -- a distributed SCM |
|
2 |
Name: mercurial |
|
3 |
Version: 0.6 |
|
4 |
Release: 1 |
|
5 |
Copyright: GPL |
|
6 |
Group: Development/Tools |
|
7 |
Distribution: RedHat |
|
8 |
Source: http://www.selenic.com/mercurial/release/%{name}-%{version}.tar.gz |
|
9 |
Packager: Arun Sharma <arun@sharma-home.net> |
|
10 |
Prefix: /usr |
|
11 |
BuildRoot: /tmp/build.%{name}-%{version}-%{release} |
|
12 |
|
563
|
13 |
%define pythonver %(python -c 'import sys;print ".".join(map(str, sys.version_info[:2]))') |
|
14 |
%define pythonlib %{_libdir}/python%{pythonver}/site-packages/%{name} |
|
15 |
|
459
|
16 |
%description |
|
17 |
|
|
18 |
Mercurial is a fast, lightweight source control management system designed |
|
19 |
for efficient handling of very large distributed projects. |
|
20 |
|
|
21 |
%prep |
|
22 |
|
|
23 |
rm -rf $RPM_BUILD_ROOT |
|
24 |
|
|
25 |
%setup -q -n %{name}-%{version} |
|
26 |
|
|
27 |
%build |
|
28 |
|
|
29 |
python setup.py build |
|
30 |
|
|
31 |
%install |
|
32 |
|
|
33 |
python setup.py install --root $RPM_BUILD_ROOT |
|
34 |
|
563
|
35 |
%clean |
|
36 |
rm -rf $RPM_BUILD_ROOT |
459
|
37 |
|
563
|
38 |
%files |
|
39 |
%defattr(-,root,root,-) |
459
|
40 |
%doc doc |
563
|
41 |
%dir %{pythonlib} |
|
42 |
%{_bindir}/hgmerge |
|
43 |
%{_bindir}/hg |
|
44 |
%{pythonlib}/templates |
|
45 |
%{pythonlib}/*.pyc |
|
46 |
%{pythonlib}/*.py |
|
47 |
%{pythonlib}/*.so |