]> git.pld-linux.org Git - packages/wayland.git/blame - wayland.spec
- rebuild with libffi 3.3
[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
cea843df
JB
6Summary: Wayland - protocol for a compositor to talk to its clients
7Summary(pl.UTF-8): Wayland - protokół między serwerem składającym a klientami
8Name: wayland
0ffca188 9Version: 1.18.0
042e9343 10Release: 2
cea843df
JB
11License: MIT
12Group: Libraries
a5280d16 13#Source0Download: https://wayland.freedesktop.org/releases.html
1cdf5666 14Source0: https://wayland.freedesktop.org/releases/%{name}-%{version}.tar.xz
0ffca188 15# Source0-md5: 23317697b6e3ff2e1ac8c5ba3ed57b65
5d06faa5 16Patch0: %{name}-missing.patch
a0e72c2c 17Patch1: %{name}-man.patch
1cdf5666 18URL: https://wayland.freedesktop.org/
ceb71059
JB
19BuildRequires: autoconf >= 2.64
20BuildRequires: automake >= 1:1.11
4dab03e1 21BuildRequires: expat-devel >= 1.95
73f3d2c8 22BuildRequires: libffi-devel >= 3
ceb71059 23BuildRequires: libtool >= 2:2.2
6a832efc
JB
24# for DTD valudation
25BuildRequires: libxml2-devel >= 2.0
cea843df 26BuildRequires: pkgconfig
73f3d2c8 27%if %{with apidocs}
545c2aa0 28BuildRequires: docbook-style-xsl-nons
73f3d2c8
JB
29BuildRequires: doxygen >= 1.6.0
30BuildRequires: graphviz >= 2.26.0
31BuildRequires: libxslt-progs
32BuildRequires: xmlto
33%endif
cea843df
JB
34BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36%description
37Wayland is a project to define a protocol for a compositor to talk to
38its clients as well as a library implementation of the protocol. The
39compositor can be a standalone display server running on Linux kernel
40modesetting and evdev input devices, an X application, or a Wayland
41client itself. The clients can be traditional applications, X servers
42(rootless or fullscreen) or other display servers.
43
44%description -l pl.UTF-8
45Wayland to projekt definiujący protokół między serwerem składającym a
46klientami, a także biblioteki implementujące ten protokół. Serwer
47składający może być samodzielnym serwerem wyświetlającym działającym
48na linuksowym kernel modesetting oraz urządzeniach wejściowych evdev,
49aplikacją X lub klientem Wayland. Klientami mogą być tradycyjne
50aplikacje, serwery X (rootless lub pełnoekranowe) lub inne serwery
51wyświetlające.
52
53%package devel
54Summary: Header files for Wayland libraries
55Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Wayland
56Group: Development/Libraries
57Requires: %{name} = %{version}-%{release}
58Requires: libffi-devel
59
60%description devel
61Header files for Wayland libraries.
62
63%description devel -l pl.UTF-8
64Pliki nagłówkowe bibliotek Wayland.
65
66%package static
67Summary: Static Wayland libraries
68Summary(pl.UTF-8): Statyczne biblioteki Wayland
69Group: Development/Libraries
70Requires: %{name}-devel = %{version}-%{release}
71
72%description static
73Static Wayland libraries.
74
75%description static -l pl.UTF-8
76Statyczne biblioteki Wayland.
77
5122a683
JB
78%package egl
79Summary: Wayland EGL library
80Summary(pl.UTF-8): Biblioteka Wayland EGL
81Group: Libraries
614d2ec8 82Obsoletes: Mesa-libwayland-egl
5122a683
JB
83
84%description egl
85Wayland EGL library.
86
87%description egl -l pl.UTF-8
88Biblioteka Wayland EGL.
89
90%package egl-devel
91Summary: Header files for Wayland EGL library
92Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Wayland EGL
93Group: Development/Libraries
94Requires: %{name}-devel = %{version}-%{release}
95Requires: %{name}-egl = %{version}-%{release}
614d2ec8 96Obsoletes: Mesa-libwayland-egl-devel
5122a683
JB
97
98%description egl-devel
99Header files for Wayland EGL library.
100
101%description egl-devel -l pl.UTF-8
102Pliki nagłówkowe biblioteki Wayland EGL.
103
104%package egl-static
105Summary: Static Wayland EGL library
106Summary(pl.UTF-8): Statyczna biblioteka Wayland EGL
107Group: Development/Libraries
108Requires: %{name}-egl-devel = %{version}-%{release}
109
110%description egl-static
111Static Wayland EGL library.
112
113%description egl-static -l pl.UTF-8
114Statyczna biblioteka Wayland EGL.
115
ceb71059
JB
116%package apidocs
117Summary: Wayland API and protocol documentation
118Summary(pl.UTF-8): Dokumentacja API biblioteki oraz protokołu Wayland
119Group: Documentation
74a7acfb
ER
120%if "%{_rpmversion}" >= "5"
121BuildArch: noarch
122%endif
ceb71059
JB
123
124%description apidocs
125Wayland API and protocol documentation.
126
127%description apidocs -l pl.UTF-8
128Dokumentacja API biblioteki oraz protokołu Wayland.
129
cea843df
JB
130%prep
131%setup -q
5d06faa5 132%patch0 -p1
a0e72c2c
JB
133%patch1 -p1
134
135# force regeneration (.so link is broken, double man3/)
136%{__rm} doc/man/*.3
ceb71059 137
cea843df 138%build
ceb71059
JB
139%{__libtoolize}
140%{__aclocal} -I m4
141%{__autoconf}
142%{__autoheader}
143%{__automake}
cea843df 144%configure \
73f3d2c8 145 %{!?with_apidocs:--disable-documentation} \
cea843df 146 --disable-silent-rules \
5122a683 147 %{?with_static_libs:--enable-static}
a0e72c2c 148
cea843df
JB
149%{__make}
150
151%install
152rm -rf $RPM_BUILD_ROOT
153
154%{__make} install \
155 DESTDIR=$RPM_BUILD_ROOT
156
ed134189 157%if %{with apidocs}
7f5862ae 158# referenced by some installed wl_*.3 man pages
5d06faa5 159cp -p doc/doxygen/man/man3/wayland-{client,client-core,server,server-core,util}.h.3 \
6a832efc 160 doc/doxygen/man/man3/wayland-{client,server,shm,util}.c.3 $RPM_BUILD_ROOT%{_mandir}/man3
ed134189 161%endif
7f5862ae 162
cea843df
JB
163# obsoleted by pkg-config
164%{__rm} $RPM_BUILD_ROOT%{_libdir}/libwayland-*.la
00c5e567
JB
165%if %{with apidocs}
166# packaged as %doc in -devel
167%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/wayland
168%endif
cea843df
JB
169
170%clean
171rm -rf $RPM_BUILD_ROOT
172
173%post -p /sbin/ldconfig
174%postun -p /sbin/ldconfig
175
176%files
177%defattr(644,root,root,755)
cc8accbe 178%doc COPYING README TODO
cea843df
JB
179%attr(755,root,root) %{_libdir}/libwayland-client.so.*.*.*
180%attr(755,root,root) %ghost %{_libdir}/libwayland-client.so.0
cc8accbe
JB
181%attr(755,root,root) %{_libdir}/libwayland-cursor.so.*.*.*
182%attr(755,root,root) %ghost %{_libdir}/libwayland-cursor.so.0
cea843df
JB
183%attr(755,root,root) %{_libdir}/libwayland-server.so.*.*.*
184%attr(755,root,root) %ghost %{_libdir}/libwayland-server.so.0
185
186%files devel
187%defattr(644,root,root,755)
188%attr(755,root,root) %{_bindir}/wayland-scanner
189%attr(755,root,root) %{_libdir}/libwayland-client.so
cc8accbe 190%attr(755,root,root) %{_libdir}/libwayland-cursor.so
cea843df 191%attr(755,root,root) %{_libdir}/libwayland-server.so
5122a683
JB
192%{_includedir}/wayland-client*.h
193%{_includedir}/wayland-cursor.h
194%{_includedir}/wayland-server*.h
195%{_includedir}/wayland-util.h
196%{_includedir}/wayland-version.h
3fea3585 197%dir %{_datadir}/wayland
d5e44717 198%{_datadir}/wayland/wayland.dtd
7f5862ae 199%{_datadir}/wayland/wayland.xml
3fea3585 200%{_datadir}/wayland/wayland-scanner.mk
cea843df 201%{_pkgconfigdir}/wayland-client.pc
cc8accbe 202%{_pkgconfigdir}/wayland-cursor.pc
dbb3e8d2 203%{_pkgconfigdir}/wayland-scanner.pc
cea843df
JB
204%{_pkgconfigdir}/wayland-server.pc
205%{_aclocaldir}/wayland-scanner.m4
73f3d2c8 206%if %{with apidocs}
6a832efc
JB
207%{_mandir}/man3/wayland-*.c.3*
208%{_mandir}/man3/wayland-*.h.3*
3fea3585 209%{_mandir}/man3/wl_*.3*
73f3d2c8 210%endif
8f2b0611
JB
211# NOTE: temporarily here because they're used but not included in Mesa 18.1.x
212# TODO: move to -egl-devel after transition to Mesa 18.2.x
213%{_includedir}/wayland-egl.h
214%{_includedir}/wayland-egl-core.h
cea843df
JB
215
216%if %{with static_libs}
217%files static
218%defattr(644,root,root,755)
219%{_libdir}/libwayland-client.a
cc8accbe 220%{_libdir}/libwayland-cursor.a
cea843df
JB
221%{_libdir}/libwayland-server.a
222%endif
ceb71059
JB
223
224%if %{with apidocs}
225%files apidocs
226%defattr(644,root,root,755)
3fea3585 227%doc doc/publican/Wayland/en-US/html/*
ceb71059 228%endif
5122a683
JB
229
230%files egl
231%defattr(644,root,root,755)
232%attr(755,root,root) %{_libdir}/libwayland-egl.so.*.*.*
233%attr(755,root,root) %ghost %{_libdir}/libwayland-egl.so.1
234
235%files egl-devel
236%defattr(644,root,root,755)
237%attr(755,root,root) %{_libdir}/libwayland-egl.so
8f2b0611 238%{_includedir}/wayland-egl-backend.h
5122a683
JB
239%{_pkgconfigdir}/wayland-egl.pc
240%{_pkgconfigdir}/wayland-egl-backend.pc
241
242%if %{with static_libs}
243%files egl-static
244%defattr(644,root,root,755)
245%{_libdir}/libwayland-egl.a
246%endif
This page took 0.194022 seconds and 4 git commands to generate.