]>
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 |
4e89e631 | 8 | Version: 1.10.1 |
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 |
4e89e631 | 14 | # Source0-md5: f60fc13b519a66d262afb76c77441870 |
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 JB |
20 | BuildRequires: libstdc++-devel >= 6:4.7 |
21 | BuildRequires: rpmbuild(macros) >= 1.605 | |
f63b2a76 | 22 | BuildRequires: xorg-lib-libxkbcommon-devel |
f63b2a76 AG |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
22e22410 JB |
26 | General-purpose library developed for the WPE-flavored port of WebKit. |
27 | ||
28 | %description -l pl.UTF-8 | |
29 | Ogólna biblioteka do portu WPE biblioteki WebKit. | |
f63b2a76 AG |
30 | |
31 | %package devel | |
22e22410 JB |
32 | Summary: Header files for WPE library |
33 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki WPE | |
f63b2a76 AG |
34 | Group: Development/Libraries |
35 | Requires: %{name} = %{version}-%{release} | |
22e22410 JB |
36 | Requires: EGL-devel |
37 | Requires: xorg-lib-libxkbcommon-devel | |
f63b2a76 AG |
38 | |
39 | %description devel | |
22e22410 | 40 | Header files for WPE library. |
f63b2a76 AG |
41 | |
42 | %description devel -l pl.UTF-8 | |
22e22410 | 43 | Pliki nagłówkowe biblioteki WPE. |
f63b2a76 | 44 | |
d766083e JB |
45 | %package apidocs |
46 | Summary: API documentation for WPE library | |
47 | Summary(pl.UTF-8): Dokumentacja API biblioteki WPE | |
48 | Group: Documentation | |
49 | ||
50 | %description apidocs | |
51 | API documentation for WPE library. | |
52 | ||
53 | %description apidocs -l pl.UTF-8 | |
54 | Dokumentacja API biblioteki WPE. | |
55 | ||
f63b2a76 AG |
56 | %prep |
57 | %setup -q | |
22e22410 | 58 | %patch0 -p1 |
f63b2a76 AG |
59 | |
60 | %build | |
22e22410 JB |
61 | install -d build |
62 | cd build | |
d766083e JB |
63 | %cmake .. \ |
64 | %{?with_apidocs:-DBUILD_DOCS=ON} | |
f63b2a76 AG |
65 | |
66 | %{__make} | |
67 | ||
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
22e22410 JB |
70 | |
71 | %{__make} -C build install \ | |
f63b2a76 AG |
72 | DESTDIR=$RPM_BUILD_ROOT |
73 | ||
74 | %clean | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %post -p /sbin/ldconfig | |
78 | %postun -p /sbin/ldconfig | |
79 | ||
80 | %files | |
81 | %defattr(644,root,root,755) | |
82 | %doc COPYING NEWS | |
22e22410 JB |
83 | %attr(755,root,root) %{_libdir}/libwpe-1.0.so.*.*.* |
84 | %attr(755,root,root) %ghost %{_libdir}/libwpe-1.0.so.1 | |
f63b2a76 AG |
85 | |
86 | %files devel | |
87 | %defattr(644,root,root,755) | |
22e22410 JB |
88 | %attr(755,root,root) %{_libdir}/libwpe-1.0.so |
89 | %{_includedir}/wpe-1.0 | |
f63b2a76 | 90 | %{_pkgconfigdir}/wpe-1.0.pc |
d766083e JB |
91 | |
92 | %if %{with apidocs} | |
93 | %files apidocs | |
94 | %defattr(644,root,root,755) | |
95 | %doc build/Documentation/html/* | |
96 | %endif |