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