diff --git a/bin/release.py b/bin/release.py index 9c96c3fad75..5fb882d2663 100644 --- a/bin/release.py +++ b/bin/release.py @@ -22,7 +22,8 @@ ############################################################################## name = 'openerp-server' -version = '5.0.0_rc3' +version = '5.0.0' +release = '0_rc3' major_version = '5.0' description = 'OpenERP Server' long_desc = '''\ diff --git a/rpminstall_sh.txt b/rpminstall_sh.txt index 0d88cc1dcf1..c184585e94f 100644 --- a/rpminstall_sh.txt +++ b/rpminstall_sh.txt @@ -7,8 +7,7 @@ # Need to overwrite the install-part of the RPM to append the # compression-suffix onto the filenames for the man-pages. # -python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES +python setup.py install --optimize 1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES SUFFIX=gz -mv INSTALLED_FILES INSTALLED_FILES.orig -sed "s!\(/share/man/.*\)!\1.$SUFFIX!" INSTALLED_FILES.orig > INSTALLED_FILES +sed "s!\(/share/man/.*\)!\1.$SUFFIX!" -i INSTALLED_FILES diff --git a/setup.cfg b/setup.cfg index caf187e4c33..7770708d9b9 100644 --- a/setup.cfg +++ b/setup.cfg @@ -5,7 +5,8 @@ formats=gztar formats=rpm [bdist_rpm] -release=1 +# release must exactly match 'release' as set in bin/release.py +release=0_rc3 requires=python >= 2.3 #build-requires=python-devel >= 2.3 diff --git a/setup.py b/setup.py index 7c55dd4e2e6..a7c6ecb5f0e 100755 --- a/setup.py +++ b/setup.py @@ -44,6 +44,9 @@ opj = os.path.join execfile(opj('bin', 'release.py')) +if sys.argv[1] != 'bdist_rpm': + version = version + '-' + release + # get python short version py_short_version = '%s.%s' % sys.version_info[:2]