changeset 1273:ab22af71386f

Clean up RPM spec file
author Florian La Roche <laroche@redhat.com>
date Sun, 18 Sep 2005 14:05:54 -0700
parents 060c08bf9e2f
children fe3dd937e803
files contrib/mercurial.spec
diffstat 1 files changed, 6 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- 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 <arun@sharma-home.net>
-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