]> git.pld-linux.org Git - packages/wayland.git/blame - wayland.spec
- versioned Obsoletes
[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
2b6a1cd5 9Version: 1.21.0
3a3adb5e 10Release: 2
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
15# Source0-md5: f2653a2293bcd882d756c6a83d278903
1cdf5666 16URL: https://wayland.freedesktop.org/
4dab03e1 17BuildRequires: expat-devel >= 1.95
73f3d2c8 18BuildRequires: libffi-devel >= 3
6a832efc
JB
19# for DTD valudation
20BuildRequires: libxml2-devel >= 2.0
a5864e11 21BuildRequires: meson >= 0.56.0
66b43ac9 22BuildRequires: ninja
cea843df 23BuildRequires: pkgconfig
73f3d2c8 24%if %{with apidocs}
545c2aa0 25BuildRequires: docbook-style-xsl-nons
73f3d2c8
JB
26BuildRequires: doxygen >= 1.6.0
27BuildRequires: graphviz >= 2.26.0
28BuildRequires: libxslt-progs
5e407078 29BuildRequires: rpm-build >= 4.6
30652808 30BuildRequires: rpmbuild(macros) >= 1.752
a1de3cf4 31BuildRequires: tar >= 1:1.22
73f3d2c8 32BuildRequires: xmlto
a1de3cf4 33BuildRequires: xz
73f3d2c8 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
fa57010a 83Obsoletes: Mesa-libwayland-egl < 18.2
5122a683
JB
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}
fa57010a 97Obsoletes: Mesa-libwayland-egl-devel < 18.2
5122a683
JB
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
9d7bb9c9 121BuildArch: noarch
ceb71059
JB
122
123%description apidocs
124Wayland API and protocol documentation.
125
126%description apidocs -l pl.UTF-8
127Dokumentacja 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
140rm -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
150rm -rf $RPM_BUILD_ROOT
151
152%post -p /sbin/ldconfig
153%postun -p /sbin/ldconfig
154
3a3adb5e
JP
155%post egl -p /sbin/ldconfig
156%postun egl -p /sbin/ldconfig
157
cea843df
JB
158%files
159%defattr(644,root,root,755)
66b43ac9 160%doc COPYING CONTRIBUTING.md README
cea843df
JB
161%attr(755,root,root) %{_libdir}/libwayland-client.so.*.*.*
162%attr(755,root,root) %ghost %{_libdir}/libwayland-client.so.0
cc8accbe
JB
163%attr(755,root,root) %{_libdir}/libwayland-cursor.so.*.*.*
164%attr(755,root,root) %ghost %{_libdir}/libwayland-cursor.so.0
cea843df
JB
165%attr(755,root,root) %{_libdir}/libwayland-server.so.*.*.*
166%attr(755,root,root) %ghost %{_libdir}/libwayland-server.so.0
167
168%files devel
169%defattr(644,root,root,755)
170%attr(755,root,root) %{_bindir}/wayland-scanner
171%attr(755,root,root) %{_libdir}/libwayland-client.so
cc8accbe 172%attr(755,root,root) %{_libdir}/libwayland-cursor.so
cea843df 173%attr(755,root,root) %{_libdir}/libwayland-server.so
5122a683
JB
174%{_includedir}/wayland-client*.h
175%{_includedir}/wayland-cursor.h
176%{_includedir}/wayland-server*.h
177%{_includedir}/wayland-util.h
178%{_includedir}/wayland-version.h
3fea3585 179%dir %{_datadir}/wayland
d5e44717 180%{_datadir}/wayland/wayland.dtd
7f5862ae 181%{_datadir}/wayland/wayland.xml
3fea3585 182%{_datadir}/wayland/wayland-scanner.mk
cea843df 183%{_pkgconfigdir}/wayland-client.pc
cc8accbe 184%{_pkgconfigdir}/wayland-cursor.pc
dbb3e8d2 185%{_pkgconfigdir}/wayland-scanner.pc
cea843df
JB
186%{_pkgconfigdir}/wayland-server.pc
187%{_aclocaldir}/wayland-scanner.m4
73f3d2c8 188%if %{with apidocs}
3fea3585 189%{_mandir}/man3/wl_*.3*
73f3d2c8 190%endif
8f2b0611
JB
191# NOTE: temporarily here because they're used but not included in Mesa 18.1.x
192# TODO: move to -egl-devel after transition to Mesa 18.2.x
193%{_includedir}/wayland-egl.h
194%{_includedir}/wayland-egl-core.h
cea843df
JB
195
196%if %{with static_libs}
197%files static
198%defattr(644,root,root,755)
199%{_libdir}/libwayland-client.a
cc8accbe 200%{_libdir}/libwayland-cursor.a
cea843df
JB
201%{_libdir}/libwayland-server.a
202%endif
ceb71059
JB
203
204%if %{with apidocs}
205%files apidocs
206%defattr(644,root,root,755)
66b43ac9 207%doc build/doc/publican/html/* doc/publican/sources/{css,images}
ceb71059 208%endif
5122a683
JB
209
210%files egl
211%defattr(644,root,root,755)
212%attr(755,root,root) %{_libdir}/libwayland-egl.so.*.*.*
213%attr(755,root,root) %ghost %{_libdir}/libwayland-egl.so.1
214
215%files egl-devel
216%defattr(644,root,root,755)
217%attr(755,root,root) %{_libdir}/libwayland-egl.so
8f2b0611 218%{_includedir}/wayland-egl-backend.h
5122a683
JB
219%{_pkgconfigdir}/wayland-egl.pc
220%{_pkgconfigdir}/wayland-egl-backend.pc
221
222%if %{with static_libs}
223%files egl-static
224%defattr(644,root,root,755)
225%{_libdir}/libwayland-egl.a
226%endif
This page took 0.298901 seconds and 4 git commands to generate.