]>
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 | |
6040c303 | 9 | Version: 1.0.6 |
c875f161 | 10 | Release: 2 |
cea843df JB |
11 | License: MIT |
12 | Group: Libraries | |
13 | Source0: http://wayland.freedesktop.org/releases/%{name}-%{version}.tar.xz | |
6040c303 | 14 | # Source0-md5: 936a2590aea69fa3c0cf234d54b9137c |
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 |
cea843df JB |
22 | BuildRequires: expat-devel |
23 | BuildRequires: libffi-devel | |
ceb71059 JB |
24 | BuildRequires: libtool >= 2:2.2 |
25 | BuildRequires: libxslt-progs | |
cea843df JB |
26 | BuildRequires: pkgconfig |
27 | BuildRequires: pkgconfig(libffi) | |
ceb71059 | 28 | %{?with_apidocs:BuildRequires: publican >= 3} |
cea843df JB |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
30 | ||
31 | %description | |
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. | |
38 | ||
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 | |
46 | wyświetlające. | |
47 | ||
48 | %package devel | |
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 | |
54 | ||
55 | %description devel | |
56 | Header files for Wayland libraries. | |
57 | ||
58 | %description devel -l pl.UTF-8 | |
59 | Pliki nagłówkowe bibliotek Wayland. | |
60 | ||
61 | %package static | |
62 | Summary: Static Wayland libraries | |
63 | Summary(pl.UTF-8): Statyczne biblioteki Wayland | |
64 | Group: Development/Libraries | |
65 | Requires: %{name}-devel = %{version}-%{release} | |
66 | ||
67 | %description static | |
68 | Static Wayland libraries. | |
69 | ||
70 | %description static -l pl.UTF-8 | |
71 | Statyczne biblioteki Wayland. | |
72 | ||
ceb71059 JB |
73 | %package apidocs |
74 | Summary: Wayland API and protocol documentation | |
75 | Summary(pl.UTF-8): Dokumentacja API biblioteki oraz protokołu Wayland | |
76 | Group: Documentation | |
77 | ||
78 | %description apidocs | |
79 | Wayland API and protocol documentation. | |
80 | ||
81 | %description apidocs -l pl.UTF-8 | |
82 | Dokumentacja API biblioteki oraz protokołu Wayland. | |
83 | ||
cea843df JB |
84 | %prep |
85 | %setup -q | |
86 | ||
ceb71059 JB |
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 | |
89 | ||
90 | %patch0 -p1 | |
a0e72c2c JB |
91 | %patch1 -p1 |
92 | ||
93 | # force regeneration (.so link is broken, double man3/) | |
94 | %{__rm} doc/man/*.3 | |
ceb71059 | 95 | |
cea843df | 96 | %build |
ceb71059 JB |
97 | %{__libtoolize} |
98 | %{__aclocal} -I m4 | |
99 | %{__autoconf} | |
100 | %{__autoheader} | |
101 | %{__automake} | |
cea843df JB |
102 | %configure \ |
103 | --disable-silent-rules \ | |
104 | %{!?with_static_libs:--disable-static} | |
a0e72c2c | 105 | |
cea843df JB |
106 | %{__make} |
107 | ||
108 | %install | |
109 | rm -rf $RPM_BUILD_ROOT | |
110 | ||
111 | %{__make} install \ | |
112 | DESTDIR=$RPM_BUILD_ROOT | |
113 | ||
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 | |
144 | %{_pkgconfigdir}/wayland-client.pc | |
cc8accbe | 145 | %{_pkgconfigdir}/wayland-cursor.pc |
cea843df JB |
146 | %{_pkgconfigdir}/wayland-server.pc |
147 | %{_aclocaldir}/wayland-scanner.m4 | |
148 | %{_aclocaldir}/wayland-scanner.mk | |
ceb71059 JB |
149 | %{_mandir}/man3/wl_display_connect.3* |
150 | %{_mandir}/man3/wl_display_connect_to_fd* | |
cea843df JB |
151 | |
152 | %if %{with static_libs} | |
153 | %files static | |
154 | %defattr(644,root,root,755) | |
155 | %{_libdir}/libwayland-client.a | |
cc8accbe | 156 | %{_libdir}/libwayland-cursor.a |
cea843df JB |
157 | %{_libdir}/libwayland-server.a |
158 | %endif | |
ceb71059 JB |
159 | |
160 | %if %{with apidocs} | |
161 | %files apidocs | |
162 | %defattr(644,root,root,755) | |
163 | %doc doc/Wayland/Wayland/en-US/html/* | |
164 | %endif |