The package rpms/python-img2pdf.git has added or updated architecture specific content in
its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/python-img2pdf.git/commit/?id=2bb....
Change:
+ExcludeArch: ppc64le
Thanks.
Full change:
============
commit 2bbeaef4e7dd72e0e129f4bd0fa61abc6c79d19a
Author: Georg Sauthoff <mail(a)gms.tf>
Date: Sun Jan 22 20:43:37 2023 +0100
exclude ppc64le (cf. #2162999)
diff --git a/python-img2pdf.spec b/python-img2pdf.spec
index e9e42c2..af0c340 100644
--- a/python-img2pdf.spec
+++ b/python-img2pdf.spec
@@ -9,7 +9,7 @@ The img2pdf command complements the pdfimages command.
Name: python-%{srcname}
Version: 0.4.4
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: Lossless images to PDF conversion library and command
License: LGPLv3+
@@ -23,6 +23,9 @@ BuildArch: noarch
# cf. Bug 1851638 - img2pdf fails to build on s390x because of issues in the ImageMagick
dependency
#
https://bugzilla.redhat.com/show_bug.cgi?id=1851638
ExcludeArch: s390x
+# cf. img2pdf testsuite fails on PPC64LE
+#
https://bugzilla.redhat.com/show_bug.cgi?id=2162999
+ExcludeArch: ppc64le
# Disable tests on EPEL8 for now, since some of the dependencies aren't available
%if 0%{?epel} == 0
@@ -112,6 +115,9 @@ PYTHONPATH=src %{__python3} -m pytest src/img2pdf_test.py -v -k
'not jpg_cmyk an
%changelog
+* Sun Jan 22 2023 Georg Sauthoff <mail(a)gms.tf> - 0.4.4-6
+- Exclude ppc64le due to failing test cases.
+
* Sun Jan 22 2023 Georg Sauthoff <mail(a)gms.tf> - 0.4.4-5
- Skip more test cases on rawhide.
commit b1929a676ebb5f0e17899117441e665cd35e55b2
Author: Georg Sauthoff <mail(a)gms.tf>
Date: Sun Jan 22 19:06:26 2023 +0100
skip more tests on rawhide
diff --git a/python-img2pdf.spec b/python-img2pdf.spec
index de7b01a..e9e42c2 100644
--- a/python-img2pdf.spec
+++ b/python-img2pdf.spec
@@ -9,7 +9,7 @@ The img2pdf command complements the pdfimages command.
Name: python-%{srcname}
Version: 0.4.4
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Lossless images to PDF conversion library and command
License: LGPLv3+
@@ -97,7 +97,7 @@ sed -i '1i#!'%{__python3} src/img2pdf.py
# cf.
https://gitlab.mister-muffin.de/josch/img2pdf/issues/152
# XXX TODO enable again after issue is resolved
-PYTHONPATH=src %{__python3} -m pytest src/img2pdf_test.py -v -k 'not jpg_cmyk and not
png_gray16[ and not tiff_cmyk8'
+PYTHONPATH=src %{__python3} -m pytest src/img2pdf_test.py -v -k 'not jpg_cmyk and not
png_gray16[ and not tiff_cmyk8 and not tiff_rgb12 and not tiff_rgb14'
%endif
@@ -112,6 +112,9 @@ PYTHONPATH=src %{__python3} -m pytest src/img2pdf_test.py -v -k
'not jpg_cmyk an
%changelog
+* Sun Jan 22 2023 Georg Sauthoff <mail(a)gms.tf> - 0.4.4-5
+- Skip more test cases on rawhide.
+
* Sun Jan 22 2023 Georg Sauthoff <mail(a)gms.tf> - 0.4.4-4
- Skip some test cases due to updated dependencies until upstream fix.
commit 45558e3f664a8fab96a60f58c7940a5894b5a0a1
Author: Georg Sauthoff <mail(a)gms.tf>
Date: Sun Jan 22 18:49:42 2023 +0100
skip some tests due to external command changes
diff --git a/psnr-format.patch b/psnr-format.patch
new file mode 100644
index 0000000..07b43ee
--- /dev/null
+++ b/psnr-format.patch
@@ -0,0 +1,20 @@
+--- a/src/img2pdf_test.py 2023-01-22 18:36:32.208977359 +0100
++++ b/src/img2pdf_test.py 2023-01-22 18:39:52.918531386 +0100
+@@ -345,7 +345,7 @@
+ stderr=subprocess.PIPE,
+ ).stderr
+ assert psnr != b"0"
+- psnr = float(psnr.strip(b"0"))
++ psnr = float(psnr.split()[0])
+ assert psnr != 0 # or otherwise we would use the exact variant
+ assert psnr > 50
+
+@@ -501,7 +501,7 @@
+ stderr=subprocess.PIPE,
+ ).stderr
+ assert psnr != b"0"
+- psnr = float(psnr.strip(b"0"))
++ psnr = float(psnr.split()[0])
+ assert psnr != 0 # or otherwise we would use the exact variant
+ assert psnr > 50
+ (tmpdir / "images-000.png").unlink()
diff --git a/python-img2pdf.spec b/python-img2pdf.spec
index b7d6a60..de7b01a 100644
--- a/python-img2pdf.spec
+++ b/python-img2pdf.spec
@@ -9,12 +9,13 @@ The img2pdf command complements the pdfimages command.
Name: python-%{srcname}
Version: 0.4.4
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Lossless images to PDF conversion library and command
License: LGPLv3+
URL:
https://pypi.org/project/img2pdf
Source0: %pypi_source
+Patch0: psnr-format.patch
BuildArch: noarch
@@ -94,11 +95,9 @@ sed -i '1{/^#!\//d}' src/*.py
# (file is already installed at this point)
sed -i '1i#!'%{__python3} src/img2pdf.py
-
-# disable 4 animation related test cases until upstream issue is fixed:
-# cf.
https://gitlab.mister-muffin.de/josch/img2pdf/issues/130
+# cf.
https://gitlab.mister-muffin.de/josch/img2pdf/issues/152
# XXX TODO enable again after issue is resolved
-PYTHONPATH=src %{__python3} -m pytest src/img2pdf_test.py -v -k 'not animation'
+PYTHONPATH=src %{__python3} -m pytest src/img2pdf_test.py -v -k 'not jpg_cmyk and not
png_gray16[ and not tiff_cmyk8'
%endif
@@ -113,6 +112,9 @@ PYTHONPATH=src %{__python3} -m pytest src/img2pdf_test.py -v -k
'not animation'
%changelog
+* Sun Jan 22 2023 Georg Sauthoff <mail(a)gms.tf> - 0.4.4-4
+- Skip some test cases due to updated dependencies until upstream fix.
+
* Fri Jan 20 2023 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.4.4-3
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
commit 1f2acd0a3d61507215fa0704e8339fc73db968c0
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Fri Jan 20 13:57:27 2023 +0000
Rebuilt for
https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng(a)fedoraproject.org>
diff --git a/python-img2pdf.spec b/python-img2pdf.spec
index 09f4637..b7d6a60 100644
--- a/python-img2pdf.spec
+++ b/python-img2pdf.spec
@@ -9,7 +9,7 @@ The img2pdf command complements the pdfimages command.
Name: python-%{srcname}
Version: 0.4.4
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Lossless images to PDF conversion library and command
License: LGPLv3+
@@ -113,6 +113,9 @@ PYTHONPATH=src %{__python3} -m pytest src/img2pdf_test.py -v -k
'not animation'
%changelog
+* Fri Jan 20 2023 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.4.4-3
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
+
* Fri Jul 22 2022 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.4.4-2
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild