2005-06-25 10:44:51 +04:00
|
|
|
Summary: Mercurial -- a distributed SCM
|
|
|
|
Name: mercurial
|
2006-12-11 02:41:07 +03:00
|
|
|
Version: snapshot
|
2006-03-12 17:11:11 +03:00
|
|
|
Release: 0
|
2005-09-19 01:05:54 +04:00
|
|
|
License: GPL
|
2005-06-25 10:44:51 +04:00
|
|
|
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
|
2005-06-25 10:44:51 +04:00
|
|
|
BuildRoot: /tmp/build.%{name}-%{version}-%{release}
|
|
|
|
|
2005-07-02 02:03:42 +04:00
|
|
|
%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
|
2005-07-02 02:03:42 +04:00
|
|
|
|
2005-06-25 10:44:51 +04:00
|
|
|
%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
|
2005-06-25 10:44:51 +04:00
|
|
|
|
|
|
|
%build
|
|
|
|
python setup.py build
|
|
|
|
|
|
|
|
%install
|
|
|
|
python setup.py install --root $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%clean
|
2005-07-02 02:03:42 +04:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2005-06-25 10:44:51 +04:00
|
|
|
|
2005-07-02 02:03:42 +04:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2006-03-12 17:11:11 +03:00
|
|
|
%doc doc/* *.cgi
|
2005-07-02 02:03:42 +04:00
|
|
|
%dir %{pythonlib}
|
2006-03-12 17:07:40 +03:00
|
|
|
%dir %{hgext}
|
2005-07-02 02:03:42 +04:00
|
|
|
%{_bindir}/hgmerge
|
|
|
|
%{_bindir}/hg
|
|
|
|
%{pythonlib}/templates
|
2005-09-19 01:05:54 +04:00
|
|
|
%{pythonlib}/*.py*
|
2006-12-11 02:41:07 +03:00
|
|
|
%{pythonlib}/hgweb/*.py*
|
2005-07-02 02:03:42 +04:00
|
|
|
%{pythonlib}/*.so
|
2006-03-12 17:07:40 +03:00
|
|
|
%{hgext}/*.py*
|