sapling/contrib/mercurial.spec

44 lines
1.0 KiB
RPMSpec
Raw Normal View History

Summary: Mercurial -- a distributed SCM
Name: mercurial
Version: snapshot
Release: 0
2005-09-19 01:05:54 +04:00
License: GPL
Group: Development/Tools
Source: http://www.selenic.com/mercurial/release/%{name}-%{version}.tar.gz
2005-09-19 01:05:54 +04:00
URL: http://www.selenic.com/mercurial
BuildRoot: /tmp/build.%{name}-%{version}-%{release}
%define pythonver %(python -c 'import sys;print ".".join(map(str, sys.version_info[:2]))')
%define pythonlib %{_libdir}/python%{pythonver}/site-packages/%{name}
2006-03-12 17:07:40 +03:00
%define hgext %{_libdir}/python%{pythonver}/site-packages/hgext
%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
2005-09-19 01:05:54 +04:00
%setup -q
%build
python setup.py build
%install
python setup.py install --root $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc doc/* *.cgi
%dir %{pythonlib}
2006-03-12 17:07:40 +03:00
%dir %{hgext}
%{_bindir}/hgmerge
%{_bindir}/hg
%{pythonlib}/templates
2005-09-19 01:05:54 +04:00
%{pythonlib}/*.py*
%{pythonlib}/hgweb/*.py*
%{pythonlib}/*.so
2006-03-12 17:07:40 +03:00
%{hgext}/*.py*