('verify-script=', None,
"Specify a script for the VERIFY phase of the RPM build"),
+ # Allow a packager to explicitly force an architecture
+ ('force-arch=', None,
+ "Force an architecture onto the RPM build process"),
]
boolean_options = ['keep-temp', 'use-rpm-opt-flags', 'rpm3-mode']
self.use_rpm_opt_flags = 1
self.rpm3_mode = 1
+ self.force_arch = None
+
# initialize_options()
self.ensure_string_list('build_requires')
self.ensure_string_list('obsoletes')
+ self.ensure_string('force_arch')
# finalize_package_data ()
'BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot',
'Prefix: %{_prefix}', ])
- # noarch if no extension modules
- if not self.distribution.has_ext_modules():
- spec_file.append('BuildArchitectures: noarch')
+ if not self.force_arch:
+ # noarch if no extension modules
+ if not self.distribution.has_ext_modules():
+ spec_file.append('BuildArch: noarch')
+ else:
+ spec_file.append( 'BuildArch: %s' % self.force_arch )
for field in ('Vendor',
'Packager',
Library
-------
-- bdist_rpm now supports command line options {pre,post}-install,
- {pre,post}-uninstall, and {prep,build,install,clean,verify}-script.
+- bdist_rpm now supports command line options --force-arch,
+ {pre,post}-install, {pre,post}-uninstall, and
+ {prep,build,install,clean,verify}-script.
- SF patch #998993: The UTF-8 and the UTF-16 stateful decoders now support
decoding incomplete input (when the input stream is temporarily exhausted).
``codecs.StreamReader`` now implements buffering, which enables proper