- Add missing runtime dependencies
- Remove 126.patch which does nothing
- Activate test suite, using tests-use-tablib.patch, and removing
bcond test
- Add four patches to workaround problems relating to use
of dpkg on openSUSE:
* ignore-unmet-deps.patch and ignore-unmet-deps.patch:
A real dpkg database can not be populated with the
necessary dependencies
* no-install-layout.patch and remove-python-helper-rules.patch:
--install-layout=deb and the python helpers are not available
on openSUSE.
OBS-URL: https://build.opensuse.org/request/show/695310
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-stdeb?expand=0&rev=8
40 lines
1.9 KiB
Diff
40 lines
1.9 KiB
Diff
Index: stdeb-0.8.5/stdeb/util.py
|
|
===================================================================
|
|
--- stdeb-0.8.5.orig/stdeb/util.py
|
|
+++ stdeb-0.8.5/stdeb/util.py
|
|
@@ -1375,34 +1375,6 @@ def build_dsc(debinfo,
|
|
finally:
|
|
shutil.rmtree(tmp_dir)
|
|
|
|
- if 1:
|
|
- # check versions of debhelper and python-all
|
|
- debhelper_version_str = get_version_str('debhelper')
|
|
- if len(debhelper_version_str)==0:
|
|
- log.warn('This version of stdeb requires debhelper >= %s, but you '
|
|
- 'do not have debhelper installed. '
|
|
- 'Could not check compatibility.'%DH_MIN_VERS)
|
|
- else:
|
|
- if not dpkg_compare_versions(
|
|
- debhelper_version_str, 'ge', DH_MIN_VERS ):
|
|
- log.warn('This version of stdeb requires debhelper >= %s. '
|
|
- 'Use stdeb 0.3.x to generate source packages '
|
|
- 'compatible with older versions of debhelper.'%(
|
|
- DH_MIN_VERS,))
|
|
-
|
|
- python_defaults_version_str = get_version_str('python-all')
|
|
- if len(python_defaults_version_str)==0:
|
|
- log.warn('This version of stdeb requires python-all >= %s, '
|
|
- 'but you do not have this package installed. '
|
|
- 'Could not check compatibility.'%PYTHON_ALL_MIN_VERS)
|
|
- else:
|
|
- if not dpkg_compare_versions(
|
|
- python_defaults_version_str, 'ge', PYTHON_ALL_MIN_VERS):
|
|
- log.warn('This version of stdeb requires python-all >= %s. '
|
|
- 'Use stdeb 0.6.0 or older to generate source packages '
|
|
- 'that use python-support.'%(
|
|
- PYTHON_ALL_MIN_VERS,))
|
|
-
|
|
# D. restore debianized tree
|
|
os.rename(fullpath_repackaged_dirname+'.debianized',
|
|
fullpath_repackaged_dirname)
|