[FIX] Redhat Package Manager
lp bug: https://launchpad.net/bugs/311981 fixed lp bug: https://launchpad.net/bugs/314575 fixed bzr revid: stephane@tinyerp.com-20090123121404-345vxufyn1beqjt4
This commit is contained in:
parent
54d7c08eba
commit
83a8db6b97
|
@ -22,7 +22,8 @@
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
name = 'openerp-server'
|
name = 'openerp-server'
|
||||||
version = '5.0.0_rc3'
|
version = '5.0.0'
|
||||||
|
release = '0_rc3'
|
||||||
major_version = '5.0'
|
major_version = '5.0'
|
||||||
description = 'OpenERP Server'
|
description = 'OpenERP Server'
|
||||||
long_desc = '''\
|
long_desc = '''\
|
||||||
|
|
|
@ -7,8 +7,7 @@
|
||||||
# Need to overwrite the install-part of the RPM to append the
|
# Need to overwrite the install-part of the RPM to append the
|
||||||
# compression-suffix onto the filenames for the man-pages.
|
# 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
|
SUFFIX=gz
|
||||||
mv INSTALLED_FILES INSTALLED_FILES.orig
|
sed "s!\(/share/man/.*\)!\1.$SUFFIX!" -i INSTALLED_FILES
|
||||||
sed "s!\(/share/man/.*\)!\1.$SUFFIX!" INSTALLED_FILES.orig > INSTALLED_FILES
|
|
||||||
|
|
|
@ -5,7 +5,8 @@ formats=gztar
|
||||||
formats=rpm
|
formats=rpm
|
||||||
|
|
||||||
[bdist_rpm]
|
[bdist_rpm]
|
||||||
release=1
|
# release must exactly match 'release' as set in bin/release.py
|
||||||
|
release=0_rc3
|
||||||
|
|
||||||
requires=python >= 2.3
|
requires=python >= 2.3
|
||||||
#build-requires=python-devel >= 2.3
|
#build-requires=python-devel >= 2.3
|
||||||
|
|
3
setup.py
3
setup.py
|
@ -44,6 +44,9 @@ opj = os.path.join
|
||||||
|
|
||||||
execfile(opj('bin', 'release.py'))
|
execfile(opj('bin', 'release.py'))
|
||||||
|
|
||||||
|
if sys.argv[1] != 'bdist_rpm':
|
||||||
|
version = version + '-' + release
|
||||||
|
|
||||||
# get python short version
|
# get python short version
|
||||||
py_short_version = '%s.%s' % sys.version_info[:2]
|
py_short_version = '%s.%s' % sys.version_info[:2]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue