rpm spec: include python egg in rpm
authorMads Kiilerich <mads@kiilerich.com>
Thu, 27 Nov 2008 01:10:27 +0100
changeset 7432 642754e776e2
parent 7431 3d827cc616b6
child 7433 c4ce828e8074
rpm spec: include python egg in rpm Better complicance with packaging guidelines http://fedoraproject.org/wiki/Packaging/Python http://fedoraproject.org/wiki/Packaging/Python/Eggs
contrib/mercurial.spec
--- a/contrib/mercurial.spec	Thu Nov 27 01:09:11 2008 +0100
+++ b/contrib/mercurial.spec	Thu Nov 27 01:10:27 2008 +0100
@@ -55,9 +55,6 @@
 mkdir -p $lisp_dir
 install contrib/mercurial.el $lisp_dir
 
-# We don't want this, do we?
-rm -f $RPM_BUILD_ROOT%{pythonlib}/../mercurial-*-py2.5.egg-info
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -76,6 +73,7 @@
 %{_bindir}/hg-viz
 %{_bindir}/git-rev-tree
 %{_bindir}/mercurial-convert-repo
+%{_libdir}/python%{pythonver}/site-packages/%{name}-*-py2.5.egg-info
 %{pythonlib}/templates
 %{pythonlib}/*.py*
 %{pythonlib}/hgweb/*.py*