SHA256
1
0
forked from pool/woff2

Split out into sep libs..

OBS-URL: https://build.opensuse.org/package/show/M17N/woff2?expand=0&rev=2
This commit is contained in:
Bjørn Lie 2018-05-08 09:22:51 +00:00 committed by Git OBS Bridge
parent c44ec2e099
commit ff44081fbc

View File

@ -16,6 +16,8 @@
#
%define soname 1_0_2
Name: woff2
Version: 1.0.2
Release: 0
@ -38,11 +40,37 @@ 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 -n lib%{name}
%package -n libwoff2common%{soname}
Summary: Shared library for %{name}
Group: System/Libraries
%description -n lib%{name}
%description -n libwoff2common%{soname}
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.
This package contains the shared library for %{name}.
%package -n libwoff2dec%{soname}
Summary: Shared library for %{name}
Group: System/Libraries
%description -n libwoff2dec%{soname}
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.
This package contains the shared library for %{name}.
%package -n libwoff2enc%{soname}
Summary: Shared library for %{name}
Group: System/Libraries
%description -n libwoff2enc%{soname}
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
@ -54,7 +82,9 @@ This package contains the shared library for %{name}.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries/C and C++
Requires: lib%{name} = %{version}
Requires: libwoff2common%{soname} = %{version}
Requires: libwoff2dec%{soname} = %{version}
Requires: libwoff2enc%{soname} = %{version}
%description devel
Web Open Font Format (WOFF) 2.0 is an update to the existing WOFF
@ -80,13 +110,23 @@ make %{?_smp_mflags}
%install
%cmake_install
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%post -n libwoff2common%{soname} -p /sbin/ldconfig
%postun -n libwoff2common%{soname} -p /sbin/ldconfig
%files -n lib%{name}
%post -n libwoff2dec%{soname} -p /sbin/ldconfig
%postun -n libwoff2dec%{soname} -p /sbin/ldconfig
%post -n libwoff2enc%{soname} -p /sbin/ldconfig
%postun -n libwoff2enc%{soname} -p /sbin/ldconfig
%files -n libwoff2common%{soname}
%license LICENSE
%{_libdir}/libwoff2common.so.*
%files -n libwoff2dec%{soname}
%{_libdir}/libwoff2dec.so.*
%files -n libwoff2enc%{soname}
%{_libdir}/libwoff2enc.so.*
%files devel