mercurial.spec
54 lines
| 1.4 KiB
| text/x-rpm-spec
|
RPMSpecLexer
/ contrib / mercurial.spec
mpm@selenic.com
|
r459 | Summary: Mercurial -- a distributed SCM | ||
Name: mercurial | ||||
Matt Mackall
|
r3863 | Version: snapshot | ||
Thomas Arendsen Hein
|
r1891 | Release: 0 | ||
Florian La Roche
|
r1273 | License: GPL | ||
mpm@selenic.com
|
r459 | Group: Development/Tools | ||
Source: http://www.selenic.com/mercurial/release/%{name}-%{version}.tar.gz | ||||
Florian La Roche
|
r1273 | URL: http://www.selenic.com/mercurial | ||
mpm@selenic.com
|
r459 | BuildRoot: /tmp/build.%{name}-%{version}-%{release} | ||
julian@lava.net
|
r4751 | # From the README: | ||
# | ||||
# Note: some distributions fails to include bits of distutils by | ||||
# default, you'll need python-dev to install. You'll also need a C | ||||
# compiler and a 3-way merge tool like merge, tkdiff, or kdiff3. | ||||
# | ||||
# python-devel provides an adequate python-dev. The merge tool is a | ||||
# run-time dependency. | ||||
# | ||||
BuildRequires: python >= 2.3, python-devel, make, gcc | ||||
mpm@selenic.com
|
r563 | %define pythonver %(python -c 'import sys;print ".".join(map(str, sys.version_info[:2]))') | ||
%define pythonlib %{_libdir}/python%{pythonver}/site-packages/%{name} | ||||
Xiaofeng Ling
|
r1890 | %define hgext %{_libdir}/python%{pythonver}/site-packages/hgext | ||
mpm@selenic.com
|
r563 | |||
mpm@selenic.com
|
r459 | %description | ||
Mercurial is a fast, lightweight source control management system designed | ||||
for efficient handling of very large distributed projects. | ||||
%prep | ||||
rm -rf $RPM_BUILD_ROOT | ||||
Florian La Roche
|
r1273 | %setup -q | ||
mpm@selenic.com
|
r459 | |||
%build | ||||
python setup.py build | ||||
%install | ||||
Adam Spiers
|
r4750 | python setup.py install --root $RPM_BUILD_ROOT --prefix %{_prefix} | ||
mpm@selenic.com
|
r459 | |||
mpm@selenic.com
|
r563 | %clean | ||
rm -rf $RPM_BUILD_ROOT | ||||
mpm@selenic.com
|
r459 | |||
mpm@selenic.com
|
r563 | %files | ||
%defattr(-,root,root,-) | ||||
Thomas Arendsen Hein
|
r1891 | %doc doc/* *.cgi | ||
mpm@selenic.com
|
r563 | %dir %{pythonlib} | ||
Xiaofeng Ling
|
r1890 | %dir %{hgext} | ||
mpm@selenic.com
|
r563 | %{_bindir}/hgmerge | ||
%{_bindir}/hg | ||||
%{pythonlib}/templates | ||||
Florian La Roche
|
r1273 | %{pythonlib}/*.py* | ||
Matt Mackall
|
r3863 | %{pythonlib}/hgweb/*.py* | ||
mpm@selenic.com
|
r563 | %{pythonlib}/*.so | ||
Xiaofeng Ling
|
r1890 | %{hgext}/*.py* | ||