Commits

Anonymous committed 1e1d321

Removed hardcoding of Trac version from setup.py.

Comments (0)

Files changed (1)

 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')