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