]>
Commit | Line | Data |
---|---|---|
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 |
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 | |
8 | Name: wayland | |
5f1528e5 | 9 | Version: 1.12.0 |
46455885 | 10 | Release: 1 |
cea843df JB |
11 | License: MIT |
12 | Group: Libraries | |
1cdf5666 | 13 | Source0: https://wayland.freedesktop.org/releases/%{name}-%{version}.tar.xz |
5f1528e5 | 14 | # Source0-md5: ee615e2d1e205eec48b02f069327eb96 |
a0e72c2c | 15 | Patch1: %{name}-man.patch |
1cdf5666 | 16 | URL: https://wayland.freedesktop.org/ |
ceb71059 JB |
17 | BuildRequires: autoconf >= 2.64 |
18 | BuildRequires: automake >= 1:1.11 | |
4dab03e1 | 19 | BuildRequires: expat-devel >= 1.95 |
73f3d2c8 | 20 | BuildRequires: libffi-devel >= 3 |
ceb71059 | 21 | BuildRequires: libtool >= 2:2.2 |
6a832efc JB |
22 | # for DTD valudation |
23 | BuildRequires: libxml2-devel >= 2.0 | |
cea843df | 24 | BuildRequires: pkgconfig |
73f3d2c8 JB |
25 | %if %{with apidocs} |
26 | BuildRequires: docbook-style-xsl | |
27 | BuildRequires: doxygen >= 1.6.0 | |
28 | BuildRequires: graphviz >= 2.26.0 | |
29 | BuildRequires: libxslt-progs | |
30 | BuildRequires: xmlto | |
31 | %endif | |
cea843df JB |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
33 | ||
34 | %description | |
35 | Wayland is a project to define a protocol for a compositor to talk to | |
36 | its clients as well as a library implementation of the protocol. The | |
37 | compositor can be a standalone display server running on Linux kernel | |
38 | modesetting and evdev input devices, an X application, or a Wayland | |
39 | client itself. The clients can be traditional applications, X servers | |
40 | (rootless or fullscreen) or other display servers. | |
41 | ||
42 | %description -l pl.UTF-8 | |
43 | Wayland to projekt definiujący protokół między serwerem składającym a | |
44 | klientami, a także biblioteki implementujące ten protokół. Serwer | |
45 | składający może być samodzielnym serwerem wyświetlającym działającym | |
46 | na linuksowym kernel modesetting oraz urządzeniach wejściowych evdev, | |
47 | aplikacją X lub klientem Wayland. Klientami mogą być tradycyjne | |
48 | aplikacje, serwery X (rootless lub pełnoekranowe) lub inne serwery | |
49 | wyświetlające. | |
50 | ||
51 | %package devel | |
52 | Summary: Header files for Wayland libraries | |
53 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Wayland | |
54 | Group: Development/Libraries | |
55 | Requires: %{name} = %{version}-%{release} | |
56 | Requires: libffi-devel | |
57 | ||
58 | %description devel | |
59 | Header files for Wayland libraries. | |
60 | ||
61 | %description devel -l pl.UTF-8 | |
62 | Pliki nagłówkowe bibliotek Wayland. | |
63 | ||
64 | %package static | |
65 | Summary: Static Wayland libraries | |
66 | Summary(pl.UTF-8): Statyczne biblioteki Wayland | |
67 | Group: Development/Libraries | |
68 | Requires: %{name}-devel = %{version}-%{release} | |
69 | ||
70 | %description static | |
71 | Static Wayland libraries. | |
72 | ||
73 | %description static -l pl.UTF-8 | |
74 | Statyczne biblioteki Wayland. | |
75 | ||
ceb71059 JB |
76 | %package apidocs |
77 | Summary: Wayland API and protocol documentation | |
78 | Summary(pl.UTF-8): Dokumentacja API biblioteki oraz protokołu Wayland | |
79 | Group: Documentation | |
74a7acfb ER |
80 | %if "%{_rpmversion}" >= "5" |
81 | BuildArch: noarch | |
82 | %endif | |
ceb71059 JB |
83 | |
84 | %description apidocs | |
85 | Wayland API and protocol documentation. | |
86 | ||
87 | %description apidocs -l pl.UTF-8 | |
88 | Dokumentacja API biblioteki oraz protokołu Wayland. | |
89 | ||
cea843df JB |
90 | %prep |
91 | %setup -q | |
a0e72c2c JB |
92 | %patch1 -p1 |
93 | ||
94 | # force regeneration (.so link is broken, double man3/) | |
95 | %{__rm} doc/man/*.3 | |
ceb71059 | 96 | |
cea843df | 97 | %build |
ceb71059 JB |
98 | %{__libtoolize} |
99 | %{__aclocal} -I m4 | |
100 | %{__autoconf} | |
101 | %{__autoheader} | |
102 | %{__automake} | |
cea843df | 103 | %configure \ |
73f3d2c8 | 104 | %{!?with_apidocs:--disable-documentation} \ |
cea843df JB |
105 | --disable-silent-rules \ |
106 | %{!?with_static_libs:--disable-static} | |
a0e72c2c | 107 | |
cea843df JB |
108 | %{__make} |
109 | ||
110 | %install | |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | ||
113 | %{__make} install \ | |
114 | DESTDIR=$RPM_BUILD_ROOT | |
115 | ||
7f5862ae | 116 | # referenced by some installed wl_*.3 man pages |
6a832efc JB |
117 | cp -p doc/doxygen/man/man3/wayland-{client-core,server,server-core,util}.h.3 \ |
118 | doc/doxygen/man/man3/wayland-{client,server,shm,util}.c.3 $RPM_BUILD_ROOT%{_mandir}/man3 | |
7f5862ae | 119 | |
cea843df JB |
120 | # obsoleted by pkg-config |
121 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libwayland-*.la | |
00c5e567 JB |
122 | %if %{with apidocs} |
123 | # packaged as %doc in -devel | |
124 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/wayland | |
125 | %endif | |
cea843df JB |
126 | |
127 | %clean | |
128 | rm -rf $RPM_BUILD_ROOT | |
129 | ||
130 | %post -p /sbin/ldconfig | |
131 | %postun -p /sbin/ldconfig | |
132 | ||
133 | %files | |
134 | %defattr(644,root,root,755) | |
cc8accbe | 135 | %doc COPYING README TODO |
cea843df JB |
136 | %attr(755,root,root) %{_libdir}/libwayland-client.so.*.*.* |
137 | %attr(755,root,root) %ghost %{_libdir}/libwayland-client.so.0 | |
cc8accbe JB |
138 | %attr(755,root,root) %{_libdir}/libwayland-cursor.so.*.*.* |
139 | %attr(755,root,root) %ghost %{_libdir}/libwayland-cursor.so.0 | |
cea843df JB |
140 | %attr(755,root,root) %{_libdir}/libwayland-server.so.*.*.* |
141 | %attr(755,root,root) %ghost %{_libdir}/libwayland-server.so.0 | |
142 | ||
143 | %files devel | |
144 | %defattr(644,root,root,755) | |
145 | %attr(755,root,root) %{_bindir}/wayland-scanner | |
146 | %attr(755,root,root) %{_libdir}/libwayland-client.so | |
cc8accbe | 147 | %attr(755,root,root) %{_libdir}/libwayland-cursor.so |
cea843df JB |
148 | %attr(755,root,root) %{_libdir}/libwayland-server.so |
149 | %{_includedir}/wayland-*.h | |
3fea3585 | 150 | %dir %{_datadir}/wayland |
d5e44717 | 151 | %{_datadir}/wayland/wayland.dtd |
7f5862ae | 152 | %{_datadir}/wayland/wayland.xml |
3fea3585 | 153 | %{_datadir}/wayland/wayland-scanner.mk |
cea843df | 154 | %{_pkgconfigdir}/wayland-client.pc |
cc8accbe | 155 | %{_pkgconfigdir}/wayland-cursor.pc |
dbb3e8d2 | 156 | %{_pkgconfigdir}/wayland-scanner.pc |
cea843df JB |
157 | %{_pkgconfigdir}/wayland-server.pc |
158 | %{_aclocaldir}/wayland-scanner.m4 | |
73f3d2c8 | 159 | %if %{with apidocs} |
6a832efc JB |
160 | %{_mandir}/man3/wayland-*.c.3* |
161 | %{_mandir}/man3/wayland-*.h.3* | |
3fea3585 | 162 | %{_mandir}/man3/wl_*.3* |
73f3d2c8 | 163 | %endif |
cea843df JB |
164 | |
165 | %if %{with static_libs} | |
166 | %files static | |
167 | %defattr(644,root,root,755) | |
168 | %{_libdir}/libwayland-client.a | |
cc8accbe | 169 | %{_libdir}/libwayland-cursor.a |
cea843df JB |
170 | %{_libdir}/libwayland-server.a |
171 | %endif | |
ceb71059 JB |
172 | |
173 | %if %{with apidocs} | |
174 | %files apidocs | |
175 | %defattr(644,root,root,755) | |
3fea3585 | 176 | %doc doc/publican/Wayland/en-US/html/* |
ceb71059 | 177 | %endif |