3 %bcond_without apidocs # don't build API documentation
4 %bcond_without static_libs # don't build static libraries
6 Summary: Wayland - protocol for a compositor to talk to its clients
7 Summary(pl.UTF-8): Wayland - protokół między serwerem składającym a klientami
13 Source0: http://wayland.freedesktop.org/releases/%{name}-%{version}.tar.xz
14 # Source0-md5: dc75d060f23c0ef17ae95307cd525240
15 Patch0: %{name}-publican.patch
16 Patch1: %{name}-man.patch
17 URL: http://wayland.freedesktop.org/
18 BuildRequires: autoconf >= 2.64
19 BuildRequires: automake >= 1:1.11
20 BuildRequires: docbook-style-xsl
21 BuildRequires: doxygen
22 BuildRequires: expat-devel
23 BuildRequires: libffi-devel
24 BuildRequires: libtool >= 2:2.2
25 BuildRequires: libxslt-progs
26 BuildRequires: pkgconfig
27 BuildRequires: pkgconfig(libffi)
28 %{?with_apidocs:BuildRequires: publican >= 3}
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 Wayland is a project to define a protocol for a compositor to talk to
33 its clients as well as a library implementation of the protocol. The
34 compositor can be a standalone display server running on Linux kernel
35 modesetting and evdev input devices, an X application, or a Wayland
36 client itself. The clients can be traditional applications, X servers
37 (rootless or fullscreen) or other display servers.
39 %description -l pl.UTF-8
40 Wayland to projekt definiujący protokół między serwerem składającym a
41 klientami, a także biblioteki implementujące ten protokół. Serwer
42 składający może być samodzielnym serwerem wyświetlającym działającym
43 na linuksowym kernel modesetting oraz urządzeniach wejściowych evdev,
44 aplikacją X lub klientem Wayland. Klientami mogą być tradycyjne
45 aplikacje, serwery X (rootless lub pełnoekranowe) lub inne serwery
49 Summary: Header files for Wayland libraries
50 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Wayland
51 Group: Development/Libraries
52 Requires: %{name} = %{version}-%{release}
53 Requires: libffi-devel
56 Header files for Wayland libraries.
58 %description devel -l pl.UTF-8
59 Pliki nagłówkowe bibliotek Wayland.
62 Summary: Static Wayland libraries
63 Summary(pl.UTF-8): Statyczne biblioteki Wayland
64 Group: Development/Libraries
65 Requires: %{name}-devel = %{version}-%{release}
68 Static Wayland libraries.
70 %description static -l pl.UTF-8
71 Statyczne biblioteki Wayland.
74 Summary: Wayland API and protocol documentation
75 Summary(pl.UTF-8): Dokumentacja API biblioteki oraz protokołu Wayland
79 Wayland API and protocol documentation.
81 %description apidocs -l pl.UTF-8
82 Dokumentacja API biblioteki oraz protokołu Wayland.
89 # force regeneration (.so link is broken, double man3/)
99 --disable-silent-rules \
100 %{!?with_static_libs:--disable-static}
105 rm -rf $RPM_BUILD_ROOT
108 DESTDIR=$RPM_BUILD_ROOT
110 # obsoleted by pkg-config
111 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libwayland-*.la
113 # packaged as %doc in -devel
114 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/wayland
118 rm -rf $RPM_BUILD_ROOT
120 %post -p /sbin/ldconfig
121 %postun -p /sbin/ldconfig
124 %defattr(644,root,root,755)
125 %doc COPYING README TODO
126 %attr(755,root,root) %{_libdir}/libwayland-client.so.*.*.*
127 %attr(755,root,root) %ghost %{_libdir}/libwayland-client.so.0
128 %attr(755,root,root) %{_libdir}/libwayland-cursor.so.*.*.*
129 %attr(755,root,root) %ghost %{_libdir}/libwayland-cursor.so.0
130 %attr(755,root,root) %{_libdir}/libwayland-server.so.*.*.*
131 %attr(755,root,root) %ghost %{_libdir}/libwayland-server.so.0
134 %defattr(644,root,root,755)
135 %attr(755,root,root) %{_bindir}/wayland-scanner
136 %attr(755,root,root) %{_libdir}/libwayland-client.so
137 %attr(755,root,root) %{_libdir}/libwayland-cursor.so
138 %attr(755,root,root) %{_libdir}/libwayland-server.so
139 %{_includedir}/wayland-*.h
140 %dir %{_datadir}/wayland
141 %{_datadir}/wayland/wayland-scanner.mk
142 %{_pkgconfigdir}/wayland-client.pc
143 %{_pkgconfigdir}/wayland-cursor.pc
144 %{_pkgconfigdir}/wayland-server.pc
145 %{_npkgconfigdir}/wayland-scanner.pc
146 %{_aclocaldir}/wayland-scanner.m4
147 %{_mandir}/man3/wl_*.3*
149 %if %{with static_libs}
151 %defattr(644,root,root,755)
152 %{_libdir}/libwayland-client.a
153 %{_libdir}/libwayland-cursor.a
154 %{_libdir}/libwayland-server.a
159 %defattr(644,root,root,755)
160 %doc doc/publican/Wayland/en-US/html/*