3 %bcond_without apidocs # API documentation
5 Summary: General-purpose library for the WPE-flavored port of WebKit
6 Summary(pl.UTF-8): Ogólna biblioteka do portu WPE biblioteki WebKit
12 #Source0Download: https://github.com/WebPlatformForEmbedded/libwpe/releases
13 Source0: https://github.com/WebPlatformForEmbedded/libwpe/releases/download/%{version}/%{name}-%{version}.tar.xz
14 # Source0-md5: 9779115aaa7e67abe642777394e7bfa2
15 Patch0: %{name}-libdir.patch
16 URL: https://wpewebkit.org/
17 BuildRequires: EGL-devel
18 BuildRequires: cmake >= 3.0
19 %{?with_apidocs:BuildRequires: hotdoc}
20 BuildRequires: libstdc++-devel >= 6:4.7
21 BuildRequires: rpm-build >= 4.6
22 BuildRequires: rpmbuild(macros) >= 1.605
23 BuildRequires: xorg-lib-libxkbcommon-devel
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 General-purpose library developed for the WPE-flavored port of WebKit.
29 %description -l pl.UTF-8
30 Ogólna biblioteka do portu WPE biblioteki WebKit.
33 Summary: Header files for WPE library
34 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki WPE
35 Group: Development/Libraries
36 Requires: %{name} = %{version}-%{release}
38 Requires: xorg-lib-libxkbcommon-devel
41 Header files for WPE library.
43 %description devel -l pl.UTF-8
44 Pliki nagłówkowe biblioteki WPE.
47 Summary: API documentation for WPE library
48 Summary(pl.UTF-8): Dokumentacja API biblioteki WPE
53 API documentation for WPE library.
55 %description apidocs -l pl.UTF-8
56 Dokumentacja API biblioteki WPE.
66 %{?with_apidocs:-DBUILD_DOCS=ON}
71 rm -rf $RPM_BUILD_ROOT
73 %{__make} -C build install \
74 DESTDIR=$RPM_BUILD_ROOT
77 rm -rf $RPM_BUILD_ROOT
79 %post -p /sbin/ldconfig
80 %postun -p /sbin/ldconfig
83 %defattr(644,root,root,755)
85 %attr(755,root,root) %{_libdir}/libwpe-1.0.so.*.*.*
86 %attr(755,root,root) %ghost %{_libdir}/libwpe-1.0.so.1
89 %defattr(644,root,root,755)
90 %attr(755,root,root) %{_libdir}/libwpe-1.0.so
91 %{_includedir}/wpe-1.0
92 %{_pkgconfigdir}/wpe-1.0.pc
96 %defattr(644,root,root,755)
97 %doc build/Documentation/html/*