up to 1.3.0
[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
dc0c928a 8Version: 1.3.0
8a78122d 9Release: 1
3c06e5aa
JB
10License: MIT
11Group: X11/Libraries
8a78122d 12Source0: https://xkbcommon.org/download/libxkbcommon-%{version}.tar.xz
dc0c928a 13# Source0-md5: 00b5275ec1309a1d427a645de5861605
8a78122d 14URL: https://xkbcommon.org/
3c06e5aa 15BuildRequires: bison
2f7b0749 16BuildRequires: doxygen
3c06e5aa 17BuildRequires: flex
74ae5d3e 18BuildRequires: libstdc++-devel >= 6:4.8.1
84154661 19BuildRequires: libxcb-devel >= 1.10
234387a4 20BuildRequires: libxml2-devel >= 2.0
b84838e0 21BuildRequires: meson >= 0.49.0
234387a4 22BuildRequires: ninja >= 1.5
3c06e5aa 23BuildRequires: pkgconfig >= 1:0.19
234387a4 24BuildRequires: rpm-build >= 4.6
c5e5e92b 25BuildRequires: rpmbuild(macros) >= 1.752
ee50463d 26BuildRequires: tar >= 1:1.22
234387a4
JB
27# wayland-client, wayland-scanner
28BuildRequires: wayland-devel >= 1.2.0
29BuildRequires: wayland-protocols >= 1.12
ee50463d 30BuildRequires: xz
8a78122d 31%if %{with tests}
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}
234387a4 79Requires: wayland >= 1.2.0
b84838e0
JP
80
81%description tools
82Tools to interact with XKB keymaps.
83
84%description tools -l pl.UTF-8
85Narzędzia do współpracy z mapowaniami klawiszy XKB.
86
84154661
JB
87%package x11
88Summary: X11 support for XKB library
89Summary(pl.UTF-8): Obsługa X11 dla biblioteki XKB
90Group: X11/Libraries
91Requires: %{name} = %{version}-%{release}
92Requires: libxcb >= 1.10
93
94%description x11
95X11 support for XKB library.
96
97%description x11 -l pl.UTF-8
98Obsługa X11 dla biblioteki XKB.
99
100%package x11-devel
101Summary: Header file for libxkbcommon-x11 library
102Summary(pl.UTF-8): Plik nagłówkowy biblioteki libxkbcommon-x11
103Group: X11/Development/Libraries
104Requires: %{name}-devel = %{version}-%{release}
105Requires: %{name}-x11 = %{version}-%{release}
106Requires: libxcb-devel >= 1.10
107
108%description x11-devel
109Header file for libxkbcommon-x11 library.
110
111%description x11-devel -l pl.UTF-8
112Plik nagłówkowy biblioteki libxkbcommon-x11.
113
114%package x11-static
115Summary: Static libxkbcommon-x11 library
116Summary(pl.UTF-8): Statyczna biblioteka libxkbcommon-x11
117Group: X11/Development/Libraries
118Requires: %{name}-x11-devel = %{version}-%{release}
119
120%description x11-static
121Static libxkbcommon-x11 library.
122
123%description x11-static -l pl.UTF-8
124Statyczna biblioteka libxkbcommon-x11.
125
126%package apidocs
127Summary: API documentation for libxkbcommon libraries
128Summary(pl.UTF-8): Dokumentacja API bibliotek libxkbcommon
129Group: Documentation
67971d54 130BuildArch: noarch
84154661
JB
131
132%description apidocs
133API documentation for libxkbcommon libraries.
134
135%description apidocs -l pl.UTF-8
136Dokumentacja API bibliotek libxkbcommon.
137
b84838e0
JP
138%package -n libxkbregistry
139Summary: Library to query available RMLVO
140Summary(pl.UTF-8): Biblioteka do odpytywania dostępnych RMLVO
141Group: Development/Libraries
234387a4 142Requires: libxml2 >= 2.0
b84838e0
JP
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}
234387a4 155Requires: libxml2-devel >= 2.0
b84838e0
JP
156
157%description -n libxkbregistry-devel
158This package contains the header files needed to develop programs that
159use libxkbregistry.
160
161%description -n libxkbregistry-devel -l pl.UTF-8
162Pakiet zawiera pliki nagłówkowe niezbędne do kompilowania programów
163używających biblioteki libxkbregistry.
164
165%package -n libxkbregistry-static
166Summary: Static libxkbregistry library
167Summary(pl.UTF-8): Biblioteka statyczna libxkbregistry
168Group: Development/Libraries
169Requires: libxkbregistry-devel = %{version}-%{release}
170
171%description -n libxkbregistry-static
172This package contains the static libxkbregistry library.
173
174%description -n libxkbregistry-static -l pl.UTF-8
175Pakiet zawiera statyczną bibliotekę libxkbregistry.
176
3c06e5aa 177%prep
078cae60 178%setup -q -n libxkbcommon-%{version}
3c06e5aa
JB
179
180%build
62afe182 181%meson build
3c06e5aa 182
62afe182 183%ninja_build -C build
3c06e5aa 184
8a78122d 185%if %{with tests}
62afe182 186%ninja_test -C build
8a78122d
JB
187%endif
188
3c06e5aa
JB
189%install
190rm -rf $RPM_BUILD_ROOT
191
62afe182 192%ninja_install -C build
3c06e5aa 193
84154661 194# packaged as %doc in -apidocs
2f7b0749 195%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libxkbcommon
3c06e5aa
JB
196
197%clean
198rm -rf $RPM_BUILD_ROOT
199
200%post -p /sbin/ldconfig
201%postun -p /sbin/ldconfig
202
84154661
JB
203%post x11 -p /sbin/ldconfig
204%postun x11 -p /sbin/ldconfig
205
b84838e0
JP
206%post -n libxkbregistry -p /sbin/ldconfig
207%postun -n libxkbregistry -p /sbin/ldconfig
208
3c06e5aa
JB
209%files
210%defattr(644,root,root,755)
8a78122d 211%doc LICENSE NEWS README.md
3c06e5aa
JB
212%attr(755,root,root) %{_libdir}/libxkbcommon.so.*.*.*
213%attr(755,root,root) %ghost %{_libdir}/libxkbcommon.so.0
214
215%files devel
216%defattr(644,root,root,755)
217%attr(755,root,root) %{_libdir}/libxkbcommon.so
84154661
JB
218%dir %{_includedir}/xkbcommon
219%{_includedir}/xkbcommon/xkbcommon.h
220%{_includedir}/xkbcommon/xkbcommon-compat.h
d38015c1 221%{_includedir}/xkbcommon/xkbcommon-compose.h
84154661
JB
222%{_includedir}/xkbcommon/xkbcommon-keysyms.h
223%{_includedir}/xkbcommon/xkbcommon-names.h
3c06e5aa
JB
224%{_pkgconfigdir}/xkbcommon.pc
225
226%files static
227%defattr(644,root,root,755)
228%{_libdir}/libxkbcommon.a
84154661 229
b84838e0
JP
230%files tools
231%defattr(644,root,root,755)
232%attr(755,root,root) %{_bindir}/xkbcli
233%dir %{_libexecdir}/xkbcommon
234%attr(755,root,root) %{_libexecdir}/xkbcommon/xkbcli-compile-keymap
235%attr(755,root,root) %{_libexecdir}/xkbcommon/xkbcli-how-to-type
236%attr(755,root,root) %{_libexecdir}/xkbcommon/xkbcli-interactive-evdev
237%attr(755,root,root) %{_libexecdir}/xkbcommon/xkbcli-interactive-wayland
238%attr(755,root,root) %{_libexecdir}/xkbcommon/xkbcli-interactive-x11
239%attr(755,root,root) %{_libexecdir}/xkbcommon/xkbcli-list
240%{_mandir}/man1/xkbcli.1*
241%{_mandir}/man1/xkbcli-compile-keymap.1*
242%{_mandir}/man1/xkbcli-how-to-type.1*
243%{_mandir}/man1/xkbcli-interactive-evdev.1*
244%{_mandir}/man1/xkbcli-interactive-wayland.1*
245%{_mandir}/man1/xkbcli-interactive-x11.1*
246%{_mandir}/man1/xkbcli-list.1*
247
84154661
JB
248%files x11
249%defattr(644,root,root,755)
250%attr(755,root,root) %{_libdir}/libxkbcommon-x11.so.*.*.*
251%attr(755,root,root) %ghost %{_libdir}/libxkbcommon-x11.so.0
252
253%files x11-devel
254%defattr(644,root,root,755)
255%attr(755,root,root) %{_libdir}/libxkbcommon-x11.so
256%{_includedir}/xkbcommon/xkbcommon-x11.h
257%{_pkgconfigdir}/xkbcommon-x11.pc
258
259%files x11-static
260%defattr(644,root,root,755)
261%{_libdir}/libxkbcommon-x11.a
262
263%files apidocs
264%defattr(644,root,root,755)
62afe182 265%doc build/html/*
b84838e0
JP
266
267%files -n libxkbregistry
268%defattr(644,root,root,755)
269%attr(755,root,root) %{_libdir}/libxkbregistry.so.*.*.*
270%attr(755,root,root) %ghost %{_libdir}/libxkbregistry.so.0
271
272%files -n libxkbregistry-devel
273%defattr(644,root,root,755)
274%attr(755,root,root) %{_libdir}/libxkbregistry.so
275%{_includedir}/xkbcommon/xkbregistry.h
276%{_pkgconfigdir}/xkbregistry.pc
277
278%files -n libxkbregistry-static
279%defattr(644,root,root,755)
280%{_libdir}/libxkbregistry.a
This page took 0.48159 seconds and 4 git commands to generate.