]>
Commit | Line | Data |
---|---|---|
cea843df JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static libraries | |
4 | # | |
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 | |
7 | Name: wayland | |
8 | Version: 0.85.0 | |
9 | Release: 1 | |
10 | License: MIT | |
11 | Group: Libraries | |
12 | Source0: http://wayland.freedesktop.org/releases/%{name}-%{version}.tar.xz | |
13 | # Source0-md5: fe3fdfdcc0b20235a113e0e34a665b1c | |
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) | |
20 | ||
21 | %description | |
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. | |
28 | ||
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 | |
36 | wyświetlające. | |
37 | ||
38 | %package devel | |
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 | |
44 | ||
45 | %description devel | |
46 | Header files for Wayland libraries. | |
47 | ||
48 | %description devel -l pl.UTF-8 | |
49 | Pliki nagłówkowe bibliotek Wayland. | |
50 | ||
51 | %package static | |
52 | Summary: Static Wayland libraries | |
53 | Summary(pl.UTF-8): Statyczne biblioteki Wayland | |
54 | Group: Development/Libraries | |
55 | Requires: %{name}-devel = %{version}-%{release} | |
56 | ||
57 | %description static | |
58 | Static Wayland libraries. | |
59 | ||
60 | %description static -l pl.UTF-8 | |
61 | Statyczne biblioteki Wayland. | |
62 | ||
63 | %prep | |
64 | %setup -q | |
65 | ||
66 | %build | |
67 | %configure \ | |
68 | --disable-silent-rules \ | |
69 | %{!?with_static_libs:--disable-static} | |
70 | %{__make} | |
71 | ||
72 | %install | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %{__make} install \ | |
76 | DESTDIR=$RPM_BUILD_ROOT | |
77 | ||
78 | # obsoleted by pkg-config | |
79 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libwayland-*.la | |
80 | ||
81 | %clean | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %post -p /sbin/ldconfig | |
85 | %postun -p /sbin/ldconfig | |
86 | ||
87 | %files | |
88 | %defattr(644,root,root,755) | |
89 | %doc README TODO | |
90 | %attr(755,root,root) %{_libdir}/libwayland-client.so.*.*.* | |
91 | %attr(755,root,root) %ghost %{_libdir}/libwayland-client.so.0 | |
92 | %attr(755,root,root) %{_libdir}/libwayland-server.so.*.*.* | |
93 | %attr(755,root,root) %ghost %{_libdir}/libwayland-server.so.0 | |
94 | ||
95 | %files devel | |
96 | %defattr(644,root,root,755) | |
97 | %attr(755,root,root) %{_bindir}/wayland-scanner | |
98 | %attr(755,root,root) %{_libdir}/libwayland-client.so | |
99 | %attr(755,root,root) %{_libdir}/libwayland-server.so | |
100 | %{_includedir}/wayland-*.h | |
101 | %{_pkgconfigdir}/wayland-client.pc | |
102 | %{_pkgconfigdir}/wayland-server.pc | |
103 | %{_aclocaldir}/wayland-scanner.m4 | |
104 | %{_aclocaldir}/wayland-scanner.mk | |
105 | ||
106 | %if %{with static_libs} | |
107 | %files static | |
108 | %defattr(644,root,root,755) | |
109 | %{_libdir}/libwayland-client.a | |
110 | %{_libdir}/libwayland-server.a | |
111 | %endif |