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