]>
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 | |
7f5862ae | 9 | Version: 1.3.0 |
3fea3585 | 10 | Release: 1 |
cea843df JB |
11 | License: MIT |
12 | Group: Libraries | |
13 | Source0: http://wayland.freedesktop.org/releases/%{name}-%{version}.tar.xz | |
7f5862ae | 14 | # Source0-md5: d16d27081e0871de82d08840c2f133fc |
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 | |
ceb71059 | 86 | %patch0 -p1 |
a0e72c2c JB |
87 | %patch1 -p1 |
88 | ||
89 | # force regeneration (.so link is broken, double man3/) | |
90 | %{__rm} doc/man/*.3 | |
ceb71059 | 91 | |
cea843df | 92 | %build |
ceb71059 JB |
93 | %{__libtoolize} |
94 | %{__aclocal} -I m4 | |
95 | %{__autoconf} | |
96 | %{__autoheader} | |
97 | %{__automake} | |
cea843df JB |
98 | %configure \ |
99 | --disable-silent-rules \ | |
100 | %{!?with_static_libs:--disable-static} | |
a0e72c2c | 101 | |
cea843df JB |
102 | %{__make} |
103 | ||
104 | %install | |
105 | rm -rf $RPM_BUILD_ROOT | |
106 | ||
107 | %{__make} install \ | |
108 | DESTDIR=$RPM_BUILD_ROOT | |
109 | ||
7f5862ae JB |
110 | # referenced by some installed wl_*.3 man pages |
111 | cp -p doc/doxygen/man/man3/wayland-util.h.3 $RPM_BUILD_ROOT%{_mandir}/man3 | |
112 | ||
cea843df JB |
113 | # obsoleted by pkg-config |
114 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libwayland-*.la | |
00c5e567 JB |
115 | %if %{with apidocs} |
116 | # packaged as %doc in -devel | |
117 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/wayland | |
118 | %endif | |
cea843df JB |
119 | |
120 | %clean | |
121 | rm -rf $RPM_BUILD_ROOT | |
122 | ||
123 | %post -p /sbin/ldconfig | |
124 | %postun -p /sbin/ldconfig | |
125 | ||
126 | %files | |
127 | %defattr(644,root,root,755) | |
cc8accbe | 128 | %doc COPYING README TODO |
cea843df JB |
129 | %attr(755,root,root) %{_libdir}/libwayland-client.so.*.*.* |
130 | %attr(755,root,root) %ghost %{_libdir}/libwayland-client.so.0 | |
cc8accbe JB |
131 | %attr(755,root,root) %{_libdir}/libwayland-cursor.so.*.*.* |
132 | %attr(755,root,root) %ghost %{_libdir}/libwayland-cursor.so.0 | |
cea843df JB |
133 | %attr(755,root,root) %{_libdir}/libwayland-server.so.*.*.* |
134 | %attr(755,root,root) %ghost %{_libdir}/libwayland-server.so.0 | |
135 | ||
136 | %files devel | |
137 | %defattr(644,root,root,755) | |
138 | %attr(755,root,root) %{_bindir}/wayland-scanner | |
139 | %attr(755,root,root) %{_libdir}/libwayland-client.so | |
cc8accbe | 140 | %attr(755,root,root) %{_libdir}/libwayland-cursor.so |
cea843df JB |
141 | %attr(755,root,root) %{_libdir}/libwayland-server.so |
142 | %{_includedir}/wayland-*.h | |
3fea3585 | 143 | %dir %{_datadir}/wayland |
7f5862ae | 144 | %{_datadir}/wayland/wayland.xml |
3fea3585 | 145 | %{_datadir}/wayland/wayland-scanner.mk |
cea843df | 146 | %{_pkgconfigdir}/wayland-client.pc |
cc8accbe | 147 | %{_pkgconfigdir}/wayland-cursor.pc |
cea843df | 148 | %{_pkgconfigdir}/wayland-server.pc |
3fea3585 | 149 | %{_npkgconfigdir}/wayland-scanner.pc |
cea843df | 150 | %{_aclocaldir}/wayland-scanner.m4 |
7f5862ae | 151 | %{_mandir}/man3/wayland-util.h.3* |
3fea3585 | 152 | %{_mandir}/man3/wl_*.3* |
cea843df JB |
153 | |
154 | %if %{with static_libs} | |
155 | %files static | |
156 | %defattr(644,root,root,755) | |
157 | %{_libdir}/libwayland-client.a | |
cc8accbe | 158 | %{_libdir}/libwayland-cursor.a |
cea843df JB |
159 | %{_libdir}/libwayland-server.a |
160 | %endif | |
ceb71059 JB |
161 | |
162 | %if %{with apidocs} | |
163 | %files apidocs | |
164 | %defattr(644,root,root,755) | |
3fea3585 | 165 | %doc doc/publican/Wayland/en-US/html/* |
ceb71059 | 166 | %endif |