id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,branch,changelog,apichanges,internalchanges 1141,setup.py does not produce valid rpm on Fedora core 3,nigel.metheringham@…,daniel,"{{{ 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_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. ",enhancement,closed,normal,0.9,project,0.8,normal,fixed,,,,,,