From 34e010699d60a15e49c203ac11381772b02c01cb Mon Sep 17 00:00:00 2001 From: mcepl <> Date: Wed, 15 Sep 2021 20:51:29 +0000 Subject: [PATCH] Update python-pylzma to version 0.5.0 / rev 5 via SR 919149 https://build.opensuse.org/request/show/919149 by user mcepl + dimstar_suse - Fix the patch metadata in the SPEC file. - %check: use %pyunittest_arch rpm macro - added patches fix https://github.com/fancycode/pylzma/issues/76 + python-pylzma-test-python3.patch --- packages/p/python-pylzma/.files | Bin 181 -> 247 bytes packages/p/python-pylzma/.rev | 13 +++++++++++++ .../python-pylzma-test-python3.patch | 13 +++++++++++++ packages/p/python-pylzma/python-pylzma.changes | 13 +++++++++++++ packages/p/python-pylzma/python-pylzma.spec | 8 ++++++-- 5 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 packages/p/python-pylzma/python-pylzma-test-python3.patch diff --git a/packages/p/python-pylzma/.files b/packages/p/python-pylzma/.files index 4fff68416b14fa917c112570faa827d823e584a6..f36903da34a1684ba16b679ddbc21470f550e5d2 100644 GIT binary patch literal 247 zcmY+;L2d&f429v5+HR1#snk6e2r}RpI1UCovuIP)L6wrzmn^e?pZ+(F32)|Q+qPF@ za}gDVTw);5UIGLvDIljTnYpjk`yaTo12^lhyWEXc2>{|X66IPVBu-v@4N1FV^SsFC zxXu0NdK$N{`*(G1uh)wl#$tis3sgJ@jj&Ac5hGAWNFa=hemv7-NHdl^b!BW>g|HAy cZ#8kxz+O`4N76pI)0AVb{NqJ*qt3Sf1Mv4nqyPW_ delta 136 zcmWm6y$!-J5I|uPM1x2}W2FlNU^$8H^KHY~hoRudA{J7zMTTKETEeTo>V1n(QKccP z&9+`Gt;M`Mm~v6|R? 662480 + + f056ed9b99844dbd51a0a80f8932b46c + 0.5.0 + + dimstar_suse + - Fix the patch metadata in the SPEC file. + +- %check: use %pyunittest_arch rpm macro +- added patches + fix https://github.com/fancycode/pylzma/issues/76 + + python-pylzma-test-python3.patch + 919149 + diff --git a/packages/p/python-pylzma/python-pylzma-test-python3.patch b/packages/p/python-pylzma/python-pylzma-test-python3.patch new file mode 100644 index 00000000000..487ff1ce41f --- /dev/null +++ b/packages/p/python-pylzma/python-pylzma-test-python3.patch @@ -0,0 +1,13 @@ +Index: pylzma-0.5.0/tests/test_usage.py +=================================================================== +--- pylzma-0.5.0.orig/tests/test_usage.py 2018-09-26 20:36:11.000000000 +0200 ++++ pylzma-0.5.0/tests/test_usage.py 2021-09-15 11:19:08.201378252 +0200 +@@ -38,7 +38,7 @@ sys.path.insert(0, ROOT) + def cleanup(path): + try: + shutil.rmtree(path) +- except EnvironmentError, e: ++ except EnvironmentError as e: + if e.errno != errno.ENOENT: + raise + diff --git a/packages/p/python-pylzma/python-pylzma.changes b/packages/p/python-pylzma/python-pylzma.changes index a0574c73df7..e87c1564199 100644 --- a/packages/p/python-pylzma/python-pylzma.changes +++ b/packages/p/python-pylzma/python-pylzma.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Wed Sep 15 12:08:00 UTC 2021 - Matej Cepl + +- Fix the patch metadata in the SPEC file. + +------------------------------------------------------------------- +Wed Sep 15 09:20:27 UTC 2021 - pgajdos@suse.com + +- %check: use %pyunittest_arch rpm macro +- added patches + fix https://github.com/fancycode/pylzma/issues/76 + + python-pylzma-test-python3.patch + ------------------------------------------------------------------- Wed Jan 2 14:09:12 UTC 2019 - Martin Pluskal diff --git a/packages/p/python-pylzma/python-pylzma.spec b/packages/p/python-pylzma/python-pylzma.spec index 790c26d15d6..41b5be05f60 100644 --- a/packages/p/python-pylzma/python-pylzma.spec +++ b/packages/p/python-pylzma/python-pylzma.spec @@ -1,7 +1,7 @@ # # spec file for package python-pylzma # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,6 +26,9 @@ License: LGPL-2.1-only Group: Development/Languages/Python URL: https://github.com/fancycode/pylzma Source0: https://github.com/fancycode/pylzma/archive/v%{version}.tar.gz +# PATCH-FIX-UPSTREAM python-pylzma-test-python3.patch gh#fancycode/pylzma#76 mcepl@suse.com +# use python3 syntax in test_usage.py +Patch0: python-pylzma-test-python3.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -38,6 +41,7 @@ that has been compressed or can be decompressed by the LZMA library. %prep %setup -q -n %{oname}-%{version} +%patch0 -p1 # Remove Shebang sed -i '1d' py7zlib.py @@ -50,7 +54,7 @@ sed -i '1d' py7zlib.py %python_expand %fdupes %{buildroot}%{$python_sitearch} %check -%python_exec setup.py test +%pyunittest_arch discover -v %files %{python_files} %license LICENSE