]>
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 | |
5122a683 JB |
6 | # see wayland-egl.pc |
7 | %define wayland_egl_ver 18.1.0 | |
cea843df JB |
8 | Summary: Wayland - protocol for a compositor to talk to its clients |
9 | Summary(pl.UTF-8): Wayland - protokół między serwerem składającym a klientami | |
10 | Name: wayland | |
5122a683 | 11 | Version: 1.15.0 |
8f2b0611 | 12 | Release: 2 |
cea843df JB |
13 | License: MIT |
14 | Group: Libraries | |
1cdf5666 | 15 | Source0: https://wayland.freedesktop.org/releases/%{name}-%{version}.tar.xz |
5122a683 | 16 | # Source0-md5: b7393c17fdce9a8d383edab656c92fd2 |
5d06faa5 | 17 | Patch0: %{name}-missing.patch |
a0e72c2c | 18 | Patch1: %{name}-man.patch |
1cdf5666 | 19 | URL: https://wayland.freedesktop.org/ |
ceb71059 JB |
20 | BuildRequires: autoconf >= 2.64 |
21 | BuildRequires: automake >= 1:1.11 | |
4dab03e1 | 22 | BuildRequires: expat-devel >= 1.95 |
73f3d2c8 | 23 | BuildRequires: libffi-devel >= 3 |
ceb71059 | 24 | BuildRequires: libtool >= 2:2.2 |
6a832efc JB |
25 | # for DTD valudation |
26 | BuildRequires: libxml2-devel >= 2.0 | |
cea843df | 27 | BuildRequires: pkgconfig |
73f3d2c8 | 28 | %if %{with apidocs} |
545c2aa0 | 29 | BuildRequires: docbook-style-xsl-nons |
73f3d2c8 JB |
30 | BuildRequires: doxygen >= 1.6.0 |
31 | BuildRequires: graphviz >= 2.26.0 | |
32 | BuildRequires: libxslt-progs | |
33 | BuildRequires: xmlto | |
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 | |
83 | Obsoletes: Mesa-libwayland-egl < %{wayland_egl_ver} | |
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} | |
97 | Obsoletes: Mesa-libwayland-egl-devel < %{wayland_egl_ver} | |
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 | |
74a7acfb ER |
121 | %if "%{_rpmversion}" >= "5" |
122 | BuildArch: noarch | |
123 | %endif | |
ceb71059 JB |
124 | |
125 | %description apidocs | |
126 | Wayland API and protocol documentation. | |
127 | ||
128 | %description apidocs -l pl.UTF-8 | |
129 | Dokumentacja API biblioteki oraz protokołu Wayland. | |
130 | ||
cea843df JB |
131 | %prep |
132 | %setup -q | |
5d06faa5 | 133 | %patch0 -p1 |
a0e72c2c JB |
134 | %patch1 -p1 |
135 | ||
136 | # force regeneration (.so link is broken, double man3/) | |
137 | %{__rm} doc/man/*.3 | |
ceb71059 | 138 | |
cea843df | 139 | %build |
ceb71059 JB |
140 | %{__libtoolize} |
141 | %{__aclocal} -I m4 | |
142 | %{__autoconf} | |
143 | %{__autoheader} | |
144 | %{__automake} | |
cea843df | 145 | %configure \ |
73f3d2c8 | 146 | %{!?with_apidocs:--disable-documentation} \ |
cea843df | 147 | --disable-silent-rules \ |
5122a683 | 148 | %{?with_static_libs:--enable-static} |
a0e72c2c | 149 | |
cea843df JB |
150 | %{__make} |
151 | ||
152 | %install | |
153 | rm -rf $RPM_BUILD_ROOT | |
154 | ||
155 | %{__make} install \ | |
156 | DESTDIR=$RPM_BUILD_ROOT | |
157 | ||
ed134189 | 158 | %if %{with apidocs} |
7f5862ae | 159 | # referenced by some installed wl_*.3 man pages |
5d06faa5 | 160 | cp -p doc/doxygen/man/man3/wayland-{client,client-core,server,server-core,util}.h.3 \ |
6a832efc | 161 | doc/doxygen/man/man3/wayland-{client,server,shm,util}.c.3 $RPM_BUILD_ROOT%{_mandir}/man3 |
ed134189 | 162 | %endif |
7f5862ae | 163 | |
cea843df JB |
164 | # obsoleted by pkg-config |
165 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libwayland-*.la | |
00c5e567 JB |
166 | %if %{with apidocs} |
167 | # packaged as %doc in -devel | |
168 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/wayland | |
169 | %endif | |
cea843df JB |
170 | |
171 | %clean | |
172 | rm -rf $RPM_BUILD_ROOT | |
173 | ||
174 | %post -p /sbin/ldconfig | |
175 | %postun -p /sbin/ldconfig | |
176 | ||
177 | %files | |
178 | %defattr(644,root,root,755) | |
cc8accbe | 179 | %doc COPYING README TODO |
cea843df JB |
180 | %attr(755,root,root) %{_libdir}/libwayland-client.so.*.*.* |
181 | %attr(755,root,root) %ghost %{_libdir}/libwayland-client.so.0 | |
cc8accbe JB |
182 | %attr(755,root,root) %{_libdir}/libwayland-cursor.so.*.*.* |
183 | %attr(755,root,root) %ghost %{_libdir}/libwayland-cursor.so.0 | |
cea843df JB |
184 | %attr(755,root,root) %{_libdir}/libwayland-server.so.*.*.* |
185 | %attr(755,root,root) %ghost %{_libdir}/libwayland-server.so.0 | |
186 | ||
187 | %files devel | |
188 | %defattr(644,root,root,755) | |
189 | %attr(755,root,root) %{_bindir}/wayland-scanner | |
190 | %attr(755,root,root) %{_libdir}/libwayland-client.so | |
cc8accbe | 191 | %attr(755,root,root) %{_libdir}/libwayland-cursor.so |
cea843df | 192 | %attr(755,root,root) %{_libdir}/libwayland-server.so |
5122a683 JB |
193 | %{_includedir}/wayland-client*.h |
194 | %{_includedir}/wayland-cursor.h | |
195 | %{_includedir}/wayland-server*.h | |
196 | %{_includedir}/wayland-util.h | |
197 | %{_includedir}/wayland-version.h | |
3fea3585 | 198 | %dir %{_datadir}/wayland |
d5e44717 | 199 | %{_datadir}/wayland/wayland.dtd |
7f5862ae | 200 | %{_datadir}/wayland/wayland.xml |
3fea3585 | 201 | %{_datadir}/wayland/wayland-scanner.mk |
cea843df | 202 | %{_pkgconfigdir}/wayland-client.pc |
cc8accbe | 203 | %{_pkgconfigdir}/wayland-cursor.pc |
dbb3e8d2 | 204 | %{_pkgconfigdir}/wayland-scanner.pc |
cea843df JB |
205 | %{_pkgconfigdir}/wayland-server.pc |
206 | %{_aclocaldir}/wayland-scanner.m4 | |
73f3d2c8 | 207 | %if %{with apidocs} |
6a832efc JB |
208 | %{_mandir}/man3/wayland-*.c.3* |
209 | %{_mandir}/man3/wayland-*.h.3* | |
3fea3585 | 210 | %{_mandir}/man3/wl_*.3* |
73f3d2c8 | 211 | %endif |
8f2b0611 JB |
212 | # NOTE: temporarily here because they're used but not included in Mesa 18.1.x |
213 | # TODO: move to -egl-devel after transition to Mesa 18.2.x | |
214 | %{_includedir}/wayland-egl.h | |
215 | %{_includedir}/wayland-egl-core.h | |
cea843df JB |
216 | |
217 | %if %{with static_libs} | |
218 | %files static | |
219 | %defattr(644,root,root,755) | |
220 | %{_libdir}/libwayland-client.a | |
cc8accbe | 221 | %{_libdir}/libwayland-cursor.a |
cea843df JB |
222 | %{_libdir}/libwayland-server.a |
223 | %endif | |
ceb71059 JB |
224 | |
225 | %if %{with apidocs} | |
226 | %files apidocs | |
227 | %defattr(644,root,root,755) | |
3fea3585 | 228 | %doc doc/publican/Wayland/en-US/html/* |
ceb71059 | 229 | %endif |
5122a683 JB |
230 | |
231 | %files egl | |
232 | %defattr(644,root,root,755) | |
233 | %attr(755,root,root) %{_libdir}/libwayland-egl.so.*.*.* | |
234 | %attr(755,root,root) %ghost %{_libdir}/libwayland-egl.so.1 | |
235 | ||
236 | %files egl-devel | |
237 | %defattr(644,root,root,755) | |
238 | %attr(755,root,root) %{_libdir}/libwayland-egl.so | |
8f2b0611 | 239 | %{_includedir}/wayland-egl-backend.h |
5122a683 JB |
240 | %{_pkgconfigdir}/wayland-egl.pc |
241 | %{_pkgconfigdir}/wayland-egl-backend.pc | |
242 | ||
243 | %if %{with static_libs} | |
244 | %files egl-static | |
245 | %defattr(644,root,root,755) | |
246 | %{_libdir}/libwayland-egl.a | |
247 | %endif |