diff --git a/woff2.spec b/woff2.spec index f6aef0b..03570c0 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