]>
Commit | Line | Data |
---|---|---|
cea843df JB |
1 | # |
2 | # Conditional build: | |
ceb71059 | 3 | %bcond_without apidocs # don't build API documentation |
cea843df | 4 | %bcond_without static_libs # don't build static libraries |
74a7acfb | 5 | |
cea843df JB |
6 | Summary: Wayland - protocol for a compositor to talk to its clients |
7 | Summary(pl.UTF-8): Wayland - protokół między serwerem składającym a klientami | |
8 | Name: wayland | |
66b43ac9 JP |
9 | Version: 1.19.0 |
10 | Release: 1 | |
cea843df JB |
11 | License: MIT |
12 | Group: Libraries | |
a5280d16 | 13 | #Source0Download: https://wayland.freedesktop.org/releases.html |
1cdf5666 | 14 | Source0: https://wayland.freedesktop.org/releases/%{name}-%{version}.tar.xz |
66b43ac9 | 15 | # Source0-md5: 5d59ac3d8a8f4e42de2ceb8bb19dfca9 |
1cdf5666 | 16 | URL: https://wayland.freedesktop.org/ |
4dab03e1 | 17 | BuildRequires: expat-devel >= 1.95 |
73f3d2c8 | 18 | BuildRequires: libffi-devel >= 3 |
6a832efc JB |
19 | # for DTD valudation |
20 | BuildRequires: libxml2-devel >= 2.0 | |
66b43ac9 JP |
21 | BuildRequires: meson >= 0.52.1 |
22 | BuildRequires: ninja | |
cea843df | 23 | BuildRequires: pkgconfig |
73f3d2c8 | 24 | %if %{with apidocs} |
545c2aa0 | 25 | BuildRequires: docbook-style-xsl-nons |
73f3d2c8 JB |
26 | BuildRequires: doxygen >= 1.6.0 |
27 | BuildRequires: graphviz >= 2.26.0 | |
28 | BuildRequires: libxslt-progs | |
30652808 | 29 | BuildRequires: rpmbuild(macros) >= 1.752 |
73f3d2c8 JB |
30 | BuildRequires: xmlto |
31 | %endif | |
cea843df JB |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
33 | ||
34 | %description | |
35 | Wayland is a project to define a protocol for a compositor to talk to | |
36 | its clients as well as a library implementation of the protocol. The | |
37 | compositor can be a standalone display server running on Linux kernel | |
38 | modesetting and evdev input devices, an X application, or a Wayland | |
39 | client itself. The clients can be traditional applications, X servers | |
40 | (rootless or fullscreen) or other display servers. | |
41 | ||
42 | %description -l pl.UTF-8 | |
43 | Wayland to projekt definiujący protokół między serwerem składającym a | |
44 | klientami, a także biblioteki implementujące ten protokół. Serwer | |
45 | składający może być samodzielnym serwerem wyświetlającym działającym | |
46 | na linuksowym kernel modesetting oraz urządzeniach wejściowych evdev, | |
47 | aplikacją X lub klientem Wayland. Klientami mogą być tradycyjne | |
48 | aplikacje, serwery X (rootless lub pełnoekranowe) lub inne serwery | |
49 | wyświetlające. | |
50 | ||
51 | %package devel | |
52 | Summary: Header files for Wayland libraries | |
53 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Wayland | |
54 | Group: Development/Libraries | |
55 | Requires: %{name} = %{version}-%{release} | |
56 | Requires: libffi-devel | |
57 | ||
58 | %description devel | |
59 | Header files for Wayland libraries. | |
60 | ||
61 | %description devel -l pl.UTF-8 | |
62 | Pliki nagłówkowe bibliotek Wayland. | |
63 | ||
64 | %package static | |
65 | Summary: Static Wayland libraries | |
66 | Summary(pl.UTF-8): Statyczne biblioteki Wayland | |
67 | Group: Development/Libraries | |
68 | Requires: %{name}-devel = %{version}-%{release} | |
69 | ||
70 | %description static | |
71 | Static Wayland libraries. | |
72 | ||
73 | %description static -l pl.UTF-8 | |
74 | Statyczne biblioteki Wayland. | |
75 | ||
5122a683 JB |
76 | %package egl |
77 | Summary: Wayland EGL library | |
78 | Summary(pl.UTF-8): Biblioteka Wayland EGL | |
79 | Group: Libraries | |
614d2ec8 | 80 | Obsoletes: Mesa-libwayland-egl |
5122a683 JB |
81 | |
82 | %description egl | |
83 | Wayland EGL library. | |
84 | ||
85 | %description egl -l pl.UTF-8 | |
86 | Biblioteka Wayland EGL. | |
87 | ||
88 | %package egl-devel | |
89 | Summary: Header files for Wayland EGL library | |
90 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Wayland EGL | |
91 | Group: Development/Libraries | |
92 | Requires: %{name}-devel = %{version}-%{release} | |
93 | Requires: %{name}-egl = %{version}-%{release} | |
614d2ec8 | 94 | Obsoletes: Mesa-libwayland-egl-devel |
5122a683 JB |
95 | |
96 | %description egl-devel | |
97 | Header files for Wayland EGL library. | |
98 | ||
99 | %description egl-devel -l pl.UTF-8 | |
100 | Pliki nagłówkowe biblioteki Wayland EGL. | |
101 | ||
102 | %package egl-static | |
103 | Summary: Static Wayland EGL library | |
104 | Summary(pl.UTF-8): Statyczna biblioteka Wayland EGL | |
105 | Group: Development/Libraries | |
106 | Requires: %{name}-egl-devel = %{version}-%{release} | |
107 | ||
108 | %description egl-static | |
109 | Static Wayland EGL library. | |
110 | ||
111 | %description egl-static -l pl.UTF-8 | |
112 | Statyczna biblioteka Wayland EGL. | |
113 | ||
ceb71059 JB |
114 | %package apidocs |
115 | Summary: Wayland API and protocol documentation | |
116 | Summary(pl.UTF-8): Dokumentacja API biblioteki oraz protokołu Wayland | |
117 | Group: Documentation | |
30652808 | 118 | %{?noarchpackage} |
ceb71059 JB |
119 | |
120 | %description apidocs | |
121 | Wayland API and protocol documentation. | |
122 | ||
123 | %description apidocs -l pl.UTF-8 | |
124 | Dokumentacja API biblioteki oraz protokołu Wayland. | |
125 | ||
cea843df JB |
126 | %prep |
127 | %setup -q | |
ceb71059 | 128 | |
cea843df | 129 | %build |
66b43ac9 JP |
130 | %meson build \ |
131 | %{!?with_apidocs:-Ddocumentation=false} \ | |
132 | %{!?with_static_libs:--default-library=shared} | |
133 | ||
134 | %ninja_build -C build | |
cea843df JB |
135 | |
136 | %install | |
137 | rm -rf $RPM_BUILD_ROOT | |
138 | ||
66b43ac9 | 139 | %ninja_install -C build |
7f5862ae | 140 | |
00c5e567 JB |
141 | %if %{with apidocs} |
142 | # packaged as %doc in -devel | |
143 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/wayland | |
144 | %endif | |
cea843df JB |
145 | |
146 | %clean | |
147 | rm -rf $RPM_BUILD_ROOT | |
148 | ||
149 | %post -p /sbin/ldconfig | |
150 | %postun -p /sbin/ldconfig | |
151 | ||
152 | %files | |
153 | %defattr(644,root,root,755) | |
66b43ac9 | 154 | %doc COPYING CONTRIBUTING.md README |
cea843df JB |
155 | %attr(755,root,root) %{_libdir}/libwayland-client.so.*.*.* |
156 | %attr(755,root,root) %ghost %{_libdir}/libwayland-client.so.0 | |
cc8accbe JB |
157 | %attr(755,root,root) %{_libdir}/libwayland-cursor.so.*.*.* |
158 | %attr(755,root,root) %ghost %{_libdir}/libwayland-cursor.so.0 | |
cea843df JB |
159 | %attr(755,root,root) %{_libdir}/libwayland-server.so.*.*.* |
160 | %attr(755,root,root) %ghost %{_libdir}/libwayland-server.so.0 | |
161 | ||
162 | %files devel | |
163 | %defattr(644,root,root,755) | |
164 | %attr(755,root,root) %{_bindir}/wayland-scanner | |
165 | %attr(755,root,root) %{_libdir}/libwayland-client.so | |
cc8accbe | 166 | %attr(755,root,root) %{_libdir}/libwayland-cursor.so |
cea843df | 167 | %attr(755,root,root) %{_libdir}/libwayland-server.so |
5122a683 JB |
168 | %{_includedir}/wayland-client*.h |
169 | %{_includedir}/wayland-cursor.h | |
170 | %{_includedir}/wayland-server*.h | |
171 | %{_includedir}/wayland-util.h | |
172 | %{_includedir}/wayland-version.h | |
3fea3585 | 173 | %dir %{_datadir}/wayland |
d5e44717 | 174 | %{_datadir}/wayland/wayland.dtd |
7f5862ae | 175 | %{_datadir}/wayland/wayland.xml |
3fea3585 | 176 | %{_datadir}/wayland/wayland-scanner.mk |
cea843df | 177 | %{_pkgconfigdir}/wayland-client.pc |
cc8accbe | 178 | %{_pkgconfigdir}/wayland-cursor.pc |
dbb3e8d2 | 179 | %{_pkgconfigdir}/wayland-scanner.pc |
cea843df JB |
180 | %{_pkgconfigdir}/wayland-server.pc |
181 | %{_aclocaldir}/wayland-scanner.m4 | |
73f3d2c8 | 182 | %if %{with apidocs} |
3fea3585 | 183 | %{_mandir}/man3/wl_*.3* |
73f3d2c8 | 184 | %endif |
8f2b0611 JB |
185 | # NOTE: temporarily here because they're used but not included in Mesa 18.1.x |
186 | # TODO: move to -egl-devel after transition to Mesa 18.2.x | |
187 | %{_includedir}/wayland-egl.h | |
188 | %{_includedir}/wayland-egl-core.h | |
cea843df JB |
189 | |
190 | %if %{with static_libs} | |
191 | %files static | |
192 | %defattr(644,root,root,755) | |
193 | %{_libdir}/libwayland-client.a | |
cc8accbe | 194 | %{_libdir}/libwayland-cursor.a |
cea843df JB |
195 | %{_libdir}/libwayland-server.a |
196 | %endif | |
ceb71059 JB |
197 | |
198 | %if %{with apidocs} | |
199 | %files apidocs | |
200 | %defattr(644,root,root,755) | |
66b43ac9 | 201 | %doc build/doc/publican/html/* doc/publican/sources/{css,images} |
ceb71059 | 202 | %endif |
5122a683 JB |
203 | |
204 | %files egl | |
205 | %defattr(644,root,root,755) | |
206 | %attr(755,root,root) %{_libdir}/libwayland-egl.so.*.*.* | |
207 | %attr(755,root,root) %ghost %{_libdir}/libwayland-egl.so.1 | |
208 | ||
209 | %files egl-devel | |
210 | %defattr(644,root,root,755) | |
211 | %attr(755,root,root) %{_libdir}/libwayland-egl.so | |
8f2b0611 | 212 | %{_includedir}/wayland-egl-backend.h |
5122a683 JB |
213 | %{_pkgconfigdir}/wayland-egl.pc |
214 | %{_pkgconfigdir}/wayland-egl-backend.pc | |
215 | ||
216 | %if %{with static_libs} | |
217 | %files egl-static | |
218 | %defattr(644,root,root,755) | |
219 | %{_libdir}/libwayland-egl.a | |
220 | %endif |