]> git.pld-linux.org Git - packages/wayland.git/blame - wayland.spec
- temporarily move wayland-egl headers to -devel for Mesa 18.1.x; release 2
[packages/wayland.git] / wayland.spec
CommitLineData
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
8Summary: Wayland - protocol for a compositor to talk to its clients
9Summary(pl.UTF-8): Wayland - protokół między serwerem składającym a klientami
10Name: wayland
5122a683 11Version: 1.15.0
8f2b0611 12Release: 2
cea843df
JB
13License: MIT
14Group: Libraries
1cdf5666 15Source0: https://wayland.freedesktop.org/releases/%{name}-%{version}.tar.xz
5122a683 16# Source0-md5: b7393c17fdce9a8d383edab656c92fd2
5d06faa5 17Patch0: %{name}-missing.patch
a0e72c2c 18Patch1: %{name}-man.patch
1cdf5666 19URL: https://wayland.freedesktop.org/
ceb71059
JB
20BuildRequires: autoconf >= 2.64
21BuildRequires: automake >= 1:1.11
4dab03e1 22BuildRequires: expat-devel >= 1.95
73f3d2c8 23BuildRequires: libffi-devel >= 3
ceb71059 24BuildRequires: libtool >= 2:2.2
6a832efc
JB
25# for DTD valudation
26BuildRequires: libxml2-devel >= 2.0
cea843df 27BuildRequires: pkgconfig
73f3d2c8 28%if %{with apidocs}
545c2aa0 29BuildRequires: docbook-style-xsl-nons
73f3d2c8
JB
30BuildRequires: doxygen >= 1.6.0
31BuildRequires: graphviz >= 2.26.0
32BuildRequires: libxslt-progs
33BuildRequires: xmlto
34%endif
cea843df
JB
35BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37%description
38Wayland is a project to define a protocol for a compositor to talk to
39its clients as well as a library implementation of the protocol. The
40compositor can be a standalone display server running on Linux kernel
41modesetting and evdev input devices, an X application, or a Wayland
42client itself. The clients can be traditional applications, X servers
43(rootless or fullscreen) or other display servers.
44
45%description -l pl.UTF-8
46Wayland to projekt definiujący protokół między serwerem składającym a
47klientami, a także biblioteki implementujące ten protokół. Serwer
48składający może być samodzielnym serwerem wyświetlającym działającym
49na linuksowym kernel modesetting oraz urządzeniach wejściowych evdev,
50aplikacją X lub klientem Wayland. Klientami mogą być tradycyjne
51aplikacje, serwery X (rootless lub pełnoekranowe) lub inne serwery
52wyświetlające.
53
54%package devel
55Summary: Header files for Wayland libraries
56Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Wayland
57Group: Development/Libraries
58Requires: %{name} = %{version}-%{release}
59Requires: libffi-devel
60
61%description devel
62Header files for Wayland libraries.
63
64%description devel -l pl.UTF-8
65Pliki nagłówkowe bibliotek Wayland.
66
67%package static
68Summary: Static Wayland libraries
69Summary(pl.UTF-8): Statyczne biblioteki Wayland
70Group: Development/Libraries
71Requires: %{name}-devel = %{version}-%{release}
72
73%description static
74Static Wayland libraries.
75
76%description static -l pl.UTF-8
77Statyczne biblioteki Wayland.
78
5122a683
JB
79%package egl
80Summary: Wayland EGL library
81Summary(pl.UTF-8): Biblioteka Wayland EGL
82Group: Libraries
83Obsoletes: Mesa-libwayland-egl < %{wayland_egl_ver}
84
85%description egl
86Wayland EGL library.
87
88%description egl -l pl.UTF-8
89Biblioteka Wayland EGL.
90
91%package egl-devel
92Summary: Header files for Wayland EGL library
93Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Wayland EGL
94Group: Development/Libraries
95Requires: %{name}-devel = %{version}-%{release}
96Requires: %{name}-egl = %{version}-%{release}
97Obsoletes: Mesa-libwayland-egl-devel < %{wayland_egl_ver}
98
99%description egl-devel
100Header files for Wayland EGL library.
101
102%description egl-devel -l pl.UTF-8
103Pliki nagłówkowe biblioteki Wayland EGL.
104
105%package egl-static
106Summary: Static Wayland EGL library
107Summary(pl.UTF-8): Statyczna biblioteka Wayland EGL
108Group: Development/Libraries
109Requires: %{name}-egl-devel = %{version}-%{release}
110
111%description egl-static
112Static Wayland EGL library.
113
114%description egl-static -l pl.UTF-8
115Statyczna biblioteka Wayland EGL.
116
ceb71059
JB
117%package apidocs
118Summary: Wayland API and protocol documentation
119Summary(pl.UTF-8): Dokumentacja API biblioteki oraz protokołu Wayland
120Group: Documentation
74a7acfb
ER
121%if "%{_rpmversion}" >= "5"
122BuildArch: noarch
123%endif
ceb71059
JB
124
125%description apidocs
126Wayland API and protocol documentation.
127
128%description apidocs -l pl.UTF-8
129Dokumentacja 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
153rm -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 160cp -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
172rm -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
This page took 0.067144 seconds and 4 git commands to generate.