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