From d355538a7b4a90e20eabde84bb1427f1dd1a1992 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Mon, 12 Mar 2018 19:41:41 +0100 Subject: [PATCH 1/1] - new --- woff2.spec | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 woff2.spec diff --git a/woff2.spec b/woff2.spec new file mode 100644 index 0000000..29b6523 --- /dev/null +++ b/woff2.spec @@ -0,0 +1,75 @@ +Summary: Reference font compression library +Summary(pl.UTF-8): Referencyjna biblioteka kompresji fontów +Name: woff2 +Version: 1.0.2 +Release: 1 +License: MIT +Group: Libraries +#Source0Download: https://github.com/google/woff2/releases +Source0: https://github.com/google/woff2/archive/v%{version}/%{name}-%{version}.tar.gz +# Source0-md5: 793c8844845351cb80730a74937e411b +URL: https://github.com/google/woff2 +BuildRequires: cmake >= 2.8.6 +BuildRequires: libbrotli-devel >= 1.0.0 +BuildRequires: libstdc++-devel >= 6:4.7 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Reference font compression library using brotli algorithm. + +%description -l pl.UTF-8 +Referencyjna biblioteka kompresji fontów, korzystająca z algorytmu +brotli. + +%package devel +Summary: Header files for woff2 libraries +Summary(pl.UTF-8): Pliki nagłówkowe bibliotek woff2 +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: libbrotli-devel >= 1.0.0 +Requires: libstdc++-devel >= 6:4.7 + +%description devel +Header files for woff2 libraries. + +%description devel -l pl.UTF-8 +Pliki nagłówkowe bibliotek woff2. + +%prep +%setup -q + +%build +install -d build +cd build +%cmake .. + +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} -C build install \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(644,root,root,755) +%doc LICENSE README.md +%attr(755,root,root) %{_libdir}/libwoff2common.so.*.*.* +%attr(755,root,root) %{_libdir}/libwoff2dec.so.*.*.* +%attr(755,root,root) %{_libdir}/libwoff2enc.so.*.*.* + +%files devel +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libwoff2common.so +%attr(755,root,root) %{_libdir}/libwoff2dec.so +%attr(755,root,root) %{_libdir}/libwoff2enc.so +%{_includedir}/woff2 +%{_pkgconfigdir}/libwoff2common.pc +%{_pkgconfigdir}/libwoff2dec.pc +%{_pkgconfigdir}/libwoff2enc.pc -- 2.44.0