2018-05-04 12:36:15 +02:00
|
|
|
#
|
|
|
|
# spec file for package woff2
|
|
|
|
#
|
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2018-05-08 11:22:51 +02:00
|
|
|
%define soname 1_0_2
|
|
|
|
|
2018-05-04 12:36:15 +02:00
|
|
|
Name: woff2
|
|
|
|
Version: 1.0.2
|
|
|
|
Release: 0
|
|
|
|
Summary: Web Open Font Format 2.0 library
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
URL: https://github.com/google/woff2
|
|
|
|
Source0: https://github.com/google/woff2/archive/v%{version}/%{name}-%{version}.tar.gz
|
2018-07-11 20:39:14 +02:00
|
|
|
Source99: baselibs.conf
|
2018-05-04 12:36:15 +02:00
|
|
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig(libbrotlidec) >= 1.0
|
|
|
|
BuildRequires: pkgconfig(libbrotlienc) >= 1.0
|
|
|
|
|
|
|
|
%description
|
|
|
|
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.
|
|
|
|
|
2018-05-08 11:22:51 +02:00
|
|
|
%package -n libwoff2common%{soname}
|
|
|
|
Summary: Shared library for %{name}
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%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}
|
2018-05-04 12:36:15 +02:00
|
|
|
Summary: Shared library for %{name}
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2018-05-08 11:22:51 +02:00
|
|
|
%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}
|
2018-05-04 12:36:15 +02:00
|
|
|
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 devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries/C and C++
|
2018-05-08 11:22:51 +02:00
|
|
|
Requires: libwoff2common%{soname} = %{version}
|
|
|
|
Requires: libwoff2dec%{soname} = %{version}
|
|
|
|
Requires: libwoff2enc%{soname} = %{version}
|
2018-05-04 12:36:15 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
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 development files for %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup
|
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake \
|
|
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
|
|
-DBUILD_STATIC_LIBS=OFF \
|
|
|
|
-DCMAKE_INSTALL_PREFIX="%{_prefix}" \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR="%{_libdir}" \
|
|
|
|
%{nil}
|
2018-05-08 11:37:40 +02:00
|
|
|
%make_build
|
2018-05-04 12:36:15 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
|
|
|
|
2018-05-08 11:22:51 +02:00
|
|
|
%post -n libwoff2common%{soname} -p /sbin/ldconfig
|
|
|
|
%postun -n libwoff2common%{soname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post -n libwoff2dec%{soname} -p /sbin/ldconfig
|
|
|
|
%postun -n libwoff2dec%{soname} -p /sbin/ldconfig
|
2018-05-04 12:36:15 +02:00
|
|
|
|
2018-05-08 11:22:51 +02:00
|
|
|
%post -n libwoff2enc%{soname} -p /sbin/ldconfig
|
|
|
|
%postun -n libwoff2enc%{soname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n libwoff2common%{soname}
|
2018-05-04 12:36:15 +02:00
|
|
|
%license LICENSE
|
|
|
|
%{_libdir}/libwoff2common.so.*
|
2018-05-08 11:22:51 +02:00
|
|
|
|
|
|
|
%files -n libwoff2dec%{soname}
|
2018-05-04 12:36:15 +02:00
|
|
|
%{_libdir}/libwoff2dec.so.*
|
2018-05-08 11:22:51 +02:00
|
|
|
|
|
|
|
%files -n libwoff2enc%{soname}
|
2018-05-04 12:36:15 +02:00
|
|
|
%{_libdir}/libwoff2enc.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/woff2
|
|
|
|
%{_libdir}/libwoff2common.so
|
|
|
|
%{_libdir}/libwoff2dec.so
|
|
|
|
%{_libdir}/libwoff2enc.so
|
|
|
|
%{_libdir}/pkgconfig/libwoff2common.pc
|
|
|
|
%{_libdir}/pkgconfig/libwoff2dec.pc
|
|
|
|
%{_libdir}/pkgconfig/libwoff2enc.pc
|
|
|
|
|
|
|
|
%changelog
|