commit python-stdeb for openSUSE:Factory
Hello community, here is the log from the commit of package python-stdeb for openSUSE:Factory checked in at 2020-05-20 18:44:15 Comparing /work/SRC/openSUSE:Factory/python-stdeb (Old) and /work/SRC/openSUSE:Factory/.python-stdeb.new.2738 (New) Package is "python-stdeb" Wed May 20 18:44:15 2020 rev:6 rq:807155 version:0.9.0 Changes: --- /work/SRC/openSUSE:Factory/python-stdeb/python-stdeb.changes 2020-03-26 23:35:26.538822013 +0100 +++ /work/SRC/openSUSE:Factory/.python-stdeb.new.2738/python-stdeb.changes 2020-05-20 18:45:07.741237405 +0200 @@ -1,0 +2,5 @@ +Tue May 19 08:03:03 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + +--- Other differences: -- ++ python-stdeb.spec ++ --- /var/tmp/diff_new_pack.FJ9nFk/_old 2020-05-20 18:45:09.625241637 +0200 +++ /var/tmp/diff_new_pack.FJ9nFk/_new 2020-05-20 18:45:09.625241637 +0200 @@ -23,7 +23,7 @@ Summary:Python to Debian source package conversion utility License:MIT Group: Development/Languages/Python -URL:http://github.com/astraw/stdeb +URL:https://github.com/astraw/stdeb Source: https://files.pythonhosted.org/packages/source/s/stdeb/stdeb-%{version}.tar.gz # Test data Source1:tablib-0.13.0.tar.gz @@ -56,6 +56,8 @@ Requires: dpkg Requires: fakeroot Requires: python-requests +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -82,22 +84,40 @@ %install %python_install +%python_clone -a %{buildroot}%{_bindir}/pypi-install +%python_clone -a %{buildroot}%{_bindir}/pypi-download +%python_clone -a %{buildroot}%{_bindir}/py2dsc-deb +%python_clone -a %{buildroot}%{_bindir}/py2dsc %python_expand %fdupes %{buildroot}%{$python_sitelib} %check # There is also test2and3.sh which could be inlined here -export PATH=/sbin:/usr/sbin:%{buildroot}/%{_bindir}:$PATH +export PATH=/sbin:%{_prefix}/sbin:%{buildroot}/%{_bindir}:$PATH %{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} +# update-alternatives: use available versioned binaries +sed -i 's:\(_LOC=`which\s\+[-a-zA-Z0-9]\+\):\1-%{python_version}:' test.sh PYEXE=$python bash -x ./test.sh } +%post +%python_install_alternative pypi-install +%python_install_alternative pypi-download +%python_install_alternative py2dsc-deb +%python_install_alternative py2dsc + +%postun +%python_uninstall_alternative pypi-install +%python_uninstall_alternative pypi-download +%python_uninstall_alternative py2dsc-deb +%python_uninstall_alternative py2dsc + %files %{python_files} %license LICENSE.txt %doc CHANGELOG.txt README.rst -%python3_only %{_bindir}/py2dsc -%python3_only %{_bindir}/py2dsc-deb -%python3_only %{_bindir}/pypi-download -%python3_only %{_bindir}/pypi-install +%python_alternative %{_bindir}/py2dsc +%python_alternative %{_bindir}/py2dsc-deb +%python_alternative %{_bindir}/pypi-download +%python_alternative %{_bindir}/pypi-install %{python_sitelib}/* %changelog
commit python-stdeb for openSUSE:Factory
Hello community, here is the log from the commit of package python-stdeb for openSUSE:Factory checked in at 2020-03-26 23:35:09 Comparing /work/SRC/openSUSE:Factory/python-stdeb (Old) and /work/SRC/openSUSE:Factory/.python-stdeb.new.3160 (New) Package is "python-stdeb" Thu Mar 26 23:35:09 2020 rev:5 rq:788592 version:0.9.0 Changes: --- /work/SRC/openSUSE:Factory/python-stdeb/python-stdeb.changes 2019-04-22 12:25:53.124973621 +0200 +++ /work/SRC/openSUSE:Factory/.python-stdeb.new.3160/python-stdeb.changes 2020-03-26 23:35:26.538822013 +0100 @@ -1,0 +2,11 @@ +Thu Mar 26 15:08:41 UTC 2020 - Marketa Calabkova + +- update to version 0.9.0 + * fix applying patch files under Python 3 + * add --sign-results to sdist_dsc and bdist_deb command + * add --debian-version to CLI program options + * support zip files in pypi-install + * remove deprecated dh_desktop call +- Reapplied patches + +--- Old: stdeb-0.8.5.tar.gz New: stdeb-0.9.0.tar.gz Other differences: -- ++ python-stdeb.spec ++ --- /var/tmp/diff_new_pack.mNTgqI/_old 2020-03-26 23:35:29.222822983 +0100 +++ /var/tmp/diff_new_pack.mNTgqI/_new 2020-03-26 23:35:29.222822983 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-stdeb # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-stdeb -Version:0.8.5 +Version:0.9.0 Release:0 Summary:Python to Debian source package conversion utility License:MIT ++ ignore-unmet-deps.patch ++ --- /var/tmp/diff_new_pack.mNTgqI/_old 2020-03-26 23:35:29.242822990 +0100 +++ /var/tmp/diff_new_pack.mNTgqI/_new 2020-03-26 23:35:29.242822990 +0100 @@ -1,33 +1,34 @@ -Index: stdeb-0.8.5/stdeb/command/bdist_deb.py +Index: stdeb-0.9.0/stdeb/command/bdist_deb.py === stdeb-0.8.5.orig/stdeb/command/bdist_deb.py -+++ stdeb-0.8.5/stdeb/command/bdist_deb.py -@@ -43,7 +43,7 @@ class bdist_deb(Command): +--- stdeb-0.9.0.orig/stdeb/command/bdist_deb.py stdeb-0.9.0/stdeb/command/bdist_deb.py +@@ -48,7 +48,7 @@ class bdist_deb(Command): raise ValueError('could not find debian source directory') # define system command to execute (gen .deb binary pkg) --syscmd = ['dpkg-buildpackage','-rfakeroot','-uc','-b'] -+syscmd = ['dpkg-buildpackage','-d','-rfakeroot','-uc','-b'] +-syscmd = ['dpkg-buildpackage','-rfakeroot','-b'] ++syscmd = ['dpkg-buildpackage','-d','-rfakeroot','-b'] - util.process_command(syscmd,cwd=target_dirs[0]) - -Index: stdeb-0.8.5/stdeb/util.py + if not self.sign_results: + syscmd.append('-uc') +Index: stdeb-0.9.0/stdeb/util.py === stdeb-0.8.5.orig/stdeb/util.py -+++ stdeb-0.8.5/stdeb/util.py -@@ -530,6 +530,7 @@ def dpkg_source(b_or_x,arg1,cwd=None): - def dpkg_genchanges(cwd=None): - args = ['/usr/bin/dpkg-buildpackage', - '-rfakeroot', -+'-d', # ignore unmet dependencies - '-uc', # unsigned changes - '-us', # unsigned source - '-S', # source package -Index: stdeb-0.8.5/test.sh +--- stdeb-0.9.0.orig/stdeb/util.py stdeb-0.9.0/stdeb/util.py +@@ -1408,7 +1408,7 @@ def build_dsc(debinfo, + if sign_dsc: + args = () + else: +-args = ('-uc','-us') ++args = ('-d','-uc','-us') + + dpkg_buildpackage('-S','-sa',*args,cwd=fullpath_repackaged_dirname) + +Index: stdeb-0.9.0/test.sh === stdeb-0.8.5.orig/test.sh -+++ stdeb-0.8.5/test.sh -@@ -72,7 +72,7 @@ fi +--- stdeb-0.9.0.orig/test.sh stdeb-0.9.0/test.sh +@@ -74,7 +74,7 @@ export DEB_BUILD_OPTIONS=nocheck # psyco ${PY2DSC} $SOURCE_TARBALL cd deb_dist/$DEBSOURCE @@ -36,7 +37,7 @@ cd ../.. for DEBFILE in deb_dist/*.deb; do echo "contents of $DEBFILE from $SOURCE_TARBALL in case 1:" -@@ -96,7 +96,7 @@ cd $SOURCE_TARBALL_DIR +@@ -98,7 +98,7 @@ cd $SOURCE_TARBALL_DIR $PYEXE -c "import sys; print('sys.version',sys.version)" $PYEXE setup.py --command-packages=stdeb.command sdist_dsc cd deb_dist/$DEBSOURCE ++ stdeb-0.8.5.tar.gz -> stdeb-0.9.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore'
commit python-stdeb for openSUSE:Factory
Hello community, here is the log from the commit of package python-stdeb for openSUSE:Factory checked in at 2019-04-22 12:25:51 Comparing /work/SRC/openSUSE:Factory/python-stdeb (Old) and /work/SRC/openSUSE:Factory/.python-stdeb.new.5536 (New) Package is "python-stdeb" Mon Apr 22 12:25:51 2019 rev:4 rq:695498 version:0.8.5 Changes: --- /work/SRC/openSUSE:Factory/python-stdeb/python-stdeb.changes 2018-12-24 11:44:52.341267016 +0100 +++ /work/SRC/openSUSE:Factory/.python-stdeb.new.5536/python-stdeb.changes 2019-04-22 12:25:53.124973621 +0200 @@ -1,0 +2,16 @@ +Wed Apr 17 16:37:13 UTC 2019 - John Vandenberg + +- 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: + * remove-version-checks.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. + +--- Old: 126.patch New: ignore-unmet-deps.patch no-install-layout.patch remove-python-helper-rules.patch remove-version-checks.patch tablib-0.13.0.tar.gz tests-use-tablib.patch Other differences: -- ++ python-stdeb.spec ++ --- /var/tmp/diff_new_pack.P3Mlcq/_old 2019-04-22 12:25:53.764973372 +0200 +++ /var/tmp/diff_new_pack.P3Mlcq/_new 2019-04-22 12:25:53.768973371 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-stdeb # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,6 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_with test Name: python-stdeb Version:0.8.5 Release:0 @@ -26,11 +25,36 @@ Group: Development/Languages/Python URL:http://github.com/astraw/stdeb Source: https://files.pythonhosted.org/packages/source/s/stdeb/stdeb-%{version}.tar.gz -# PATCH-FIX-UPSTREAM 126.patch -- fixes https://github.com/astraw/stdeb/issues/78 -Patch0: https://github.com/astraw/stdeb/pull/126.patch +# Test data +Source1:tablib-0.13.0.tar.gz +# The tests default to using requests as the test scenario, however that +# has urllib3 & pyOpenSSL as dependencies, which makes the tests break due +# to constant incompatibilities in openssl and vendoring/de-vendoring. +# Instead use tablib. +Patch0: tests-use-tablib.patch +# stdeb is of limited use on openSUSE as any attempt to install +# dpkg packages needed to create a valid dpkg database will destroy the +# openSUSE python runtime that stdeb was installed into. Therefore it +# can only be used with a fake database, or without enforced dpkg +# dependency checks. The next two patches provide the latter approach. +# https://github.com/astraw/stdeb/issues/144 +Patch1: remove-version-checks.patch +Patch2: ignore-unmet-deps.patch +# The python helpers come from the debian python-defaults and python3-defaults +# packages, e.g. https://salsa.debian.org/cpython-team/python-defaults +# and they need to be ported to a openSUSE package. +Patch3: remove-python-helper-rules.patch +Patch4: no-install-layout.patch +BuildRequires: %{python_module requests} BuildRequires: %{python_module setuptools} +BuildRequires: debhelper +BuildRequires: dpkg +BuildRequires: fakeroot BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: debhelper +Requires: dpkg +Requires: fakeroot Requires: python-requests BuildArch: noarch %python_subpackages @@ -44,9 +68,14 @@ command installs this .deb file. The debianize command builds a debian/ directory directly alongside your setup.py. +The openSUSE version does not fail for unmet dependencies in the host +dpkg database. + %prep %setup -q -n stdeb-%{version} -%patch0 -p1 +%autopatch -p1 + +cp %{SOURCE1} . %build %python_build @@ -55,10 +84,12 @@ %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with test} %check -%python_exec setup.py test -%endif +# There is also test2and3.sh which could be inlined here +export PATH=/sbin:/usr/sbin:%{buildroot}/%{_bindir}:$PATH +%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} +PYEXE=$python bash -x ./test.sh +} %files
commit python-stdeb for openSUSE:Factory
Hello community, here is the log from the commit of package python-stdeb for openSUSE:Factory checked in at 2018-12-24 11:44:51 Comparing /work/SRC/openSUSE:Factory/python-stdeb (Old) and /work/SRC/openSUSE:Factory/.python-stdeb.new.28833 (New) Package is "python-stdeb" Mon Dec 24 11:44:51 2018 rev:3 rq:659701 version:0.8.5 Changes: --- /work/SRC/openSUSE:Factory/python-stdeb/python-stdeb.changes 2017-09-23 21:37:34.218107428 +0200 +++ /work/SRC/openSUSE:Factory/.python-stdeb.new.28833/python-stdeb.changes 2018-12-24 11:44:52.341267016 +0100 @@ -1,0 +2,5 @@ +Tue Dec 4 12:54:57 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +--- Other differences: -- ++ python-stdeb.spec ++ --- /var/tmp/diff_new_pack.LGIbjR/_old 2018-12-24 11:44:52.705266694 +0100 +++ /var/tmp/diff_new_pack.LGIbjR/_new 2018-12-24 11:44:52.709266690 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-stdeb # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -24,17 +24,15 @@ Summary:Python to Debian source package conversion utility License:MIT Group: Development/Languages/Python -Url:http://github.com/astraw/stdeb +URL:http://github.com/astraw/stdeb Source: https://files.pythonhosted.org/packages/source/s/stdeb/stdeb-%{version}.tar.gz # PATCH-FIX-UPSTREAM 126.patch -- fixes https://github.com/astraw/stdeb/issues/78 Patch0: https://github.com/astraw/stdeb/pull/126.patch -BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-requests BuildArch: noarch - %python_subpackages %description @@ -63,8 +61,8 @@ %endif %files %{python_files} -%defattr(-,root,root,-) -%doc CHANGELOG.txt LICENSE.txt README.rst +%license LICENSE.txt +%doc CHANGELOG.txt README.rst %python3_only %{_bindir}/py2dsc %python3_only %{_bindir}/py2dsc-deb %python3_only %{_bindir}/pypi-download
commit python-stdeb for openSUSE:Factory
Hello community, here is the log from the commit of package python-stdeb for openSUSE:Factory checked in at 2017-09-23 21:37:24 Comparing /work/SRC/openSUSE:Factory/python-stdeb (Old) and /work/SRC/openSUSE:Factory/.python-stdeb.new (New) Package is "python-stdeb" Sat Sep 23 21:37:24 2017 rev:2 rq:528302 version:0.8.5 Changes: --- /work/SRC/openSUSE:Factory/python-stdeb/python-stdeb.changes 2017-09-11 16:18:21.694025517 +0200 +++ /work/SRC/openSUSE:Factory/.python-stdeb.new/python-stdeb.changes 2017-09-23 21:37:34.218107428 +0200 @@ -1,0 +2,6 @@ +Sun Sep 17 11:00:01 UTC 2017 - sebix+novell@sebix.at + +- add python-requests as dependency +- add 126.patch fix upstream issue #126 from upstream PR#126 + +--- New: 126.patch Other differences: -- ++ python-stdeb.spec ++ --- /var/tmp/diff_new_pack.5PbBy0/_old 2017-09-23 21:37:35.005996623 +0200 +++ /var/tmp/diff_new_pack.5PbBy0/_new 2017-09-23 21:37:35.013995497 +0200 @@ -13,6 +13,7 @@ # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} @@ -20,15 +21,18 @@ Name: python-stdeb Version:0.8.5 Release:0 -License:MIT Summary:Python to Debian source package conversion utility -Url:http://github.com/astraw/stdeb +License:MIT Group: Development/Languages/Python +Url:http://github.com/astraw/stdeb Source: https://files.pythonhosted.org/packages/source/s/stdeb/stdeb-%{version}.tar.gz -BuildRequires: python-rpm-macros +# PATCH-FIX-UPSTREAM 126.patch -- fixes https://github.com/astraw/stdeb/issues/78 +Patch0: https://github.com/astraw/stdeb/pull/126.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-requests BuildArch: noarch %python_subpackages @@ -44,6 +48,7 @@ %prep %setup -q -n stdeb-%{version} +%patch0 -p1 %build %python_build ++ 126.patch ++ >From 80e9141023250b78b2a4c35c0ac4eb1963b3629a Mon Sep 17 00:00:00 2001 From: Sebastian WagnerDate: Wed, 12 Oct 2016 09:50:53 +0200 Subject: [PATCH] Fix install_requires fixes astraw/stdeb#78 Signed-off-by: Sebastian Wagner --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index d7796f5..cd0d81c 100644 --- a/setup.py +++ b/setup.py @@ -29,4 +29,5 @@ 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', ], +install_requires=['requests'], )