Compare commits

..

16 commits

Author SHA1 Message Date
Benjamin A. Beasley
b1b1f0e736 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 23:04:49 -05:00
Benjamin A. Beasley
48593e23a3 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-11-23 23:04:47 -05:00
Benjamin A. Beasley
53babc97e4 Add a comment about upstream tests 2022-11-23 23:04:46 -05:00
Benjamin A. Beasley
bdca6add1e Stricter file globs 2022-11-23 23:04:44 -05:00
Benjamin A. Beasley
5abc624c04 Drop EPEL conditionals from Fedora branches 2022-09-28 12:45:40 -04:00
Benjamin A. Beasley
2fea16d9a1 Update to 2.3 (close RHBZ#2075857) 2022-09-28 12:45:40 -04:00
Benjamin A. Beasley
92098410a3 Update License to SPDX 2022-09-28 12:45:40 -04:00
Benjamin A. Beasley
c0dfe92e91 Drop {authors,history,readme}.txt
These duplicate AUTHORS, HISTORY, and README, respectively.
2022-09-28 12:45:40 -04:00
Benjamin A. Beasley
0cfbc32b9d Convert to rpmautospec 2022-09-28 12:45:39 -04:00
Benjamin A. Beasley
50e8090271 Properly document bundled 7z code 2022-09-28 12:45:12 -04:00
Benjamin A. Beasley
1e0c4f8aa8 Remove unnecessary BR on tofrodos
Makefile.am uses “todos”, but only when a tool called “advd2” is
installed.
2022-09-28 12:45:12 -04:00
Benjamin A. Beasley
76de68a740 Unbundle zopfli where it is available as a system library (i.e., Fedora) 2022-09-28 12:45:12 -04:00
Benjamin A. Beasley
a79455074f Unbundle libdeflate 2022-09-28 12:45:12 -04:00
Benjamin A. Beasley
fd354dd06a Use modern spec file macros (make_build/make_install/etc.) 2022-09-28 12:45:12 -04:00
Benjamin A. Beasley
7cf9d232ca Convert URLs from HTTP to HTTPS 2022-09-28 12:45:12 -04:00
Benjamin A. Beasley
e93c8b54f3 Spec file formatting tweaks 2022-09-28 12:45:11 -04:00
5 changed files with 13 additions and 39 deletions

2
.gitignore vendored
View file

@ -8,5 +8,3 @@ advancecomp-1.15.tar.gz
/advancecomp-2.1.tar.gz
/advancecomp-2.3.tar.gz
/advancecomp-2.4.tar.gz
/advancecomp-2.5.tar.gz
/advancecomp-2.6.tar.gz

View file

@ -1,6 +0,0 @@
# 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
Version: 2.6
Version: 2.4
Release: %autorelease
Summary: Recompression utilities for .png, .mng, .zip and .gz files
@ -14,21 +14,15 @@ Summary: Recompression utilities for .png, .mng, .zip and .gz files
# 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.
#
# 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
# changelog message (in HISTORY and elsewhere) of “Changes to GPL3.” We
# 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
# 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/
%global forgeurl https://github.com/amadvance/advancecomp
Source: %{forgeurl}/archive/v%{version}/advancecomp-%{version}.tar.gz
Source0: https://github.com/amadvance/advancecomp/archive/v%{version}/advancecomp-%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: automake
@ -43,12 +37,9 @@ BuildRequires: dos2unix
BuildRequires: zlib-devel
# Unbundled downstream
BuildRequires: pkgconfig(libdeflate) >= 1.19
BuildRequires: zopfli-devel
BuildRequires: pkgconfig(libdeflate)
# The point of the 2.6 release was to upgrade the bundled libdeflate; enforce
# this on the unbundled libdeflate.
Requires: libdeflate >= 1.19
BuildRequires: zopfli-devel
# From 7z/README:
#
@ -84,12 +75,11 @@ This package contains:
%prep
%autosetup
%autosetup -p1
dos2unix -k doc/*.txt
# Patch out bundled libdeflate
rm -rv libdeflate
rm -rvf libdeflate
sed -r -i '/libdeflate[\/_]/d' Makefile.am
# Fix up #include paths. The find-then-modify pattern keeps us from discarding
# mtimes on any sources that do not need modification.
@ -99,7 +89,7 @@ find . -type f -exec gawk \
xargs -r -t sed -r -i 's@^([[:blank:]]*#include.*)libdeflate/@\1@'
# Patch out bundled zopfli
rm -rv zopfli
rm -rvf zopfli
sed -r -i \
-e '/zopfli[\/_]/d' \
-e 's/((\(7z_SOURCES\)|WindowOut\.h).*)[[:blank:]]*\\/\1/' \
@ -112,7 +102,8 @@ find . -type f -exec gawk \
xargs -r -t sed -r -i -e 's@^([[:blank:]]*#include.*)zopfli/@\1@'
%conf
%build
%set_build_flags
autoreconf --force --install --verbose
# Link against system libdeflate
@ -124,9 +115,6 @@ export LDFLAGS="$(pkgconf --libs libdeflate) ${LDFLAGS-}"
export LDFLAGS="-lzopfli ${LDFLAGS-}"
%configure
%build
%make_build

View file

@ -7,12 +7,6 @@
- Remove unnecessary BR on tofrodos
- Properly document bundled 7z code
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

View file

@ -1 +1 @@
SHA512 (advancecomp-2.6.tar.gz) = 63cbb0578f96fd3f55ccb49e31bfe945649d36a11558aa482332440943d6d347f161de797b8d4469562b1d551b274c22fe08818179926d56aa4746581d3926dd
SHA512 (advancecomp-2.4.tar.gz) = 648e89b684725743df4338a0958cdb9c37a7676f4b1a7209d016be0348d089eae9a0d20b3531838fc42887990f4c57749926c27e619887d8106a197961696a06