## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 19; 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: sfnt2woff-zopfli Version: 1.3.1 Release: %autorelease Summary: Create WOFF files with Zopfli compression # From COPYING: # # Sources in the top-level directory belong to, or are based on, the WOFF # reference implementation originally published at # http://people.mozilla.org/~jkew/woff/, and are distributed under the terms # specified in the file LICENSE-WOFF (MPL 1.1/GPL 2.0/LGPL 2.1). # # Additionally, the zopfli/ directory contains a bundled copy of Zopfli # (https://github.com/google/zopfli), distributed under the terms in the file # LICENSE-ZOPFLI (Apache License 2.0). When this bundled library is used, # these terms also apply to the compiled software. # # Note that all bundled Zopfli code is removed in %%prep, so only the # MPL/GPL/LGPL portions remain. License: MPL-1.0 OR GPL-2.0-or-later OR LGPL-2.0-or-later SourceLicense: (%{license}) AND Apache-2.0 URL: https://github.com/bramstein/sfnt2woff-zopfli Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz # Fix a possible double free in woffEncode() # https://github.com/bramstein/sfnt2woff-zopfli/pull/18 Patch: %{url}/pull/18.patch # Fix segfault due to https://bugs.debian.org/785795. # Remaining Debian patch rollup # https://github.com/bramstein/sfnt2woff-zopfli/pull/20 # - Fix segfault due to https://bugs.debian.org/785795 # - Add arithmetic overflow checks in woff encoding routines # - Fix CVE-2010-1028: WOFF heap corruption due to integer overflow # - fix some compiler and cppcheck warnings Patch: %{url}/pull/20.patch # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} # Note that the URL http://people.mozilla.org/~jkew/woff/, where the original # WOFF reference implementation sources were published, is no longer available. # A copy of that page can be found at # https://web.archive.org/web/20170630235618/https://people-mozilla.org/~jkew/woff/, # and the sources are mirrored at https://github.com/TheJessieKirk/sfnt2woff. # See also https://src.fedoraproject.org/rpms/woff. BuildRequires: gcc BuildRequires: pkgconfig(zlib) BuildRequires: zopfli-devel %description This is a modified version of the sfnt2woff utility that uses Zopfli as a compression algorithm instead of zlib. This results in compression gains of — on average — 5-8% compared to regular WOFF files. Zopfli generates compressed output that is compatible with regular zlib compression so the resulting WOFF files can be used everywhere. A corresponding version of the woff2sfnt utility is also provided. %prep %autosetup -p1 # Strip out bundled Zopfli sources rm --recursive --verbose zopfli %build %make_build \ ZLIB_CFLAGS="$(pkg-config --cflags zlib)" \ ZLIB_LIBS="$(pkg-config --libs zlib)" \ ZOPFLI_CFLAGS='' \ ZOPFLI_LIBS='-lzopfli' %install install --directory '%{buildroot}%{_bindir}' install --preserve-timestamps --target='%{buildroot}%{_bindir}' \ sfnt2woff-zopfli woff2sfnt-zopfli install --directory '%{buildroot}%{_mandir}/man1' install --preserve-timestamps --mode=0644 \ --target='%{buildroot}%{_mandir}/man1' \ sfnt2woff-zopfli.1 woff2sfnt-zopfli.1 # Upstream provides no tests %files %doc README.md %license COPYING %license LICENSE-WOFF %license LICENSE-WOFF-MPL %license LICENSE-WOFF-GPL %license LICENSE-WOFF-LGPL %{_bindir}/sfnt2woff-zopfli %{_bindir}/woff2sfnt-zopfli %{_mandir}/man1/sfnt2woff-zopfli.1* %{_mandir}/man1/woff2sfnt-zopfli.1* %changelog ## START: Generated by rpmautospec * Fri Jul 17 2026 Fedora Release Engineering - 1.3.1-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild * Sat May 23 2026 Benjamin A. Beasley - 1.3.1-18 - Use various long options * Sat Jan 17 2026 Fedora Release Engineering - 1.3.1-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Fri Jul 25 2025 Fedora Release Engineering - 1.3.1-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Sun May 11 2025 Benjamin A. Beasley - 1.3.1-15 - Security fix for CVE-2010-1028 - Various other fixes collected by Debian and contributed back upstream: https://github.com/bramstein/sfnt2woff-zopfli/pull/20 * Sun May 11 2025 Benjamin A. Beasley - 1.3.1-14 - Update .rpmlintrc file for current rpmlint * Sun Jan 19 2025 Fedora Release Engineering - 1.3.1-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Sun Dec 15 2024 Benjamin A. Beasley - 1.3.1-12 - Add a SourceLicense field * Sat Jul 20 2024 Fedora Release Engineering - 1.3.1-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jan 27 2024 Fedora Release Engineering - 1.3.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jul 22 2023 Fedora Release Engineering - 1.3.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sat Jun 03 2023 Benjamin A. Beasley - 1.3.1-7 - Remove explicit %%set_build_flags, not needed since F36 * Sat Jan 21 2023 Fedora Release Engineering - 1.3.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Dec 22 2022 Benjamin A. Beasley - 1.3.1-4 - Leaf package: remove i686 support * Tue Nov 29 2022 Benjamin A. Beasley - 1.3.1-3 - Fix a possible double free in woffEncode() * Sat Sep 24 2022 Benjamin A. Beasley - 1.3.1-2 - Update License to SPDX * Sat Sep 24 2022 Benjamin A. Beasley - 1.3.1-1 - Initial package ## END: Generated by rpmautospec