[Trac-tickets] Re: [The Trac Project] #1141: setup.py does not
produce valid rpm on Fedora core 3
The Trac Project
noreply at edgewall.com
Thu Mar 3 15:41:34 EST 2005
#1141: setup.py does not produce valid rpm on Fedora core 3
-------------------------+--------------------------------------------------
Id: 1141 | Status: new
Component: project | Modified: Thu Mar 3 15:41:34 2005
Severity: enhancement | Milestone:
Priority: normal | Version: 0.8
Owner: daniel | Reporter: nigel.metheringham at dev.intechnology.co.uk
-------------------------+--------------------------------------------------
Comment (by moschny at ipd.uni-karlsruhe.de):
Here's a patch to fix the problem with compressed manpages (tested on SuSE
9.0):
{{{
diff -Naur trac-0.8.1/install-rpm.sh trac-0.8.1-mine/install-rpm.sh
--- trac-0.8.1/install-rpm.sh 1970-01-01 01:00:00.000000000 +0100
+++ trac-0.8.1-mine/install-rpm.sh 2005-03-03 21:28:50.000000000
+0100
@@ -0,0 +1,3 @@
+python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
+# 'brp-compress' gzips the man pages without distutils knowing, so fix
the filelist
+sed -i -e
's at man/man\([[:digit:]]\)/\(.\+\.[[:digit:]]\)$@man/man\1/\2.gz at g'
INSTALLED_FILES
diff -Naur trac-0.8.1/setup.py trac-0.8.1-mine/setup.py
--- trac-0.8.1/setup.py 2004-11-18 13:46:31.000000000 +0100
+++ trac-0.8.1-mine/setup.py 2005-03-03 21:16:26.000000000 +0100
@@ -156,6 +156,7 @@
bdist_rpm.initialize_options(self)
self.title = "Trac %s" % VERSION
self.packager = "Edgewall Software <info at edgewall.com>"
+ self.install_script = "install-rpm.sh"
for x in rpm_distros[self.distro].keys():
setattr(self, x, rpm_distros[self.distro][x])
}}}
The basic idea is grabbed from a comment to
[http://sourceforge.net/tracker/index.php?func=detail&aid=644744&group_id=5470&atid=105470
Python bug 644744].
--
Ticket URL: <http://projects.edgewall.com/trac/ticket/1141>
The Trac Project <>
More information about the Trac-Tickets
mailing list