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: 936a2590aea69fa3c0cf234d54b9137c
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.
87 # this file is required by publican 3.0; publican patch adds it in en-US dir
88 test ! -f doc/Wayland/en_US/Revision_History.xml
93 # force regeneration (.so link is broken, double man3/)
103 --disable-silent-rules \
104 %{!?with_static_libs:--disable-static}
109 rm -rf $RPM_BUILD_ROOT
112 DESTDIR=$RPM_BUILD_ROOT
114 # obsoleted by pkg-config
115 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libwayland-*.la
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 %{_pkgconfigdir}/wayland-client.pc
141 %{_pkgconfigdir}/wayland-cursor.pc
142 %{_pkgconfigdir}/wayland-server.pc
143 %{_aclocaldir}/wayland-scanner.m4
144 %{_aclocaldir}/wayland-scanner.mk
145 %{_mandir}/man3/wl_display_connect.3*
146 %{_mandir}/man3/wl_display_connect_to_fd*
148 %if %{with static_libs}
150 %defattr(644,root,root,755)
151 %{_libdir}/libwayland-client.a
152 %{_libdir}/libwayland-cursor.a
153 %{_libdir}/libwayland-server.a
158 %defattr(644,root,root,755)
159 %doc doc/Wayland/Wayland/en-US/html/*