Compare commits

...
Sign in to create a new pull request.

28 commits

Author SHA1 Message Date
Fedora Release Engineering
5066c0040b Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-16 03:29:01 +00:00
Benjamin A. Beasley
999f9deb8e Update the .rpmlintrc file
[skip changelog]
2026-01-07 16:35:44 +00:00
Fedora Release Engineering
52005ff320 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-23 16:47:43 +00:00
Benjamin A. Beasley
6d838becc0 Revert "Use the VCS tag"; tag contents did not follow convention
This reverts commit c9ae8fd33c.
2025-06-13 06:36:08 -04:00
Benjamin A. Beasley
c9ae8fd33c Use the VCS tag 2025-06-13 06:18:39 -04:00
Benjamin A. Beasley
6d02d1e9e5 Update .rpmlintrc file for a new rpmlint verison 2025-04-24 07:57:12 -04:00
Fedora Release Engineering
f12f185d6d Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-16 10:39:37 +00:00
Benjamin A. Beasley
0b1d468e63 Add a SourceLicense field 2024-12-11 14:17:59 -05:00
Benjamin A. Beasley
304257fd2c Improve the license-breakdown spec-file comment 2024-12-11 14:03:31 -05:00
Benjamin A. Beasley
014ec9f6e9 Invoke autoreconf and configure in %conf rather than in %build 2024-10-31 14:10:42 -04:00
Fedora Release Engineering
b5736a5b66 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-17 16:39:52 +00:00
Benjamin A. Beasley
b849bab27f Add an rpmlintrc file
[skip changelog]
2024-03-05 09:21:39 -05:00
Fedora Release Engineering
97cb7201ea Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-22 22:43:47 +00:00
Fedora Release Engineering
b5dda5d8e2 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-19 12:18:11 +00:00
Benjamin A. Beasley
93f35b3173 Update to 2.6 (close RHBZ#2243085) 2023-11-09 10:46:52 -05:00
Fedora Release Engineering
fcef08707e Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-19 12:58:14 +00:00
Benjamin A. Beasley
ab3c30af1a Remove explicit %set_build_flags, not needed since F36
https://www.fedoraproject.org/wiki/Changes/SetBuildFlagsBuildCheck
2023-06-03 10:22:09 -04:00
Benjamin A. Beasley
0d1703faac Trivial tidying
[skip changelog]
2023-05-26 09:29:06 -04:00
Benjamin A. Beasley
22e119134b Break a long line with a macro
[skip changelog]
2023-05-26 09:28:09 -04:00
Benjamin A. Beasley
6d18adf819 Do not number the sole Source
[skip changelog]
2023-05-26 09:27:20 -04:00
Benjamin A. Beasley
824d7ad4cd Add an rpmlintrc file 2023-05-11 10:19:34 -04:00
Benjamin A. Beasley
101f35baa0 Update to 2.5 (close RHBZ#2162990; fix RHBZ#2161641) 2023-01-22 13:43:51 -05:00
Fedora Release Engineering
e2ff0b6664 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-18 21:27:30 +00:00
Benjamin A. Beasley
649d63913c Update to 2.4 (close RHBZ#2145023)
- Security fix for CVE-2022-35014, CVE-2022-35015, CVE-2022-35016,
  CVE-2022-35017, CVE-2022-35018, CVE-2022-35019, CVE-2022-35020
2022-11-23 15:45:11 -05:00
Benjamin A. Beasley
0ee3b4785e Identify bundled 7-Zip as “7zip” rather than “7z”
This is closer to the upstream name, to “p7zip”, and to existing usage
in the “retroarch” package.
2022-09-29 08:21:35 -04:00
Benjamin A. Beasley
91a8c8347b Add a comment about upstream tests 2022-09-29 08:16:25 -04:00
Benjamin A. Beasley
791cf7b520 Stricter file globs 2022-09-28 17:21:51 -04:00
Benjamin A. Beasley
6729dfb4a3 Drop EPEL conditionals from Fedora branches 2022-09-28 11:54:40 -04:00
4 changed files with 46 additions and 39 deletions

3
.gitignore vendored
View file

@ -7,3 +7,6 @@ advancecomp-1.15.tar.gz
/advancecomp-1.23.tar.gz /advancecomp-1.23.tar.gz
/advancecomp-2.1.tar.gz /advancecomp-2.1.tar.gz
/advancecomp-2.3.tar.gz /advancecomp-2.3.tar.gz
/advancecomp-2.4.tar.gz
/advancecomp-2.5.tar.gz
/advancecomp-2.6.tar.gz

6
advancecomp.rpmlintrc Normal file
View file

@ -0,0 +1,6 @@
# Not real spelling errors
addFilter(r" spelling-error \('[Rr]ecompression',")
addFilter(r" spelling-error \('([pm]ng|gz)',")
addFilter(r" spelling-error \('adv(zip|[pm]ng|def)',")
# Intentional, with a justifying spec-file comment
addFilter(r" no-%check-section")

View file

@ -1,5 +1,5 @@
Name: advancecomp Name: advancecomp
Version: 2.3 Version: 2.6
Release: %autorelease Release: %autorelease
Summary: Recompression utilities for .png, .mng, .zip and .gz files Summary: Recompression utilities for .png, .mng, .zip and .gz files
@ -14,15 +14,21 @@ Summary: Recompression utilities for .png, .mng, .zip and .gz files
# of the sources that would be covered by the “unRAR license restriction” or # of the sources that would be covered by the “unRAR license restriction” or
# the BSD-3-Clause license for LZFSE are present in this fork. # the BSD-3-Clause license for LZFSE are present in this fork.
# #
# Certain build-system files, which do not contribute to the license of the
# binary RPM, are under other permissible licenses.
#
# However, in version 1.17, the COPYING file was updated to GPLv3, with a # However, in version 1.17, the COPYING file was updated to GPLv3, with a
# changelog message (in HISTORY and elsewhere) of “Changes to GPL3.” We # changelog message (in HISTORY and elsewhere) of “Changes to GPL3.” We
# interpret this as an overall license of GPL-3.0-only. # interpret this as an overall license of GPL-3.0-only.
License: GPL-3.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later License: GPL-3.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later
# Additionally, the following bundled libraries are removed in %%prep and do
# not contribute to the licenses of the binary RPMs:
#
# Apache-2.0:
# - zopfli/
# MIT:
# - libdeflate/
SourceLicense: %{license} AND Apache-2.0 AND MIT
URL: https://www.advancemame.it/ URL: https://www.advancemame.it/
Source0: https://github.com/amadvance/advancecomp/archive/v%{version}/advancecomp-%{version}.tar.gz %global forgeurl https://github.com/amadvance/advancecomp
Source: %{forgeurl}/archive/v%{version}/advancecomp-%{version}.tar.gz
BuildRequires: autoconf BuildRequires: autoconf
BuildRequires: automake BuildRequires: automake
@ -36,23 +42,13 @@ BuildRequires: dos2unix
# System library supported by upstream # System library supported by upstream
BuildRequires: zlib-devel BuildRequires: zlib-devel
%if 0%{?el7}
# No libdeflate package in EPEL7
Provides: bundled(libdeflate) = 0.6
%else
# Unbundled downstream # Unbundled downstream
BuildRequires: pkgconfig(libdeflate) BuildRequires: pkgconfig(libdeflate) >= 1.19
%endif
%if 0%{?el9} || 0%{?el8} || 0%{?el7}
# No libzopfli/zopfli-devel in these distributions
# Version number based on HISTORY, which mentions that upstream commit
# 6818a0859063b946094fb6f94732836404a0d89a was used from
# https://github.com/google/zopfli/.
Provides: bundled(zopfli) = 1.0.2%{?!el7:^20160527git6818a08}
%else
BuildRequires: zopfli-devel BuildRequires: zopfli-devel
%endif
# The point of the 2.6 release was to upgrade the bundled libdeflate; enforce
# this on the unbundled libdeflate.
Requires: libdeflate >= 1.19
# From 7z/README: # From 7z/README:
# #
@ -70,7 +66,7 @@ BuildRequires: zopfli-devel
# library, and because the implementation is modified, there is no possibility # library, and because the implementation is modified, there is no possibility
# of unbundling. Note that this was forked from the original 7-Zip, not from # of unbundling. Note that this was forked from the original 7-Zip, not from
# p7zip. # p7zip.
Provides: bundled(7z) Provides: bundled(7zip)
%description %description
AdvanceCOMP contains recompression utilities for your .zip archives, AdvanceCOMP contains recompression utilities for your .zip archives,
@ -88,12 +84,12 @@ This package contains:
%prep %prep
%autosetup -p1 %autosetup
dos2unix -k doc/*.txt dos2unix -k doc/*.txt
%if ! 0%{?el7}
# Patch out bundled libdeflate # Patch out bundled libdeflate
rm -rvf libdeflate rm -rv libdeflate
sed -r -i '/libdeflate[\/_]/d' Makefile.am sed -r -i '/libdeflate[\/_]/d' Makefile.am
# Fix up #include paths. The find-then-modify pattern keeps us from discarding # Fix up #include paths. The find-then-modify pattern keeps us from discarding
# mtimes on any sources that do not need modification. # mtimes on any sources that do not need modification.
@ -101,11 +97,9 @@ find . -type f -exec gawk \
'/^[[:blank:]]*#include.*libdeflate/ { print FILENAME; nextfile }' \ '/^[[:blank:]]*#include.*libdeflate/ { print FILENAME; nextfile }' \
'{}' '+' | '{}' '+' |
xargs -r -t sed -r -i 's@^([[:blank:]]*#include.*)libdeflate/@\1@' xargs -r -t sed -r -i 's@^([[:blank:]]*#include.*)libdeflate/@\1@'
%endif
%if !(0%{?el9} || 0%{?el8} || 0%{?el7})
# Patch out bundled zopfli # Patch out bundled zopfli
rm -rvf zopfli rm -rv zopfli
sed -r -i \ sed -r -i \
-e '/zopfli[\/_]/d' \ -e '/zopfli[\/_]/d' \
-e 's/((\(7z_SOURCES\)|WindowOut\.h).*)[[:blank:]]*\\/\1/' \ -e 's/((\(7z_SOURCES\)|WindowOut\.h).*)[[:blank:]]*\\/\1/' \
@ -116,26 +110,23 @@ find . -type f -exec gawk \
'/^[[:blank:]]*#include.*zopfli/ { print FILENAME; nextfile }' \ '/^[[:blank:]]*#include.*zopfli/ { print FILENAME; nextfile }' \
'{}' '+' | '{}' '+' |
xargs -r -t sed -r -i -e 's@^([[:blank:]]*#include.*)zopfli/@\1@' xargs -r -t sed -r -i -e 's@^([[:blank:]]*#include.*)zopfli/@\1@'
%endif
%build %conf
%set_build_flags
autoreconf --force --install --verbose autoreconf --force --install --verbose
%if ! 0%{?el7}
# Link against system libdeflate # Link against system libdeflate
export CFLAGS="$(pkgconf --cflags libdeflate) ${CFLAGS-}" export CFLAGS="$(pkgconf --cflags libdeflate) ${CFLAGS-}"
export CXXFLAGS="$(pkgconf --cflags libdeflate) ${CXXFLAGS-}" export CXXFLAGS="$(pkgconf --cflags libdeflate) ${CXXFLAGS-}"
export LDFLAGS="$(pkgconf --libs libdeflate) ${LDFLAGS-}" export LDFLAGS="$(pkgconf --libs libdeflate) ${LDFLAGS-}"
%endif
%if !(0%{?el9} || 0%{?el8} || 0%{?el7})
# Link against system zopfli # Link against system zopfli
export LDFLAGS="-lzopfli ${LDFLAGS-}" export LDFLAGS="-lzopfli ${LDFLAGS-}"
%endif
%configure %configure
%build
%make_build %make_build
@ -143,13 +134,20 @@ export LDFLAGS="-lzopfli ${LDFLAGS-}"
%make_install %make_install
# We dont run upstream tests (%%make_build check) because they are too
# brittle, expecting recompressed outputs to be identical. Across platforms,
# compilers, and unbundled library versions, this doesnt hold up.
%files %files
%license COPYING %license COPYING
%doc AUTHORS HISTORY README %doc AUTHORS
%doc doc/adv*.txt %doc HISTORY
%doc README
%doc doc/adv{def,mng,png,zip}.txt
%{_bindir}/* %{_bindir}/adv{def,mng,png,zip}
%{_mandir}/man1/* %{_mandir}/man1/adv{def,mng,png,zip}.1*
%changelog %changelog

View file

@ -1 +1 @@
SHA512 (advancecomp-2.3.tar.gz) = 129bb820a044b03b94d9980c7fc675ee5c273ba8ba84f1fdd341c6b2d9847c3f379cc21e64bb75c0a3c5a45a3df9e560d92143728adb4e8834ae0525ff7d5d1c SHA512 (advancecomp-2.6.tar.gz) = 63cbb0578f96fd3f55ccb49e31bfe945649d36a11558aa482332440943d6d347f161de797b8d4469562b1d551b274c22fe08818179926d56aa4746581d3926dd