Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-python-magic for openSUSE:Factory checked in at 2021-04-19 21:05:44 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-python-magic (Old) and /work/SRC/openSUSE:Factory/.python-python-magic.new.12324 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-python-magic" Mon Apr 19 21:05:44 2021 rev:5 rq:885997 version:0.4.18 Changes: -------- --- /work/SRC/openSUSE:Factory/python-python-magic/python-python-magic.changes 2020-07-31 15:56:40.724395737 +0200 +++ /work/SRC/openSUSE:Factory/.python-python-magic.new.12324/python-python-magic.changes 2021-04-19 21:05:57.072025040 +0200 @@ -1,0 +2,5 @@ +Fri Apr 16 13:00:57 UTC 2021 - Dr. Werner Fink <wer...@suse.de> + +- Add patch fix-4-file-5.40.patch to support file 5.40 (boo#1184881) + +------------------------------------------------------------------- New: ---- fix-4-file-5.40.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-python-magic.spec ++++++ --- /var/tmp/diff_new_pack.bXCHzp/_old 2021-04-19 21:05:57.536025737 +0200 +++ /var/tmp/diff_new_pack.bXCHzp/_new 2021-04-19 21:05:57.536025737 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-python-magic # -# Copyright (c) 2020 SUSE LLC +# 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 @@ -29,6 +29,7 @@ #PATCH-FIX-OPENSUSE fix-test.patch -- adapt file outputs to opensuse Patch0: fix-test.patch Patch1: fix-test-tumbleweed.patch +Patch2: fix-4-file-5.40.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: file @@ -58,6 +59,9 @@ # Leap 15.2 and older %patch0 -p1 %endif +%if %{?pkg_vcmp:%{pkg_vcmp file >= 5.40}}%{!?pkg_vcmp:0} +%patch2 -p0 +%endif %build %python_build ++++++ fix-4-file-5.40.patch ++++++ --- test/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- test/test.py +++ test/test.py 2021-04-16 12:54:00.275731435 +0000 @@ -87,7 +87,7 @@ class MagicTest(unittest.TestCase): try: self.assert_values(m, { 'magic._pyc_': 'python 2.4 byte-compiled', - 'test.pdf': 'PDF document, version 1.2', + 'test.pdf': 'PDF document, version 1.2, 2 pages', 'test.gz': ('gzip compressed data, was "test", from Unix, last ' 'modified: Sun Jun 29 01:32:52 2008',