Add woff2-tools package

This commit is contained in:
Tomasz Gąsior 2020-02-08 22:18:32 +01:00
parent 0ca643db2b
commit 57c40ea5c4

View File

@ -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