]> git.pld-linux.org Git - packages/woff2.git/blob - woff2.spec
- new
[packages/woff2.git] / woff2.spec
1 Summary:        Reference font compression library
2 Summary(pl.UTF-8):      Referencyjna biblioteka kompresji fontów
3 Name:           woff2
4 Version:        1.0.2
5 Release:        1
6 License:        MIT
7 Group:          Libraries
8 #Source0Download: https://github.com/google/woff2/releases
9 Source0:        https://github.com/google/woff2/archive/v%{version}/%{name}-%{version}.tar.gz
10 # Source0-md5:  793c8844845351cb80730a74937e411b
11 URL:            https://github.com/google/woff2
12 BuildRequires:  cmake >= 2.8.6
13 BuildRequires:  libbrotli-devel >= 1.0.0
14 BuildRequires:  libstdc++-devel >= 6:4.7
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 Reference font compression library using brotli algorithm.
19
20 %description -l pl.UTF-8
21 Referencyjna biblioteka kompresji fontów, korzystająca z algorytmu
22 brotli.
23
24 %package devel
25 Summary:        Header files for woff2 libraries
26 Summary(pl.UTF-8):      Pliki nagłówkowe bibliotek woff2
27 Group:          Development/Libraries
28 Requires:       %{name} = %{version}-%{release}
29 Requires:       libbrotli-devel >= 1.0.0
30 Requires:       libstdc++-devel >= 6:4.7
31
32 %description devel
33 Header files for woff2 libraries.
34
35 %description devel -l pl.UTF-8
36 Pliki nagłówkowe bibliotek woff2.
37
38 %prep
39 %setup -q
40
41 %build
42 install -d build
43 cd build
44 %cmake ..
45
46 %{__make}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 %{__make} -C build install \
52         DESTDIR=$RPM_BUILD_ROOT
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %post   -p /sbin/ldconfig
58 %postun -p /sbin/ldconfig
59
60 %files
61 %defattr(644,root,root,755)
62 %doc LICENSE README.md
63 %attr(755,root,root) %{_libdir}/libwoff2common.so.*.*.*
64 %attr(755,root,root) %{_libdir}/libwoff2dec.so.*.*.*
65 %attr(755,root,root) %{_libdir}/libwoff2enc.so.*.*.*
66
67 %files devel
68 %defattr(644,root,root,755)
69 %attr(755,root,root) %{_libdir}/libwoff2common.so
70 %attr(755,root,root) %{_libdir}/libwoff2dec.so
71 %attr(755,root,root) %{_libdir}/libwoff2enc.so
72 %{_includedir}/woff2
73 %{_pkgconfigdir}/libwoff2common.pc
74 %{_pkgconfigdir}/libwoff2dec.pc
75 %{_pkgconfigdir}/libwoff2enc.pc
This page took 0.306295 seconds and 3 git commands to generate.