]>
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 |
ce0b92c3 | 8 | Version: 1.10.0 |
29ea462a | 9 | Release: 1 |
fe1c2470 AG |
10 | License: BSD |
11 | Group: Libraries | |
12 | Source0: https://wpewebkit.org/releases/%{name}-%{version}.tar.xz | |
ce0b92c3 | 13 | # Source0-md5: 306adbb0c66dc753e1794c83b7a2682b |
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 |
ce0b92c3 JB |
20 | BuildRequires: libwpe-devel >= 1.10.0 |
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 |
04d42b76 JB |
26 | BuildRequires: wayland-devel >= 1.10 |
27 | BuildRequires: wayland-egl-devel >= 1.10 | |
ce0b92c3 | 28 | Requires: libwpe >= 1.10.0 |
fe1c2470 AG |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
30 | ||
31 | %description | |
32 | A WPE backend designed for Linux desktop systems. | |
33 | ||
04d42b76 JB |
34 | %description -l pl.UTF-8 |
35 | Backend WPE zaprojektowany dla biurkowych systemów linuksowych. | |
36 | ||
fe1c2470 | 37 | %package devel |
04d42b76 JB |
38 | Summary: Header files for WPEBackend-fdo library |
39 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki WPEBackend-fdo | |
fe1c2470 AG |
40 | Group: Development/Libraries |
41 | Requires: %{name} = %{version}-%{release} | |
ce0b92c3 | 42 | Requires: libwpe-devel >= 1.10.0 |
fe1c2470 AG |
43 | |
44 | %description devel | |
04d42b76 | 45 | Header files for WPEBackend-fdo library. |
fe1c2470 AG |
46 | |
47 | %description devel -l pl.UTF-8 | |
04d42b76 | 48 | Pliki nagłówkowe biblioteki WPEBackend-fdo. |
fe1c2470 | 49 | |
0041e466 JB |
50 | %package apidocs |
51 | Summary: API documentation for WPEBackend-fdo library | |
52 | Summary(pl.UTF-8): Dokumentacja API biblioteki WPEBackend-fdo | |
53 | Group: Documentation | |
54 | BuildArch: noarch | |
55 | ||
56 | %description apidocs | |
57 | API documentation for WPEBackend-fdo library. | |
58 | ||
59 | %description apidocs -l pl.UTF-8 | |
60 | Dokumentacja API biblioteki WPEBackend-fdo. | |
61 | ||
fe1c2470 AG |
62 | %prep |
63 | %setup -q | |
64 | ||
65 | %build | |
0041e466 JB |
66 | %meson build \ |
67 | %{?with_apidocs:-Dbuild_docs=true} | |
04d42b76 | 68 | |
ce0b92c3 | 69 | %ninja_build -C build |
fe1c2470 AG |
70 | |
71 | %install | |
72 | rm -rf $RPM_BUILD_ROOT | |
04d42b76 | 73 | |
ce0b92c3 | 74 | %ninja_install -C build |
fe1c2470 AG |
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 | |
85 | %attr(755,root,root) %{_libdir}/libWPEBackend-fdo-1.0.so.1.* | |
86 | %attr(755,root,root) %ghost %{_libdir}/libWPEBackend-fdo-1.0.so.1 | |
87 | ||
88 | %files devel | |
89 | %defattr(644,root,root,755) | |
90 | %attr(755,root,root) %{_libdir}/libWPEBackend-fdo-1.0.so | |
91 | %{_includedir}/wpe-fdo-1.0 | |
92 | %{_pkgconfigdir}/wpebackend-fdo-1.0.pc | |
0041e466 JB |
93 | |
94 | %if %{with apidocs} | |
95 | %files apidocs | |
96 | %defattr(644,root,root,755) | |
97 | %{_docdir}/WPEBackend-fdo | |
98 | %endif |