[Trac-tickets] [The Trac Project] #1141: setup.py does not produce valid rpm on Fedora core 3

The Trac Project noreply at edgewall.com
Mon Jan 17 06:29:31 EST 2005


#1141: setup.py does not produce valid rpm on Fedora core 3
-------------------------+--------------------------------------------------
       Id:  1141         |      Status:  new                                      
Component:  project      |    Modified:  Mon Jan 17 06:29:30 2005                 
 Severity:  enhancement  |   Milestone:                                           
 Priority:  normal       |     Version:  0.8                                      
    Owner:  daniel       |    Reporter:  nigel.metheringham at dev.intechnology.co.uk
-------------------------+--------------------------------------------------
 {{{
 setup.py bdist_rpm
 }}}
 when run on Fedora (FC3 - looks like this will apply to other versions
 too) does not produce an rpm due to problems in the generated spec file.

 == Man Page Filenames ==
 The specific problem is that Fedora (and RH distributions in general)
 compress man pages as part of an automatically run rpm script (this could
 be turned off but would make the generated rpm rather out of step with
 others on the system).

 I currently fix this up in a hack by changing the %install and %files
 section to this:-
 {{{
 %install
 rm -rf %{buildroot}
 python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
 # fix up file list slightly...
 # basically man page fixup
 sed -e 's/\.[0-9]$/&\*/' <INSTALLED_FILES >INSTALLED_FILES2

 %files -f INSTALLED_FILES2
 %defattr(-,root,root)
 }}}
 The references to {{{INSTALLED_FILES2}}} are the changes - which wildcard
 the lines refering to the man pages ie {{{/usr/share/man/man1/tracd.1}}}
 -> {{{/usr/share/man/man1/tracd.1*}}}

 == Dependancies ==
 The following dependancies should be added:-
 {{{
 BuildRequires: python >= 2.1
 BuildRequires: python-devel
 BuildRequires: PyXML
 BuildRequires: python-sqlite
 BuildRequires: python-clearsilver
 BuildRequires: subversion
 Requires: PyXML
 Requires: python-sqlite
 Requires: python-clearsilver
 Requires: subversion
 }}}
 This full set should allow the package to be built within a specific build
 environment - for example [http://thomas.apestaart.org/projects/mach/
 mach].

 == Contrib ==
 The contrib scripts should be packaged within the rpm - I would suggest
 they should be bundled into {{{/usr/share/trac/contrib}}}

 This would allow nice neat handling of subversion hook scripts without
 having to go round these manually.

 '''NB''' This applies to the Suse rpm stuff as well.

-- 
Ticket URL: <http://projects.edgewall.com/trac/ticket/1141>
The Trac Project <>


More information about the Trac-Tickets mailing list