## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 5; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: pngcheck Version: 4.0.1 Release: %autorelease Summary: Command-line utility to check PNG image files # The source is under a minimal MIT-style license that matches SPDX HPND: # https://gitlab.com/fedora/legal/fedora-license-data/-/issues/85 # https://tools.spdx.org/app/license_requests/187/ # https://github.com/spdx/license-list-XML/issues/1725 # …except that third_party/wildargs/ is BSL-1.0. Since it’s needed only on # non-“UNIX” platforms, we remove it in %%prep and it does not contribute to # the licenses of the binary RPMs. License: HPND SourceLicense: %{license} AND BSL-1.0 URL: https://github.com/pnggroup/pngcheck Source: %{url}/archive/v%{version}/pngcheck-%{version}.tar.gz BuildSystem: cmake # Upstream provides no tests # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} BuildRequires: gcc BuildRequires: cmake(zlib) # Removed for Fedora 43; Obsoletes can be removed after Fedora 45. Obsoletes: pngcheck-extras < 4.0.0-2 %description pngcheck is a command-line utility to check PNG image files, including animated PNG, for validity and to give information about metadate inside the file (apart from the actual image data). %prep -a # Remove bundled libraries (currently: wildargs) that are not needed on this # platform, in order to prove they do not contribute to the binary RPMs. rm --recursive --verbose third_party/ %files %license LICENSE %doc CHANGELOG %doc README.md %doc README-303 %{_bindir}/pngcheck %{_mandir}/man1/pngcheck.1* %changelog ## START: Generated by rpmautospec * Thu Jul 16 2026 Fedora Release Engineering - 4.0.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild * Tue May 19 2026 Benjamin A. Beasley - 4.0.1-4 - Use the cmake declarative buildsystem * Tue May 19 2026 Benjamin A. Beasley - 4.0.1-3 - Use various long options * Sat Jan 17 2026 Fedora Release Engineering - 4.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Sun Dec 14 2025 Benjamin A. Beasley - 4.0.1-1 - Update to 4.0.1 (close RHBZ#2420991) * Fri Jul 25 2025 Fedora Release Engineering - 4.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Thu May 01 2025 Benjamin A. Beasley - 4.0.0-2 - Remove and Obsolete the -extras subpackage * Thu May 01 2025 Benjamin A. Beasley - 4.0.0-1 - Update to 4.0.0, with new pnggroup/pngcheck upstream - Close RHBZ#2363234 * Thu May 01 2025 Benjamin A. Beasley - 3.0.3-19 - Update .rpmlintrc file for current rpmlint * Sat Jan 18 2025 Fedora Release Engineering - 3.0.3-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Fri Dec 13 2024 Benjamin A. Beasley - 3.0.3-17 - Add a SourceLicense field * Fri Jul 19 2024 Fedora Release Engineering - 3.0.3-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jan 25 2024 Fedora Release Engineering - 3.0.3-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 3.0.3-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 3.0.3-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sat Jun 03 2023 Benjamin A. Beasley - 3.0.3-12 - Remove explicit %%set_build_flags, not needed since F36 * Fri Jan 20 2023 Fedora Release Engineering - 3.0.3-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Dec 21 2022 Benjamin A. Beasley - 3.0.3-9 - Leaf package: remove i686 support * Wed Nov 30 2022 Benjamin A. Beasley - 3.0.3-8 - Convert License to SPDX * Wed Nov 30 2022 Benjamin A. Beasley - 3.0.3-7 - Reduce macro indirection in the spec file * Fri Jul 22 2022 Fedora Release Engineering - 3.0.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jan 21 2022 Fedora Release Engineering - 3.0.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 3.0.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jul 21 2021 Benjamin A. Beasley - 3.0.3-3 - Drop EPEL-specific workarounds * Mon Apr 26 2021 Benjamin A. Beasley - 3.0.3-1 - New upstream release 3.0.3 (fixes #1949800) * Mon Feb 01 2021 Benjamin A. Beasley - 3.0.2-1 - New upstream release 3.0.2 * Sun Jan 31 2021 Benjamin A. Beasley - 3.0.1-1 - New upstream version 3.0.1 with upstreamed patches * Wed Jan 27 2021 Fedora Release Engineering - 3.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Thu Jan 7 2021 Benjamin A. Beasley - 3.0.0-4 - Fix buffer overflow on large MNG LOOP chunk (RHBZ#1908559); not built in Fedora * Mon Dec 14 2020 Benjamin A. Beasley - 3.0.0-3 - Fix a buffer overrun for certain invalid MNG PPLT chunk contents (RHBZ#1907428); not built in Fedora * Mon Dec 14 2020 Benjamin A. Beasley - 3.0.0-2 - Previous fix for buffer overrun printing the contents of the sPLT chunk in certain malformed inputs (RHBZ#1905775) was incomplete; it should be properly fixed now. * Sun Dec 13 2020 Benjamin A. Beasley - 3.0.0-1 - New upstream version 3.0.0 incorporating all patches in 2.4.0-4, and removing the -f option * Sun Dec 13 2020 Benjamin A. Beasley - 2.4.0-4 - Bounds-check all accesses into enumerated-value name arrays; a malformed file could have caused a buffer overrun in several of these cases. (RHBZ#1902810) - Fix buffer overrun when print_buffer() is passed a nonpositive size, which can occur in practice for certain malformed inputs. (RHBZ#1902810) - In some cases, the chunk length from the file data (sz) is used to index into the read buffer without sufficient bounds-checking, leading to a buffer overrun. Fix this for PPLT, hIST, sCAL, FRAM, SAVE, nEED, PAST, DISC, DROP, DBYK, ORDR, and SEEK chunks. (RHBZ#1902810) - Fix buffer overrun printing the contents of the sPLT chunk in certain malformed inputs. (RHBZ#1905775) - Backport fix for off-by-one bug in check_magic() from 3.0.0 - Backport fix for zlib version warnings going to stdout from 3.0.0 * Mon Nov 30 2020 Benjamin A. Beasley - 2.4.0-3 - Fix null pointer dereference in pngcheck when -f is given and the sCAL chunk is missing the pixel height. - Use name macro when referencing patches. - Add BR on make in anticipation of https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot. * Fri Nov 13 2020 Benjamin A. Beasley - 2.4.0-2 - Fix buffer overflow (RHBZ #1897485) * Sun Nov 1 2020 Benjamin A. Beasley - 2.4.0-1 - New upstream version 2.4.0 - Added new license file for main package (same MIT-style license) - Drop format-security patch, now upstreamed - Use upstreamed man pages; no need to generate with help2man anymore * Sat Oct 31 2020 Benjamin A. Beasley - 2.3.0-5 - Add rpmlintrc rules for -extras subpackage * Sat Oct 31 2020 Benjamin A. Beasley - 2.3.0-4 - Add rpmlintrc file to suppress spurious rpmlint warnings * Wed Oct 28 2020 Benjamin A. Beasley - 2.3.0-3 - Add _hardened_build macro for EPEL * Wed Oct 28 2020 Benjamin A. Beasley - 2.3.0-2 - Work around Makefile.unx not actually using LDFLAGS; this fixes hardened build (PIE) * Thu Oct 15 2020 Benjamin A. Beasley - 2.3.0-1 - Initial import (#1886858) ## END: Generated by rpmautospec