author | Matt Mackall <mpm@selenic.com> |
Wed, 26 Oct 2005 16:32:50 -0700 | |
changeset 1456 | 214f42f23a3b |
parent 1273 | ab22af71386f |
child 1890 | d4545f1b8bfa |
permissions | -rw-r--r-- |
459 | 1 |
Summary: Mercurial -- a distributed SCM |
2 |
Name: mercurial |
|
1273
ab22af71386f
Clean up RPM spec file
Florian La Roche <laroche@redhat.com>
parents:
563
diff
changeset
|
3 |
Version: 0.7 |
459 | 4 |
Release: 1 |
1273
ab22af71386f
Clean up RPM spec file
Florian La Roche <laroche@redhat.com>
parents:
563
diff
changeset
|
5 |
License: GPL |
459 | 6 |
Group: Development/Tools |
7 |
Source: http://www.selenic.com/mercurial/release/%{name}-%{version}.tar.gz |
|
1273
ab22af71386f
Clean up RPM spec file
Florian La Roche <laroche@redhat.com>
parents:
563
diff
changeset
|
8 |
URL: http://www.selenic.com/mercurial |
459 | 9 |
BuildRoot: /tmp/build.%{name}-%{version}-%{release} |
10 |
||
563 | 11 |
%define pythonver %(python -c 'import sys;print ".".join(map(str, sys.version_info[:2]))') |
12 |
%define pythonlib %{_libdir}/python%{pythonver}/site-packages/%{name} |
|
13 |
||
459 | 14 |
%description |
15 |
Mercurial is a fast, lightweight source control management system designed |
|
16 |
for efficient handling of very large distributed projects. |
|
17 |
||
18 |
%prep |
|
19 |
rm -rf $RPM_BUILD_ROOT |
|
1273
ab22af71386f
Clean up RPM spec file
Florian La Roche <laroche@redhat.com>
parents:
563
diff
changeset
|
20 |
%setup -q |
459 | 21 |
|
22 |
%build |
|
23 |
python setup.py build |
|
24 |
||
25 |
%install |
|
26 |
python setup.py install --root $RPM_BUILD_ROOT |
|
27 |
||
563 | 28 |
%clean |
29 |
rm -rf $RPM_BUILD_ROOT |
|
459 | 30 |
|
563 | 31 |
%files |
32 |
%defattr(-,root,root,-) |
|
1273
ab22af71386f
Clean up RPM spec file
Florian La Roche <laroche@redhat.com>
parents:
563
diff
changeset
|
33 |
%doc doc/* contrib/patchbomb *.cgi |
563 | 34 |
%dir %{pythonlib} |
35 |
%{_bindir}/hgmerge |
|
36 |
%{_bindir}/hg |
|
37 |
%{pythonlib}/templates |
|
1273
ab22af71386f
Clean up RPM spec file
Florian La Roche <laroche@redhat.com>
parents:
563
diff
changeset
|
38 |
%{pythonlib}/*.py* |
563 | 39 |
%{pythonlib}/*.so |