# HG changeset patch # User Florian La Roche # Date 1127077554 25200 # Node ID ab22af71386f0afe698d15ac7cd886451e6d4d83 # Parent 060c08bf9e2f2fc605df243936934820157a80e2 Clean up RPM spec file diff -r 060c08bf9e2f -r ab22af71386f contrib/mercurial.spec --- a/contrib/mercurial.spec Sun Sep 18 14:05:04 2005 -0700 +++ b/contrib/mercurial.spec Sun Sep 18 14:05:54 2005 -0700 @@ -1,35 +1,28 @@ Summary: Mercurial -- a distributed SCM Name: mercurial -Version: 0.6 +Version: 0.7 Release: 1 -Copyright: GPL +License: GPL Group: Development/Tools -Distribution: RedHat Source: http://www.selenic.com/mercurial/release/%{name}-%{version}.tar.gz -Packager: Arun Sharma -Prefix: /usr +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} %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 - -%setup -q -n %{name}-%{version} +%setup -q %build - python setup.py build %install - python setup.py install --root $RPM_BUILD_ROOT %clean @@ -37,11 +30,10 @@ %files %defattr(-,root,root,-) -%doc doc +%doc doc/* contrib/patchbomb *.cgi %dir %{pythonlib} %{_bindir}/hgmerge %{_bindir}/hg %{pythonlib}/templates -%{pythonlib}/*.pyc -%{pythonlib}/*.py +%{pythonlib}/*.py* %{pythonlib}/*.so