From afbed0d1dcd10d460f7c01e769e33698a8e73a36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20G=C4=85sior?= Date: Sat, 8 Feb 2020 22:18:32 +0100 Subject: [PATCH 1/3] Add woff2-tools package --- woff2.spec | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/woff2.spec b/woff2.spec index 9670610..427027d 100644 --- a/woff2.spec +++ b/woff2.spec @@ -17,6 +17,14 @@ 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. +%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. + %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} @@ -39,6 +47,12 @@ make %{?_smp_mflags} -C %{_target_platform} %install %make_install -C %{_target_platform} +pushd %{_target_platform} +mkdir -p %{buildroot}%{_bindir}/ +install -m 755 woff2_decompress %{buildroot}%{_bindir}/ +install -m 755 woff2_compress %{buildroot}%{_bindir}/ +install -m 755 woff2_info %{buildroot}%{_bindir}/ +popd %files %license LICENSE @@ -46,6 +60,11 @@ make %{?_smp_mflags} -C %{_target_platform} %{_libdir}/libwoff2dec.so.* %{_libdir}/libwoff2enc.so.* +%files tools +%attr(755, root, root) %{_bindir}/woff2_compress +%attr(755, root, root) %{_bindir}/woff2_decompress +%attr(755, root, root) %{_bindir}/woff2_info + %files devel %{_includedir}/woff2 %{_libdir}/libwoff2common.so From cf27a2313ae5a6c5cf36d456407c544645e9a25d Mon Sep 17 00:00:00 2001 From: Tomas Popela Date: Mon, 6 Apr 2020 12:40:22 +0200 Subject: [PATCH 2/3] Package woff2_decompress, woff2_compress and woff2_info in a tools subpackage. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks to Tomasz Gąsior --- woff2.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/woff2.spec b/woff2.spec index 427027d..461e663 100644 --- a/woff2.spec +++ b/woff2.spec @@ -1,6 +1,6 @@ Name: woff2 Version: 1.0.2 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Web Open Font Format 2.0 library License: MIT @@ -75,6 +75,10 @@ popd %{_libdir}/pkgconfig/libwoff2enc.pc %changelog +* Mon April 06 2020 Tomas Popela - 1.0.2-7 +- Package woff2_decompress, woff2_compress and woff2_info in a tools subpackage. + Thanks to Tomasz Gąsior + * Sat Jul 27 2019 Fedora Release Engineering - 1.0.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild From 4bd63a2f515e1e166241147e8fdcf2bbf3bfdd4b Mon Sep 17 00:00:00 2001 From: Tomas Popela Date: Mon, 6 Apr 2020 12:44:11 +0200 Subject: [PATCH 3/3] Fix the month in changelog --- woff2.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/woff2.spec b/woff2.spec index 461e663..6b14b66 100644 --- a/woff2.spec +++ b/woff2.spec @@ -75,7 +75,7 @@ popd %{_libdir}/pkgconfig/libwoff2enc.pc %changelog -* Mon April 06 2020 Tomas Popela - 1.0.2-7 +* Mon Apr 06 2020 Tomas Popela - 1.0.2-7 - Package woff2_decompress, woff2_compress and woff2_info in a tools subpackage. Thanks to Tomasz Gąsior