## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 51; 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: woff Version: 0.20091126 Release: %autorelease Summary: Encoding and decoding for Web Open Font Format (WOFF) License: MPL-1.0 OR GPL-2.0-or-later OR LGPL-2.0-or-later # 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. %global original_url https://people-mozilla.org/~jkew/woff/ # The URL is no longer active, so we reference an archived copy: URL: https://web.archive.org/web/20170630235618/%{original_url} # There is no longer a working URL for this archive. Source0: %{original_url}/woff-code-latest.zip # Hand-written for Fedora in groff_man(7) format based on --help output Source1: sfnt2woff.1 Source2: woff2sfnt.1 # It’s possible that tableOrder could be freed twice if a failure occurs. Set # the pointer null after freeing it to prevent this. There is no current # upstream to which this could be reported; however, this was reported to the # sfnt2woff-zopfli fork: # # Fix a possible double free in woffEncode() # https://github.com/bramstein/sfnt2woff-zopfli/pull/18 Patch: possible-double-free.patch # Add full text of the three WOFF licenses: # - LICENSE-WOFF-MPL, from # https://www.mozilla.org/media/MPL/1.1/index.0c5913925d40.txt # - LICENSE-WOFF-GPL, from # https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt # - LICENSE-WOFF-LGPL, from # https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt # https://github.com/bramstein/sfnt2woff-zopfli/commit/7e08f1c944142c8e37050d9e02d91ec326d60ba5 Patch: https://github.com/bramstein/sfnt2woff-zopfli/commit/7e08f1c944142c8e37050d9e02d91ec326d60ba5.patch # Update GPL/LGPL license texts for remote-only FS # https://github.com/bramstein/sfnt2woff-zopfli/pull/21 Patch: https://github.com/bramstein/sfnt2woff-zopfli/pull/21.patch # Fix segfault due to https://bugs.debian.org/785795. # Remaining Debian patch rollup # https://github.com/bramstein/sfnt2woff-zopfli/pull/20 # Since the patches from the sfnt2woff-zopfli do not apply directly, we link # the patches Debian uses for woff (which they call woff-tools) where possible; # see https://sources.debian.org/patches/woff-tools/0:2009.10.04-2. # - Fix segfault due to https://bugs.debian.org/785795 # https://github.com/bramstein/sfnt2woff-zopfli/pull/20/commits/51d74ebc4ab782f9e272fa4f135ee2375c991a5b # Rebased from the sfnt2woff-zopfli fork onto the original woff release Patch: segfault-debian-bug-785795.patch # - Add arithmetic overflow checks in woff encoding routines Patch: https://sources.debian.org/data/main/w/woff-tools/0%3A2009.10.04-2/debian/patches/add-overflow-checks.patch # - Fix CVE-2010-1028: WOFF heap corruption due to integer overflow Patch: https://sources.debian.org/data/main/w/woff-tools/0%3A2009.10.04-2/debian/patches/CVE-2010-1028.patch # - fix some compiler and cppcheck warnings Patch: https://sources.debian.org/data/main/w/woff-tools/0%3A2009.10.04-2/debian/patches/fix-compiler-and-cppcheck-warnings.patch # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} BuildRequires: make BuildRequires: gcc BuildRequires: zlib-devel %description Provides the sfnt2woff and woff2sfnt command-line tools for encoding and decoding Web Open Font Format (WOFF) files. %prep %autosetup -c -p1 %build %make_build CFLAGS="${CFLAGS}" awk ' /BEGIN LICENSE BLOCK/ { b = 1 } b /END LICENSE BLOCK/ { b = 0 }' woff.c | tee LICENSE-WOFF %install # The Makefile has no install target. install -D --preserve-timestamps \ --target='%{buildroot}%{_bindir}' sfnt2woff woff2sfnt install -D --preserve-timestamps --mode=0644 \ --target='%{buildroot}%{_mandir}/man1' '%{SOURCE1}' '%{SOURCE2}' # Upstream provides no tests %files %license LICENSE-WOFF %license LICENSE-WOFF-MPL %license LICENSE-WOFF-GPL %license LICENSE-WOFF-LGPL %doc woff-2009-10-03.html %{_bindir}/sfnt2woff %{_bindir}/woff2sfnt %{_mandir}/man1/sfnt2woff.1* %{_mandir}/man1/woff2sfnt.1* %changelog ## START: Generated by rpmautospec * Fri Jul 17 2026 Fedora Release Engineering - 0.20091126-51 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild * Mon May 25 2026 Benjamin A. Beasley - 0.20091126-50 - Use various long options * Sat Jan 17 2026 Fedora Release Engineering - 0.20091126-49 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Fri Jul 25 2025 Fedora Release Engineering - 0.20091126-48 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Sun May 11 2025 Benjamin A. Beasley - 0.20091126-47 - Security fix for CVE-2010-1028 - Various other fixes collected by Debian and contributed back upstream to the sfnt2woff-zopfli fork: https://github.com/bramstein/sfnt2woff- zopfli/pull/20 * Sun May 11 2025 Benjamin A. Beasley - 0.20091126-46 - Extract the license notice and install it in its own file * Sun May 11 2025 Benjamin A. Beasley - 0.20091126-45 - Add missing license texts * Sun May 11 2025 Benjamin A. Beasley - 0.20091126-44 - Update .rpmlintrc file for current rpmlint * Sun May 11 2025 Benjamin A. Beasley - 0.20091126-43 - Link sfnt2woff-zopfli PR for double-free patch * Sun Jan 19 2025 Fedora Release Engineering - 0.20091126-42 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Sat Jul 20 2024 Fedora Release Engineering - 0.20091126-41 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jan 27 2024 Fedora Release Engineering - 0.20091126-40 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jul 22 2023 Fedora Release Engineering - 0.20091126-39 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sat Jun 03 2023 Benjamin A. Beasley - 0.20091126-38 - Remove explicit %%set_build_flags, not needed since F36 * Sat Jan 21 2023 Fedora Release Engineering - 0.20091126-37 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Dec 22 2022 Benjamin A. Beasley - 0.20091126-36 - Leaf package: remove i686 support * Tue Nov 29 2022 Benjamin A. Beasley - 0.20091126-35 - Improved summary and description * Tue Nov 29 2022 Benjamin A. Beasley - 0.20091126-34 - Update License to SPDX * Tue Nov 29 2022 Benjamin A. Beasley - 0.20091126-27 - Clarify URL/Source situation, and do not claim to have a working source archive URL - General tidying of spec file; use modern macros and install HTML format description as documentation - Add hand-written man pages * Sat Jul 23 2022 Fedora Release Engineering - 0.20091126-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sun Jun 05 2022 Benson Muite - 0.20091126-26 - Source URL update * Sat Jan 22 2022 Fedora Release Engineering - 0.20091126-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.20091126-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 0.20091126-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.20091126-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jan 31 2020 Fedora Release Engineering - 0.20091126-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sat Jul 27 2019 Fedora Release Engineering - 0.20091126-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun Feb 03 2019 Fedora Release Engineering - 0.20091126-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 0.20091126-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Mon Feb 19 2018 Parag Nemade - 0.20091126-17 - Add BuildRequires: gcc as per packaging guidelines * Fri Feb 09 2018 Fedora Release Engineering - 0.20091126-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 0.20091126-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.20091126-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.20091126-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 11 2016 Parag Nemade - 0.20091126-12 - Clean the spec file * Fri Feb 05 2016 Fedora Release Engineering - 0.20091126-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Jun 19 2015 Fedora Release Engineering - 0.20091126-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Aug 18 2014 Fedora Release Engineering - 0.20091126-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sun Jun 08 2014 Fedora Release Engineering - 0.20091126-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 0.20091126-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Fri Feb 15 2013 Fedora Release Engineering - 0.20091126-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sun Jul 22 2012 Fedora Release Engineering - 0.20091126-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jan 14 2012 Fedora Release Engineering - 0.20091126-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Mon Feb 07 2011 Fedora Release Engineering - 0.20091126-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sun Nov 29 2009 Parag Nemade - 0.20091126-2.fc12 - Added BR:zlib-devel * Fri Nov 27 2009 Parag Nemade - 0.20091126-1.fc12 - Initial specfile for Fedora ## END: Generated by rpmautospec