## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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.0 Release: %autorelease Summary: Command-line utility to check PNG image files # Note that the main package contains only pngcheck, compiled from a single # source file, pngcheck.c, 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 # For now, the source archive still contains a couple of utilities licensed # under GPL-2.0-or-later, in the gpl/ subdirectory. These were previously # packaged an the extras subpackage, but since they were removed upstream # immediately after the 4.0.0 release, we choose to stop packaging them now. %global extras_license GPL-2.0-or-later License: HPND SourceLicense: %{license} AND %{extras_license} URL: https://github.com/pnggroup/pngcheck Source: %{url}/archive/v%{version}/pngcheck-%{version}.tar.gz # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} BuildRequires: dos2unix BuildRequires: cmake 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 %autosetup dos2unix --keepdate README.md %conf %cmake %build %cmake_build %install %cmake_install # Upstream provides no tests %files %license LICENSE %doc CHANGELOG %doc README.md %doc README-303 %{_bindir}/pngcheck %{_mandir}/man1/pngcheck.1* %changelog ## START: Generated by rpmautospec * 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