[XML-SIG] Redhat RPM for PyXML 0.8.2?
Craeg K Strong
cstrong@arielpartners.com
Sun, 13 Apr 2003 20:51:36 -0400
Martin v. L=F6wis wrote:
>Craeg K Strong <cstrong@arielpartners.com> writes:
> =20
>
>>$ python setup.py bdist_rpm
>> =20
>>
>>>building RPMs
>>>rpm -ba --define _topdir /opt/PyXML-0.8.2/build/bdist.linux-i686/rpm
>>>--clean build/bdist.linux-i686/rpm/SPECS/PyXML.spec
>>>-ba: unknown option
>>>error: command 'rpm' failed with exit status 1
>>>$ rpm --version
>>>RPM version 4.1
>>> =20
>>>
> Redhat decided to kill "rpm -ba", and asks everybody
>to use "rpmbuild" instead. This is fixed in recent distutils; please
>replace bdist_rpm with the file attached.
>
I did as you said, and using Python 2.1.3 got the following error:
python setup.py bdist_rpm
running bdist_rpm
Traceback (most recent call last):
File "setup.py", line 227, in ?
scripts =3D ['scripts/xmlproc_parse', 'scripts/xmlproc_val']
File "/opt/Zope-2.6.1-linux2-x86/lib/python2.1/distutils/core.py",=20
line 138, in setup
dist.run_commands()
File "/opt/Zope-2.6.1-linux2-x86/lib/python2.1/distutils/dist.py",=20
line 899, in run_commands
self.run_command(cmd)
File "/opt/Zope-2.6.1-linux2-x86/lib/python2.1/distutils/dist.py",=20
line 919, in run_command
cmd_obj.run()
File "/opt/zope/lib/python2.1/distutils/command/bdist_rpm.py", line=20
252, in run
(spec_path,
File "/opt/zope/lib/python2.1/distutils/command/bdist_rpm.py", line=20
352, in _make_spec_file
spec_file.extend([
AttributeError: Distribution instance has no attribute 'get_license'
I went ahead and changed line 353 in bdist_rpm.py from
'Copyright: ' + self.distribution.get_license(),
to
'Copyright: n/a',
and it worked. I looked like the older version of bdist_rpm.py would=20
have had
the same problem, however, as it also calls get_license(). Any ideas?
--Craeg