From ff44081fbc078bf91bfa05fc96e75a5a6d45fc243497dd0cf7f5d163ad65032e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Lie?= Date: Tue, 8 May 2018 09:22:51 +0000 Subject: [PATCH] Split out into sep libs.. OBS-URL: https://build.opensuse.org/package/show/M17N/woff2?expand=0&rev=2 --- woff2.spec | 52 ++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 46 insertions(+), 6 deletions(-) diff --git a/woff2.spec b/woff2.spec index 21018fd..f89c364 100644 --- a/woff2.spec +++ b/woff2.spec @@ -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