Source

trac-ticketlinks / setup.py

Diff from to
 import os
 import os.path
 import sys
+import string
 from glob import glob
 from distutils.core import setup
 from distutils.command.install import install
     def run(self):
         bdist_rpm.run(self)
         if hasattr(self, 'version_suffix'):
-            prefix = os.path.join(self.dist_dir, 'trac-0.7-1')
+            prefix = os.path.join(self.dist_dir, string.lower(PACKAGE)+'-'+VERSION+'-1')
             os.rename(prefix+'.noarch.rpm', prefix+self.version_suffix+'.noarch.rpm')
             os.rename(prefix+'.src.rpm', prefix+self.version_suffix+'.src.rpm')
 
       data_files=[(_p('share/trac/templates'), glob('templates/*')),
                   (_p('share/trac/htdocs'), glob(_p('htdocs/*.*')) + [_p('htdocs/README')]),
                   (_p('share/trac/htdocs/css'), glob(_p('htdocs/css/*'))),
+                  (_p('share/man/man1'), glob(_p('scripts/*.1'))),
                   (_p('share/trac/wiki-default'), glob(_p('wiki-default/[A-Z]*')))],
       scripts=[_p('scripts/trac-admin'),
                _p('scripts/tracd'),