From c44ec2e099227eea312f3ed06a97a1f7ffb0a9c8a1e47b5a2425e85ac34611f4 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Fri, 4 May 2018 10:36:15 +0000 Subject: [PATCH] Accepting request 603965 from home:iznogood New package - wanted as a build dep for webkitgtk once in Factory OBS-URL: https://build.opensuse.org/request/show/603965 OBS-URL: https://build.opensuse.org/package/show/M17N/woff2?expand=0&rev=1 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + woff2-1.0.2.tar.gz | 3 ++ woff2.changes | 5 +++ woff2.spec | 101 +++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 133 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 woff2-1.0.2.tar.gz create mode 100644 woff2.changes create mode 100644 woff2.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/woff2-1.0.2.tar.gz b/woff2-1.0.2.tar.gz new file mode 100644 index 0000000..7302bcd --- /dev/null +++ b/woff2-1.0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:add272bb09e6384a4833ffca4896350fdb16e0ca22df68c0384773c67a175594 +size 38934 diff --git a/woff2.changes b/woff2.changes new file mode 100644 index 0000000..0e7fcdf --- /dev/null +++ b/woff2.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue May 1 17:45:14 UTC 2018 - bjorn.lie@gmail.com + +- Initial packaging. + diff --git a/woff2.spec b/woff2.spec new file mode 100644 index 0000000..21018fd --- /dev/null +++ b/woff2.spec @@ -0,0 +1,101 @@ +# +# 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/ +# + + +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 + +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. + +%package -n lib%{name} +Summary: Shared library for %{name} +Group: System/Libraries + +%description -n lib%{name} +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++ +Requires: lib%{name} = %{version} + +%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} +make %{?_smp_mflags} + +%install +%cmake_install + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files -n lib%{name} +%license LICENSE +%{_libdir}/libwoff2common.so.* +%{_libdir}/libwoff2dec.so.* +%{_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