3 %bcond_without static_libs # don't build static libraries
5 Summary: Wayland - protocol for a compositor to talk to its clients
6 Summary(pl.UTF-8): Wayland - protokół między serwerem składającym a klientami
12 Source0: http://wayland.freedesktop.org/releases/%{name}-%{version}.tar.xz
13 # Source0-md5: 23d6bcd500db9d1bb13e9b89722331dc
14 URL: http://wayland.freedesktop.org/
15 BuildRequires: expat-devel
16 BuildRequires: libffi-devel
17 BuildRequires: pkgconfig
18 BuildRequires: pkgconfig(libffi)
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Wayland is a project to define a protocol for a compositor to talk to
23 its clients as well as a library implementation of the protocol. The
24 compositor can be a standalone display server running on Linux kernel
25 modesetting and evdev input devices, an X application, or a Wayland
26 client itself. The clients can be traditional applications, X servers
27 (rootless or fullscreen) or other display servers.
29 %description -l pl.UTF-8
30 Wayland to projekt definiujący protokół między serwerem składającym a
31 klientami, a także biblioteki implementujące ten protokół. Serwer
32 składający może być samodzielnym serwerem wyświetlającym działającym
33 na linuksowym kernel modesetting oraz urządzeniach wejściowych evdev,
34 aplikacją X lub klientem Wayland. Klientami mogą być tradycyjne
35 aplikacje, serwery X (rootless lub pełnoekranowe) lub inne serwery
39 Summary: Header files for Wayland libraries
40 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Wayland
41 Group: Development/Libraries
42 Requires: %{name} = %{version}-%{release}
43 Requires: libffi-devel
46 Header files for Wayland libraries.
48 %description devel -l pl.UTF-8
49 Pliki nagłówkowe bibliotek Wayland.
52 Summary: Static Wayland libraries
53 Summary(pl.UTF-8): Statyczne biblioteki Wayland
54 Group: Development/Libraries
55 Requires: %{name}-devel = %{version}-%{release}
58 Static Wayland libraries.
60 %description static -l pl.UTF-8
61 Statyczne biblioteki Wayland.
68 --disable-silent-rules \
69 %{!?with_static_libs:--disable-static}
73 rm -rf $RPM_BUILD_ROOT
76 DESTDIR=$RPM_BUILD_ROOT
78 # obsoleted by pkg-config
79 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libwayland-*.la
80 # packaged as %doc in -devel
81 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/wayland
84 rm -rf $RPM_BUILD_ROOT
86 %post -p /sbin/ldconfig
87 %postun -p /sbin/ldconfig
90 %defattr(644,root,root,755)
91 %doc COPYING README TODO
92 %attr(755,root,root) %{_libdir}/libwayland-client.so.*.*.*
93 %attr(755,root,root) %ghost %{_libdir}/libwayland-client.so.0
94 %attr(755,root,root) %{_libdir}/libwayland-cursor.so.*.*.*
95 %attr(755,root,root) %ghost %{_libdir}/libwayland-cursor.so.0
96 %attr(755,root,root) %{_libdir}/libwayland-server.so.*.*.*
97 %attr(755,root,root) %ghost %{_libdir}/libwayland-server.so.0
100 %defattr(644,root,root,755)
101 %doc protocol/wayland*.{css,html}
102 %attr(755,root,root) %{_bindir}/wayland-scanner
103 %attr(755,root,root) %{_libdir}/libwayland-client.so
104 %attr(755,root,root) %{_libdir}/libwayland-cursor.so
105 %attr(755,root,root) %{_libdir}/libwayland-server.so
106 %{_includedir}/wayland-*.h
107 %{_pkgconfigdir}/wayland-client.pc
108 %{_pkgconfigdir}/wayland-cursor.pc
109 %{_pkgconfigdir}/wayland-server.pc
110 %{_aclocaldir}/wayland-scanner.m4
111 %{_aclocaldir}/wayland-scanner.mk
113 %if %{with static_libs}
115 %defattr(644,root,root,755)
116 %{_libdir}/libwayland-client.a
117 %{_libdir}/libwayland-cursor.a
118 %{_libdir}/libwayland-server.a