]>
Commit | Line | Data |
---|---|---|
d766083e JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # API documentation | |
4 | ||
f63b2a76 | 5 | Summary: General-purpose library for the WPE-flavored port of WebKit |
22e22410 | 6 | Summary(pl.UTF-8): Ogólna biblioteka do portu WPE biblioteki WebKit |
f63b2a76 | 7 | Name: libwpe |
02fc44b2 | 8 | Version: 1.16.0 |
a16ec57e | 9 | Release: 1 |
f63b2a76 AG |
10 | License: BSD |
11 | Group: Libraries | |
22e22410 | 12 | #Source0Download: https://github.com/WebPlatformForEmbedded/libwpe/releases |
f63b2a76 | 13 | Source0: https://github.com/WebPlatformForEmbedded/libwpe/releases/download/%{version}/%{name}-%{version}.tar.xz |
02fc44b2 | 14 | # Source0-md5: 9779115aaa7e67abe642777394e7bfa2 |
22e22410 | 15 | Patch0: %{name}-libdir.patch |
e84cdfec | 16 | URL: https://wpewebkit.org/ |
22e22410 JB |
17 | BuildRequires: EGL-devel |
18 | BuildRequires: cmake >= 3.0 | |
d766083e | 19 | %{?with_apidocs:BuildRequires: hotdoc} |
22e22410 | 20 | BuildRequires: libstdc++-devel >= 6:4.7 |
4309b5a6 | 21 | BuildRequires: rpm-build >= 4.6 |
22e22410 | 22 | BuildRequires: rpmbuild(macros) >= 1.605 |
f63b2a76 | 23 | BuildRequires: xorg-lib-libxkbcommon-devel |
f63b2a76 AG |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
22e22410 JB |
27 | General-purpose library developed for the WPE-flavored port of WebKit. |
28 | ||
29 | %description -l pl.UTF-8 | |
30 | Ogólna biblioteka do portu WPE biblioteki WebKit. | |
f63b2a76 AG |
31 | |
32 | %package devel | |
22e22410 JB |
33 | Summary: Header files for WPE library |
34 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki WPE | |
f63b2a76 AG |
35 | Group: Development/Libraries |
36 | Requires: %{name} = %{version}-%{release} | |
22e22410 JB |
37 | Requires: EGL-devel |
38 | Requires: xorg-lib-libxkbcommon-devel | |
f63b2a76 AG |
39 | |
40 | %description devel | |
22e22410 | 41 | Header files for WPE library. |
f63b2a76 AG |
42 | |
43 | %description devel -l pl.UTF-8 | |
22e22410 | 44 | Pliki nagłówkowe biblioteki WPE. |
f63b2a76 | 45 | |
d766083e JB |
46 | %package apidocs |
47 | Summary: API documentation for WPE library | |
48 | Summary(pl.UTF-8): Dokumentacja API biblioteki WPE | |
49 | Group: Documentation | |
4309b5a6 | 50 | BuildArch: noarch |
d766083e JB |
51 | |
52 | %description apidocs | |
53 | API documentation for WPE library. | |
54 | ||
55 | %description apidocs -l pl.UTF-8 | |
56 | Dokumentacja API biblioteki WPE. | |
57 | ||
f63b2a76 AG |
58 | %prep |
59 | %setup -q | |
22e22410 | 60 | %patch0 -p1 |
f63b2a76 AG |
61 | |
62 | %build | |
22e22410 JB |
63 | install -d build |
64 | cd build | |
d766083e JB |
65 | %cmake .. \ |
66 | %{?with_apidocs:-DBUILD_DOCS=ON} | |
f63b2a76 AG |
67 | |
68 | %{__make} | |
69 | ||
70 | %install | |
71 | rm -rf $RPM_BUILD_ROOT | |
22e22410 JB |
72 | |
73 | %{__make} -C build install \ | |
f63b2a76 AG |
74 | DESTDIR=$RPM_BUILD_ROOT |
75 | ||
76 | %clean | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %post -p /sbin/ldconfig | |
80 | %postun -p /sbin/ldconfig | |
81 | ||
82 | %files | |
83 | %defattr(644,root,root,755) | |
84 | %doc COPYING NEWS | |
22e22410 JB |
85 | %attr(755,root,root) %{_libdir}/libwpe-1.0.so.*.*.* |
86 | %attr(755,root,root) %ghost %{_libdir}/libwpe-1.0.so.1 | |
f63b2a76 AG |
87 | |
88 | %files devel | |
89 | %defattr(644,root,root,755) | |
22e22410 JB |
90 | %attr(755,root,root) %{_libdir}/libwpe-1.0.so |
91 | %{_includedir}/wpe-1.0 | |
f63b2a76 | 92 | %{_pkgconfigdir}/wpe-1.0.pc |
d766083e JB |
93 | |
94 | %if %{with apidocs} | |
95 | %files apidocs | |
96 | %defattr(644,root,root,755) | |
97 | %doc build/Documentation/html/* | |
98 | %endif |