]>
Commit | Line | Data |
---|---|---|
8a78122d JB |
1 | # |
2 | # Conditional build: | |
4f9d6108 JP |
3 | %bcond_without static_libs # static libraries |
4 | %bcond_without tests # check target | |
8a78122d | 5 | # |
3c06e5aa JB |
6 | Summary: xkbcommon library - keymap compiler and support library |
7 | Summary(pl.UTF-8): Biblioteka xkbcommon - kompilatora i obsługi map klawiszy | |
8 | Name: xorg-lib-libxkbcommon | |
86dc302a | 9 | Version: 1.7.0 |
8a78122d | 10 | Release: 1 |
3c06e5aa JB |
11 | License: MIT |
12 | Group: X11/Libraries | |
8a78122d | 13 | Source0: https://xkbcommon.org/download/libxkbcommon-%{version}.tar.xz |
86dc302a | 14 | # Source0-md5: b05b1a0d473189efb2dd995dd944f152 |
8a78122d | 15 | URL: https://xkbcommon.org/ |
22e0e9f7 | 16 | BuildRequires: bison >= 2.4 |
2f7b0749 | 17 | BuildRequires: doxygen |
3c06e5aa | 18 | BuildRequires: flex |
74ae5d3e | 19 | BuildRequires: libstdc++-devel >= 6:4.8.1 |
84154661 | 20 | BuildRequires: libxcb-devel >= 1.10 |
234387a4 | 21 | BuildRequires: libxml2-devel >= 2.0 |
22e0e9f7 | 22 | BuildRequires: meson >= 0.52.0 |
234387a4 | 23 | BuildRequires: ninja >= 1.5 |
3c06e5aa | 24 | BuildRequires: pkgconfig >= 1:0.19 |
234387a4 | 25 | BuildRequires: rpm-build >= 4.6 |
c5e5e92b | 26 | BuildRequires: rpmbuild(macros) >= 1.752 |
ee50463d | 27 | BuildRequires: tar >= 1:1.22 |
234387a4 JB |
28 | # wayland-client, wayland-scanner |
29 | BuildRequires: wayland-devel >= 1.2.0 | |
30 | BuildRequires: wayland-protocols >= 1.12 | |
ee50463d | 31 | BuildRequires: xz |
8a78122d | 32 | %if %{with tests} |
8a78122d JB |
33 | BuildRequires: xorg-app-xkbcomp |
34 | BuildRequires: xorg-xserver-Xvfb | |
35 | %endif | |
3c06e5aa JB |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
38 | %description | |
39 | libxkbcommon is a keymap compiler and support library which processes | |
40 | a reduced subset of keymaps as defined by the XKB specification. | |
41 | ||
42 | %description -l pl.UTF-8 | |
43 | libxkbcommon to biblioteka kompilatora i obsługi map klawiszy, | |
44 | przetwarzająca ograniczony podzbiór map klawiszy zdefiniowanych w | |
45 | specyfikacji XKB. | |
46 | ||
47 | %package devel | |
48 | Summary: Header files for libxkbcommon library | |
49 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libxkbcommon | |
50 | Group: X11/Development/Libraries | |
51 | Requires: %{name} = %{version}-%{release} | |
52 | ||
53 | %description devel | |
3c06e5aa JB |
54 | This package contains the header files needed to develop programs that |
55 | use libxkbcommon. | |
56 | ||
57 | %description devel -l pl.UTF-8 | |
3c06e5aa JB |
58 | Pakiet zawiera pliki nagłówkowe niezbędne do kompilowania programów |
59 | używających biblioteki libxkbcommon. | |
60 | ||
61 | %package static | |
62 | Summary: Static libxkbcommon library | |
63 | Summary(pl.UTF-8): Biblioteka statyczna libxkbcommon | |
64 | Group: X11/Development/Libraries | |
65 | Requires: %{name}-devel = %{version}-%{release} | |
66 | ||
67 | %description static | |
3c06e5aa JB |
68 | This package contains the static libxkbcommon library. |
69 | ||
70 | %description static -l pl.UTF-8 | |
3c06e5aa JB |
71 | Pakiet zawiera statyczną bibliotekę libxkbcommon. |
72 | ||
b84838e0 JP |
73 | %package tools |
74 | Summary: Tools to interact with XKB keymaps | |
75 | Summary(pl.UTF-8): Narzędzia do współpracy z mapowaniami klawiszy XKB | |
76 | Group: Applications | |
77 | Requires: %{name} = %{version}-%{release} | |
78 | Requires: %{name}-x11 = %{version}-%{release} | |
79 | Requires: libxkbregistry = %{version}-%{release} | |
234387a4 | 80 | Requires: wayland >= 1.2.0 |
b84838e0 JP |
81 | |
82 | %description tools | |
83 | Tools to interact with XKB keymaps. | |
84 | ||
85 | %description tools -l pl.UTF-8 | |
86 | Narzędzia do współpracy z mapowaniami klawiszy XKB. | |
87 | ||
84154661 JB |
88 | %package x11 |
89 | Summary: X11 support for XKB library | |
90 | Summary(pl.UTF-8): Obsługa X11 dla biblioteki XKB | |
91 | Group: X11/Libraries | |
92 | Requires: %{name} = %{version}-%{release} | |
93 | Requires: libxcb >= 1.10 | |
94 | ||
95 | %description x11 | |
96 | X11 support for XKB library. | |
97 | ||
98 | %description x11 -l pl.UTF-8 | |
99 | Obsługa X11 dla biblioteki XKB. | |
100 | ||
101 | %package x11-devel | |
102 | Summary: Header file for libxkbcommon-x11 library | |
103 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki libxkbcommon-x11 | |
104 | Group: X11/Development/Libraries | |
105 | Requires: %{name}-devel = %{version}-%{release} | |
106 | Requires: %{name}-x11 = %{version}-%{release} | |
107 | Requires: libxcb-devel >= 1.10 | |
108 | ||
109 | %description x11-devel | |
110 | Header file for libxkbcommon-x11 library. | |
111 | ||
112 | %description x11-devel -l pl.UTF-8 | |
113 | Plik nagłówkowy biblioteki libxkbcommon-x11. | |
114 | ||
115 | %package x11-static | |
116 | Summary: Static libxkbcommon-x11 library | |
117 | Summary(pl.UTF-8): Statyczna biblioteka libxkbcommon-x11 | |
118 | Group: X11/Development/Libraries | |
119 | Requires: %{name}-x11-devel = %{version}-%{release} | |
120 | ||
121 | %description x11-static | |
122 | Static libxkbcommon-x11 library. | |
123 | ||
124 | %description x11-static -l pl.UTF-8 | |
125 | Statyczna biblioteka libxkbcommon-x11. | |
126 | ||
127 | %package apidocs | |
128 | Summary: API documentation for libxkbcommon libraries | |
129 | Summary(pl.UTF-8): Dokumentacja API bibliotek libxkbcommon | |
130 | Group: Documentation | |
67971d54 | 131 | BuildArch: noarch |
84154661 JB |
132 | |
133 | %description apidocs | |
134 | API documentation for libxkbcommon libraries. | |
135 | ||
136 | %description apidocs -l pl.UTF-8 | |
137 | Dokumentacja API bibliotek libxkbcommon. | |
138 | ||
b84838e0 JP |
139 | %package -n libxkbregistry |
140 | Summary: Library to query available RMLVO | |
141 | Summary(pl.UTF-8): Biblioteka do odpytywania dostępnych RMLVO | |
142 | Group: Development/Libraries | |
234387a4 | 143 | Requires: libxml2 >= 2.0 |
b84838e0 JP |
144 | |
145 | %description -n libxkbregistry | |
146 | Library to query available RMLVO. | |
147 | ||
148 | %description -n libxkbregistry -l pl.UTF-8 | |
149 | Biblioteka do odpytywania dostępnych RMLVO. | |
150 | ||
151 | %package -n libxkbregistry-devel | |
152 | Summary: Header files for libxkbregistry library | |
153 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libxkbregistry | |
154 | Group: Development/Libraries | |
155 | Requires: libxkbregistry = %{version}-%{release} | |
234387a4 | 156 | Requires: libxml2-devel >= 2.0 |
b84838e0 JP |
157 | |
158 | %description -n libxkbregistry-devel | |
159 | This package contains the header files needed to develop programs that | |
160 | use libxkbregistry. | |
161 | ||
162 | %description -n libxkbregistry-devel -l pl.UTF-8 | |
163 | Pakiet zawiera pliki nagłówkowe niezbędne do kompilowania programów | |
164 | używających biblioteki libxkbregistry. | |
165 | ||
166 | %package -n libxkbregistry-static | |
167 | Summary: Static libxkbregistry library | |
168 | Summary(pl.UTF-8): Biblioteka statyczna libxkbregistry | |
169 | Group: Development/Libraries | |
170 | Requires: libxkbregistry-devel = %{version}-%{release} | |
171 | ||
172 | %description -n libxkbregistry-static | |
173 | This package contains the static libxkbregistry library. | |
174 | ||
175 | %description -n libxkbregistry-static -l pl.UTF-8 | |
176 | Pakiet zawiera statyczną bibliotekę libxkbregistry. | |
177 | ||
3c06e5aa | 178 | %prep |
078cae60 | 179 | %setup -q -n libxkbcommon-%{version} |
3c06e5aa JB |
180 | |
181 | %build | |
22e0e9f7 | 182 | %meson build \ |
4f9d6108 | 183 | %{!?with_static_libs:--default-library=shared} \ |
86dc302a JP |
184 | -Dbash-completion-path=%{bash_compdir} \ |
185 | -Denable-docs=true | |
3c06e5aa | 186 | |
62afe182 | 187 | %ninja_build -C build |
3c06e5aa | 188 | |
8a78122d | 189 | %if %{with tests} |
62afe182 | 190 | %ninja_test -C build |
8a78122d JB |
191 | %endif |
192 | ||
3c06e5aa JB |
193 | %install |
194 | rm -rf $RPM_BUILD_ROOT | |
195 | ||
62afe182 | 196 | %ninja_install -C build |
3c06e5aa | 197 | |
84154661 | 198 | # packaged as %doc in -apidocs |
2f7b0749 | 199 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libxkbcommon |
3c06e5aa JB |
200 | |
201 | %clean | |
202 | rm -rf $RPM_BUILD_ROOT | |
203 | ||
204 | %post -p /sbin/ldconfig | |
205 | %postun -p /sbin/ldconfig | |
206 | ||
84154661 JB |
207 | %post x11 -p /sbin/ldconfig |
208 | %postun x11 -p /sbin/ldconfig | |
209 | ||
b84838e0 JP |
210 | %post -n libxkbregistry -p /sbin/ldconfig |
211 | %postun -n libxkbregistry -p /sbin/ldconfig | |
212 | ||
3c06e5aa JB |
213 | %files |
214 | %defattr(644,root,root,755) | |
86dc302a | 215 | %doc LICENSE NEWS.md README.md |
3c06e5aa JB |
216 | %attr(755,root,root) %{_libdir}/libxkbcommon.so.*.*.* |
217 | %attr(755,root,root) %ghost %{_libdir}/libxkbcommon.so.0 | |
218 | ||
219 | %files devel | |
220 | %defattr(644,root,root,755) | |
221 | %attr(755,root,root) %{_libdir}/libxkbcommon.so | |
84154661 JB |
222 | %dir %{_includedir}/xkbcommon |
223 | %{_includedir}/xkbcommon/xkbcommon.h | |
224 | %{_includedir}/xkbcommon/xkbcommon-compat.h | |
d38015c1 | 225 | %{_includedir}/xkbcommon/xkbcommon-compose.h |
84154661 JB |
226 | %{_includedir}/xkbcommon/xkbcommon-keysyms.h |
227 | %{_includedir}/xkbcommon/xkbcommon-names.h | |
3c06e5aa JB |
228 | %{_pkgconfigdir}/xkbcommon.pc |
229 | ||
4f9d6108 | 230 | %if %{with static_libs} |
3c06e5aa JB |
231 | %files static |
232 | %defattr(644,root,root,755) | |
233 | %{_libdir}/libxkbcommon.a | |
4f9d6108 | 234 | %endif |
84154661 | 235 | |
b84838e0 JP |
236 | %files tools |
237 | %defattr(644,root,root,755) | |
238 | %attr(755,root,root) %{_bindir}/xkbcli | |
239 | %dir %{_libexecdir}/xkbcommon | |
86dc302a | 240 | %attr(755,root,root) %{_libexecdir}/xkbcommon/xkbcli-compile-compose |
b84838e0 JP |
241 | %attr(755,root,root) %{_libexecdir}/xkbcommon/xkbcli-compile-keymap |
242 | %attr(755,root,root) %{_libexecdir}/xkbcommon/xkbcli-how-to-type | |
243 | %attr(755,root,root) %{_libexecdir}/xkbcommon/xkbcli-interactive-evdev | |
244 | %attr(755,root,root) %{_libexecdir}/xkbcommon/xkbcli-interactive-wayland | |
245 | %attr(755,root,root) %{_libexecdir}/xkbcommon/xkbcli-interactive-x11 | |
246 | %attr(755,root,root) %{_libexecdir}/xkbcommon/xkbcli-list | |
247 | %{_mandir}/man1/xkbcli.1* | |
86dc302a | 248 | %{_mandir}/man1/xkbcli-compile-compose.1* |
b84838e0 JP |
249 | %{_mandir}/man1/xkbcli-compile-keymap.1* |
250 | %{_mandir}/man1/xkbcli-how-to-type.1* | |
251 | %{_mandir}/man1/xkbcli-interactive-evdev.1* | |
252 | %{_mandir}/man1/xkbcli-interactive-wayland.1* | |
253 | %{_mandir}/man1/xkbcli-interactive-x11.1* | |
254 | %{_mandir}/man1/xkbcli-list.1* | |
22e0e9f7 | 255 | %{bash_compdir}/xkbcli |
b84838e0 | 256 | |
84154661 JB |
257 | %files x11 |
258 | %defattr(644,root,root,755) | |
259 | %attr(755,root,root) %{_libdir}/libxkbcommon-x11.so.*.*.* | |
260 | %attr(755,root,root) %ghost %{_libdir}/libxkbcommon-x11.so.0 | |
261 | ||
262 | %files x11-devel | |
263 | %defattr(644,root,root,755) | |
264 | %attr(755,root,root) %{_libdir}/libxkbcommon-x11.so | |
265 | %{_includedir}/xkbcommon/xkbcommon-x11.h | |
266 | %{_pkgconfigdir}/xkbcommon-x11.pc | |
267 | ||
4f9d6108 | 268 | %if %{with static_libs} |
84154661 JB |
269 | %files x11-static |
270 | %defattr(644,root,root,755) | |
271 | %{_libdir}/libxkbcommon-x11.a | |
4f9d6108 | 272 | %endif |
84154661 JB |
273 | |
274 | %files apidocs | |
275 | %defattr(644,root,root,755) | |
62afe182 | 276 | %doc build/html/* |
b84838e0 JP |
277 | |
278 | %files -n libxkbregistry | |
279 | %defattr(644,root,root,755) | |
280 | %attr(755,root,root) %{_libdir}/libxkbregistry.so.*.*.* | |
281 | %attr(755,root,root) %ghost %{_libdir}/libxkbregistry.so.0 | |
282 | ||
283 | %files -n libxkbregistry-devel | |
284 | %defattr(644,root,root,755) | |
285 | %attr(755,root,root) %{_libdir}/libxkbregistry.so | |
286 | %{_includedir}/xkbcommon/xkbregistry.h | |
287 | %{_pkgconfigdir}/xkbregistry.pc | |
288 | ||
4f9d6108 | 289 | %if %{with static_libs} |
b84838e0 JP |
290 | %files -n libxkbregistry-static |
291 | %defattr(644,root,root,755) | |
292 | %{_libdir}/libxkbregistry.a | |
4f9d6108 | 293 | %endif |