2020-07-05 18:59:05 +00:00
|
|
|
%undefine __cmake_in_source_build
|
|
|
|
|
2017-10-10 13:29:50 +00:00
|
|
|
Name: woff2
|
2017-11-14 06:10:44 +00:00
|
|
|
Version: 1.0.2
|
2023-01-20 17:24:04 +00:00
|
|
|
Release: 16%{?dist}
|
2017-10-10 13:29:50 +00:00
|
|
|
Summary: Web Open Font Format 2.0 library
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/google/woff2
|
|
|
|
Source0: https://github.com/google/woff2/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
2021-06-10 20:01:19 +00:00
|
|
|
# https://github.com/google/woff2/pull/121
|
|
|
|
Patch0: covscan.patch
|
|
|
|
|
2017-10-10 13:29:50 +00:00
|
|
|
BuildRequires: cmake
|
2018-03-06 09:14:33 +00:00
|
|
|
BuildRequires: gcc-c++
|
2017-10-10 13:29:50 +00:00
|
|
|
BuildRequires: brotli-devel >= 1.0
|
|
|
|
|
|
|
|
%description
|
|
|
|
Web Open Font Format (WOFF) 2.0 is an update to the existing WOFF 1.0 with
|
|
|
|
improved compression that is achieved by using the Brotli algorithm. The primary
|
|
|
|
purpose of the WOFF2 format is to efficiently package fonts linked to Web
|
|
|
|
documents by means of CSS @font-face rules.
|
|
|
|
|
2020-02-08 21:18:32 +00:00
|
|
|
%package tools
|
|
|
|
Summary: Web Open Font Format 2.0 tools
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
Tools for compressing TTF files to WOFF2 format, decompressing WOFF2
|
|
|
|
files back to TTF files and dumping WOFF2 file information.
|
|
|
|
|
2017-10-10 13:29:50 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development files and utils for %{name}
|
|
|
|
|
|
|
|
%prep
|
2021-06-10 20:01:19 +00:00
|
|
|
%autosetup -p1 -n %{name}-%{version}
|
2017-10-10 13:29:50 +00:00
|
|
|
|
|
|
|
%build
|
2020-07-05 18:59:05 +00:00
|
|
|
%cmake \
|
2017-10-10 13:29:50 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX="%{_prefix}" \
|
2021-04-19 17:06:24 +00:00
|
|
|
-DCMAKE_INSTALL_LIBDIR="%{_libdir}" \
|
|
|
|
-DCMAKE_SKIP_RPATH=TRUE
|
2020-07-05 18:59:05 +00:00
|
|
|
%cmake_build
|
2017-10-10 13:29:50 +00:00
|
|
|
|
|
|
|
%install
|
2020-07-05 18:59:05 +00:00
|
|
|
%cmake_install
|
|
|
|
mkdir -p %{buildroot}%{_bindir}/
|
|
|
|
|
2021-07-30 12:54:07 +00:00
|
|
|
cd %{_vpath_builddir}
|
2020-02-08 21:18:32 +00:00
|
|
|
install -m 755 woff2_decompress %{buildroot}%{_bindir}/
|
|
|
|
install -m 755 woff2_compress %{buildroot}%{_bindir}/
|
|
|
|
install -m 755 woff2_info %{buildroot}%{_bindir}/
|
2020-07-05 18:59:05 +00:00
|
|
|
cd -
|
2017-10-10 13:29:50 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE
|
|
|
|
%{_libdir}/libwoff2common.so.*
|
|
|
|
%{_libdir}/libwoff2dec.so.*
|
|
|
|
%{_libdir}/libwoff2enc.so.*
|
|
|
|
|
2020-02-08 21:18:32 +00:00
|
|
|
%files tools
|
|
|
|
%attr(755, root, root) %{_bindir}/woff2_compress
|
|
|
|
%attr(755, root, root) %{_bindir}/woff2_decompress
|
|
|
|
%attr(755, root, root) %{_bindir}/woff2_info
|
|
|
|
|
2017-10-10 13:29:50 +00:00
|
|
|
%files devel
|
|
|
|
%{_includedir}/woff2
|
|
|
|
%{_libdir}/libwoff2common.so
|
|
|
|
%{_libdir}/libwoff2dec.so
|
|
|
|
%{_libdir}/libwoff2enc.so
|
|
|
|
%{_libdir}/pkgconfig/libwoff2common.pc
|
|
|
|
%{_libdir}/pkgconfig/libwoff2dec.pc
|
|
|
|
%{_libdir}/pkgconfig/libwoff2enc.pc
|
|
|
|
|
|
|
|
%changelog
|
2023-01-20 17:24:04 +00:00
|
|
|
* Fri Jan 20 2023 Eike Rathke <erack@redhat.com> - 1.0.2-16
|
|
|
|
- Migrated to SPDX license IDs
|
|
|
|
|
2022-07-23 12:34:53 +00:00
|
|
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-15
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-01-22 04:37:31 +00:00
|
|
|
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-14
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-07-23 21:05:36 +00:00
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-13
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-06-10 20:01:19 +00:00
|
|
|
* Thu Jun 10 2021 Eike Rathke <erack@redhat.com> - 1.0.2-12
|
|
|
|
- Add Coverity Scan fixes patch
|
|
|
|
|
2021-04-19 17:06:24 +00:00
|
|
|
* Mon Apr 19 2021 Eike Rathke <erack@redhat.com> - 1.0.2-11
|
|
|
|
- Get rid of all things RPATH
|
|
|
|
|
2021-01-27 23:37:40 +00:00
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-07-29 14:16:48 +00:00
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-04-06 10:44:11 +00:00
|
|
|
* Mon Apr 06 2020 Tomas Popela <tpopela@redhat.com> - 1.0.2-8
|
2020-04-06 10:40:22 +00:00
|
|
|
- Package woff2_decompress, woff2_compress and woff2_info in a tools subpackage.
|
|
|
|
Thanks to Tomasz Gąsior <kontakt@tomaszgasior.pl>
|
|
|
|
|
2020-01-31 03:52:44 +00:00
|
|
|
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-07-27 03:39:08 +00:00
|
|
|
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-02-03 11:52:39 +00:00
|
|
|
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-07-14 08:57:23 +00:00
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-03-05 11:49:46 +00:00
|
|
|
* Mon Mar 05 2018 Tomas Popela <tpopela@redhat.com> - 1.0.2-3
|
|
|
|
- Rebuild for brotli update
|
|
|
|
|
2018-02-09 21:05:54 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-11-14 06:10:44 +00:00
|
|
|
* Tue Nov 14 2017 Tomas Popela <tpopela@redhat.com> 1.0.2-1
|
|
|
|
- Update to 1.0.2
|
|
|
|
|
2017-10-10 13:29:50 +00:00
|
|
|
* Mon Oct 09 2017 Tomas Popela <tpopela@redhat.com> 1.0.1-1
|
|
|
|
- Initial import (rhbz#1499676)
|