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