author | julian@lava.net |
Sun, 21 Jan 2007 00:59:23 -1000 | |
changeset 4751 | 2f2d8c5e7a5c |
parent 4750 | 87a35bb58b88 |
child 4752 | cc0fb3500dd5 |
permissions | -rwxr-xr-x |
459 | 1 |
Summary: Mercurial -- a distributed SCM |
2 |
Name: mercurial |
|
3863
1ef8ada4370f
Remove hard-coded version numbers and release notes from packaging
Matt Mackall <mpm@selenic.com>
parents:
1891
diff
changeset
|
3 |
Version: snapshot |
1891
e5c8e38b788f
New version/release in mercurial.spec, patchbomb is now in hgext.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1890
diff
changeset
|
4 |
Release: 0 |
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 |
||
4751 | 11 |
# From the README: |
12 |
# |
|
13 |
# Note: some distributions fails to include bits of distutils by |
|
14 |
# default, you'll need python-dev to install. You'll also need a C |
|
15 |
# compiler and a 3-way merge tool like merge, tkdiff, or kdiff3. |
|
16 |
# |
|
17 |
# python-devel provides an adequate python-dev. The merge tool is a |
|
18 |
# run-time dependency. |
|
19 |
# |
|
20 |
BuildRequires: python >= 2.3, python-devel, make, gcc |
|
21 |
||
563 | 22 |
%define pythonver %(python -c 'import sys;print ".".join(map(str, sys.version_info[:2]))') |
23 |
%define pythonlib %{_libdir}/python%{pythonver}/site-packages/%{name} |
|
1890
d4545f1b8bfa
fix contrib/mercurial.spec for hgext
Xiaofeng Ling <xiaofeng.ling@intel.com>
parents:
1273
diff
changeset
|
24 |
%define hgext %{_libdir}/python%{pythonver}/site-packages/hgext |
563 | 25 |
|
459 | 26 |
%description |
27 |
Mercurial is a fast, lightweight source control management system designed |
|
28 |
for efficient handling of very large distributed projects. |
|
29 |
||
30 |
%prep |
|
31 |
rm -rf $RPM_BUILD_ROOT |
|
1273
ab22af71386f
Clean up RPM spec file
Florian La Roche <laroche@redhat.com>
parents:
563
diff
changeset
|
32 |
%setup -q |
459 | 33 |
|
34 |
%build |
|
35 |
python setup.py build |
|
36 |
||
37 |
%install |
|
4750
87a35bb58b88
mercurial.spec: fix when default python prefix != rpm %{_prefix}
Adam Spiers <hg@adamspiers.org>
parents:
3863
diff
changeset
|
38 |
python setup.py install --root $RPM_BUILD_ROOT --prefix %{_prefix} |
459 | 39 |
|
563 | 40 |
%clean |
41 |
rm -rf $RPM_BUILD_ROOT |
|
459 | 42 |
|
563 | 43 |
%files |
44 |
%defattr(-,root,root,-) |
|
1891
e5c8e38b788f
New version/release in mercurial.spec, patchbomb is now in hgext.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1890
diff
changeset
|
45 |
%doc doc/* *.cgi |
563 | 46 |
%dir %{pythonlib} |
1890
d4545f1b8bfa
fix contrib/mercurial.spec for hgext
Xiaofeng Ling <xiaofeng.ling@intel.com>
parents:
1273
diff
changeset
|
47 |
%dir %{hgext} |
563 | 48 |
%{_bindir}/hgmerge |
49 |
%{_bindir}/hg |
|
50 |
%{pythonlib}/templates |
|
1273
ab22af71386f
Clean up RPM spec file
Florian La Roche <laroche@redhat.com>
parents:
563
diff
changeset
|
51 |
%{pythonlib}/*.py* |
3863
1ef8ada4370f
Remove hard-coded version numbers and release notes from packaging
Matt Mackall <mpm@selenic.com>
parents:
1891
diff
changeset
|
52 |
%{pythonlib}/hgweb/*.py* |
563 | 53 |
%{pythonlib}/*.so |
1890
d4545f1b8bfa
fix contrib/mercurial.spec for hgext
Xiaofeng Ling <xiaofeng.ling@intel.com>
parents:
1273
diff
changeset
|
54 |
%{hgext}/*.py* |