mercurial.spec
42 lines
| 1004 B
| text/x-rpm-spec
|
RPMSpecLexer
/ contrib / mercurial.spec
mpm@selenic.com
|
r459 | Summary: Mercurial -- a distributed SCM | ||
Name: mercurial | ||||
Thomas Arendsen Hein
|
r1891 | Version: 0.8 | ||
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} | ||
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 | ||||
python setup.py install --root $RPM_BUILD_ROOT | ||||
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* | ||
mpm@selenic.com
|
r563 | %{pythonlib}/*.so | ||
Xiaofeng Ling
|
r1890 | %{hgext}/*.py* | ||