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