]> git.pld-linux.org Git - packages/wayland.git/blame - wayland.spec
BRs for tar.xz source
[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
66b43ac9
JP
9Version: 1.19.0
10Release: 1
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
66b43ac9 15# Source0-md5: 5d59ac3d8a8f4e42de2ceb8bb19dfca9
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
66b43ac9
JP
21BuildRequires: meson >= 0.52.1
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
30652808 29BuildRequires: rpmbuild(macros) >= 1.752
a1de3cf4 30BuildRequires: tar >= 1:1.22
73f3d2c8 31BuildRequires: xmlto
a1de3cf4 32BuildRequires: xz
73f3d2c8 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
30652808 120%{?noarchpackage}
ceb71059
JB
121
122%description apidocs
123Wayland API and protocol documentation.
124
125%description apidocs -l pl.UTF-8
126Dokumentacja API biblioteki oraz protokołu Wayland.
127
cea843df
JB
128%prep
129%setup -q
ceb71059 130
cea843df 131%build
66b43ac9
JP
132%meson build \
133 %{!?with_apidocs:-Ddocumentation=false} \
134 %{!?with_static_libs:--default-library=shared}
135
136%ninja_build -C build
cea843df
JB
137
138%install
139rm -rf $RPM_BUILD_ROOT
140
66b43ac9 141%ninja_install -C build
7f5862ae 142
00c5e567
JB
143%if %{with apidocs}
144# packaged as %doc in -devel
145%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/wayland
146%endif
cea843df
JB
147
148%clean
149rm -rf $RPM_BUILD_ROOT
150
151%post -p /sbin/ldconfig
152%postun -p /sbin/ldconfig
153
154%files
155%defattr(644,root,root,755)
66b43ac9 156%doc COPYING CONTRIBUTING.md README
cea843df
JB
157%attr(755,root,root) %{_libdir}/libwayland-client.so.*.*.*
158%attr(755,root,root) %ghost %{_libdir}/libwayland-client.so.0
cc8accbe
JB
159%attr(755,root,root) %{_libdir}/libwayland-cursor.so.*.*.*
160%attr(755,root,root) %ghost %{_libdir}/libwayland-cursor.so.0
cea843df
JB
161%attr(755,root,root) %{_libdir}/libwayland-server.so.*.*.*
162%attr(755,root,root) %ghost %{_libdir}/libwayland-server.so.0
163
164%files devel
165%defattr(644,root,root,755)
166%attr(755,root,root) %{_bindir}/wayland-scanner
167%attr(755,root,root) %{_libdir}/libwayland-client.so
cc8accbe 168%attr(755,root,root) %{_libdir}/libwayland-cursor.so
cea843df 169%attr(755,root,root) %{_libdir}/libwayland-server.so
5122a683
JB
170%{_includedir}/wayland-client*.h
171%{_includedir}/wayland-cursor.h
172%{_includedir}/wayland-server*.h
173%{_includedir}/wayland-util.h
174%{_includedir}/wayland-version.h
3fea3585 175%dir %{_datadir}/wayland
d5e44717 176%{_datadir}/wayland/wayland.dtd
7f5862ae 177%{_datadir}/wayland/wayland.xml
3fea3585 178%{_datadir}/wayland/wayland-scanner.mk
cea843df 179%{_pkgconfigdir}/wayland-client.pc
cc8accbe 180%{_pkgconfigdir}/wayland-cursor.pc
dbb3e8d2 181%{_pkgconfigdir}/wayland-scanner.pc
cea843df
JB
182%{_pkgconfigdir}/wayland-server.pc
183%{_aclocaldir}/wayland-scanner.m4
73f3d2c8 184%if %{with apidocs}
3fea3585 185%{_mandir}/man3/wl_*.3*
73f3d2c8 186%endif
8f2b0611
JB
187# NOTE: temporarily here because they're used but not included in Mesa 18.1.x
188# TODO: move to -egl-devel after transition to Mesa 18.2.x
189%{_includedir}/wayland-egl.h
190%{_includedir}/wayland-egl-core.h
cea843df
JB
191
192%if %{with static_libs}
193%files static
194%defattr(644,root,root,755)
195%{_libdir}/libwayland-client.a
cc8accbe 196%{_libdir}/libwayland-cursor.a
cea843df
JB
197%{_libdir}/libwayland-server.a
198%endif
ceb71059
JB
199
200%if %{with apidocs}
201%files apidocs
202%defattr(644,root,root,755)
66b43ac9 203%doc build/doc/publican/html/* doc/publican/sources/{css,images}
ceb71059 204%endif
5122a683
JB
205
206%files egl
207%defattr(644,root,root,755)
208%attr(755,root,root) %{_libdir}/libwayland-egl.so.*.*.*
209%attr(755,root,root) %ghost %{_libdir}/libwayland-egl.so.1
210
211%files egl-devel
212%defattr(644,root,root,755)
213%attr(755,root,root) %{_libdir}/libwayland-egl.so
8f2b0611 214%{_includedir}/wayland-egl-backend.h
5122a683
JB
215%{_pkgconfigdir}/wayland-egl.pc
216%{_pkgconfigdir}/wayland-egl-backend.pc
217
218%if %{with static_libs}
219%files egl-static
220%defattr(644,root,root,755)
221%{_libdir}/libwayland-egl.a
222%endif
This page took 0.19828 seconds and 4 git commands to generate.