]>
Commit | Line | Data |
---|---|---|
0041e466 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # API documentation | |
4 | ||
fe1c2470 | 5 | Summary: A WPE backend designed for Linux desktop systems |
04d42b76 | 6 | Summary(pl.UTF-8): Backend WPE zaprojektowany dla biurkowych systemów linuksowych |
fe1c2470 | 7 | Name: wpebackend-fdo |
e09988f1 | 8 | Version: 1.14.2 |
29ea462a | 9 | Release: 1 |
fe1c2470 AG |
10 | License: BSD |
11 | Group: Libraries | |
12 | Source0: https://wpewebkit.org/releases/%{name}-%{version}.tar.xz | |
e09988f1 | 13 | # Source0-md5: dafd899646b2e31ef2d97938a638c48d |
fe1c2470 | 14 | URL: https://wpewebkit.org/ |
04d42b76 | 15 | BuildRequires: EGL-devel |
04d42b76 | 16 | BuildRequires: glib2-devel >= 2.0 |
0041e466 | 17 | %{?with_apidocs:BuildRequires: hotdoc} |
ce0b92c3 | 18 | BuildRequires: libepoxy-devel |
04d42b76 | 19 | BuildRequires: libstdc++-devel >= 6:4.7 |
e09988f1 | 20 | BuildRequires: libwpe-devel >= 1.14.0 |
ce0b92c3 JB |
21 | BuildRequires: meson >= 0.49 |
22 | BuildRequires: ninja >= 1.5 | |
29ea462a | 23 | BuildRequires: pkgconfig |
0041e466 | 24 | BuildRequires: rpm-build >= 4.6 |
ce0b92c3 | 25 | BuildRequires: rpmbuild(macros) >= 1.736 |
e09988f1 JB |
26 | BuildRequires: wayland-devel >= 1.15 |
27 | BuildRequires: wayland-egl-devel >= 1.15 | |
28 | BuildRequires: xorg-lib-libxkbcommon-devel | |
29 | Requires: libwpe >= 1.14.0 | |
fe1c2470 AG |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %description | |
33 | A WPE backend designed for Linux desktop systems. | |
34 | ||
04d42b76 JB |
35 | %description -l pl.UTF-8 |
36 | Backend WPE zaprojektowany dla biurkowych systemów linuksowych. | |
37 | ||
fe1c2470 | 38 | %package devel |
04d42b76 JB |
39 | Summary: Header files for WPEBackend-fdo library |
40 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki WPEBackend-fdo | |
fe1c2470 AG |
41 | Group: Development/Libraries |
42 | Requires: %{name} = %{version}-%{release} | |
e09988f1 | 43 | Requires: libwpe-devel >= 1.14.0 |
fe1c2470 AG |
44 | |
45 | %description devel | |
04d42b76 | 46 | Header files for WPEBackend-fdo library. |
fe1c2470 AG |
47 | |
48 | %description devel -l pl.UTF-8 | |
04d42b76 | 49 | Pliki nagłówkowe biblioteki WPEBackend-fdo. |
fe1c2470 | 50 | |
0041e466 JB |
51 | %package apidocs |
52 | Summary: API documentation for WPEBackend-fdo library | |
53 | Summary(pl.UTF-8): Dokumentacja API biblioteki WPEBackend-fdo | |
54 | Group: Documentation | |
55 | BuildArch: noarch | |
56 | ||
57 | %description apidocs | |
58 | API documentation for WPEBackend-fdo library. | |
59 | ||
60 | %description apidocs -l pl.UTF-8 | |
61 | Dokumentacja API biblioteki WPEBackend-fdo. | |
62 | ||
fe1c2470 AG |
63 | %prep |
64 | %setup -q | |
65 | ||
66 | %build | |
0041e466 JB |
67 | %meson build \ |
68 | %{?with_apidocs:-Dbuild_docs=true} | |
04d42b76 | 69 | |
ce0b92c3 | 70 | %ninja_build -C build |
fe1c2470 AG |
71 | |
72 | %install | |
73 | rm -rf $RPM_BUILD_ROOT | |
04d42b76 | 74 | |
ce0b92c3 | 75 | %ninja_install -C build |
fe1c2470 AG |
76 | |
77 | %clean | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %post -p /sbin/ldconfig | |
81 | %postun -p /sbin/ldconfig | |
82 | ||
83 | %files | |
84 | %defattr(644,root,root,755) | |
85 | %doc COPYING NEWS | |
86 | %attr(755,root,root) %{_libdir}/libWPEBackend-fdo-1.0.so.1.* | |
87 | %attr(755,root,root) %ghost %{_libdir}/libWPEBackend-fdo-1.0.so.1 | |
88 | ||
89 | %files devel | |
90 | %defattr(644,root,root,755) | |
91 | %attr(755,root,root) %{_libdir}/libWPEBackend-fdo-1.0.so | |
92 | %{_includedir}/wpe-fdo-1.0 | |
93 | %{_pkgconfigdir}/wpebackend-fdo-1.0.pc | |
0041e466 JB |
94 | |
95 | %if %{with apidocs} | |
96 | %files apidocs | |
97 | %defattr(644,root,root,755) | |
98 | %{_docdir}/WPEBackend-fdo | |
99 | %endif |