]>
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 | |
62afe182 | 8 | Version: 0.10.0 |
8a78122d | 9 | Release: 1 |
3c06e5aa JB |
10 | License: MIT |
11 | Group: X11/Libraries | |
8a78122d | 12 | Source0: https://xkbcommon.org/download/libxkbcommon-%{version}.tar.xz |
62afe182 | 13 | # Source0-md5: 2d9ad3a46b317138b5e72a91cf105451 |
8a78122d | 14 | URL: https://xkbcommon.org/ |
3c06e5aa | 15 | BuildRequires: bison |
2f7b0749 | 16 | BuildRequires: doxygen |
3c06e5aa | 17 | BuildRequires: flex |
62afe182 | 18 | BuildRequires: meson >= 0.41.0 |
84154661 | 19 | BuildRequires: libxcb-devel >= 1.10 |
3c06e5aa | 20 | BuildRequires: pkgconfig >= 1:0.19 |
62afe182 | 21 | BuildRequires: rpmbuild(macros) >= 1.736 |
ee50463d | 22 | BuildRequires: tar >= 1:1.22 |
3c06e5aa JB |
23 | BuildRequires: xorg-proto-kbproto-devel >= 1.0.4 |
24 | BuildRequires: xorg-proto-xproto-devel | |
ee50463d JB |
25 | BuildRequires: xorg-util-util-macros >= 1.16 |
26 | BuildRequires: xz | |
8a78122d JB |
27 | %if %{with tests} |
28 | # wayland-client, wayland-scanner | |
29 | BuildRequires: wayland-devel >= 1.2 | |
944de38c | 30 | BuildRequires: wayland-protocols >= 1.7 |
8a78122d JB |
31 | BuildRequires: xorg-app-xkbcomp |
32 | BuildRequires: xorg-xserver-Xvfb | |
33 | %endif | |
3c06e5aa JB |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
35 | ||
36 | %description | |
37 | libxkbcommon is a keymap compiler and support library which processes | |
38 | a reduced subset of keymaps as defined by the XKB specification. | |
39 | ||
40 | %description -l pl.UTF-8 | |
41 | libxkbcommon to biblioteka kompilatora i obsługi map klawiszy, | |
42 | przetwarzająca ograniczony podzbiór map klawiszy zdefiniowanych w | |
43 | specyfikacji XKB. | |
44 | ||
45 | %package devel | |
46 | Summary: Header files for libxkbcommon library | |
47 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libxkbcommon | |
48 | Group: X11/Development/Libraries | |
49 | Requires: %{name} = %{version}-%{release} | |
50 | ||
51 | %description devel | |
3c06e5aa JB |
52 | This package contains the header files needed to develop programs that |
53 | use libxkbcommon. | |
54 | ||
55 | %description devel -l pl.UTF-8 | |
3c06e5aa JB |
56 | Pakiet zawiera pliki nagłówkowe niezbędne do kompilowania programów |
57 | używających biblioteki libxkbcommon. | |
58 | ||
59 | %package static | |
60 | Summary: Static libxkbcommon library | |
61 | Summary(pl.UTF-8): Biblioteka statyczna libxkbcommon | |
62 | Group: X11/Development/Libraries | |
63 | Requires: %{name}-devel = %{version}-%{release} | |
64 | ||
65 | %description static | |
3c06e5aa JB |
66 | This package contains the static libxkbcommon library. |
67 | ||
68 | %description static -l pl.UTF-8 | |
3c06e5aa JB |
69 | Pakiet zawiera statyczną bibliotekę libxkbcommon. |
70 | ||
84154661 JB |
71 | %package x11 |
72 | Summary: X11 support for XKB library | |
73 | Summary(pl.UTF-8): Obsługa X11 dla biblioteki XKB | |
74 | Group: X11/Libraries | |
75 | Requires: %{name} = %{version}-%{release} | |
76 | Requires: libxcb >= 1.10 | |
77 | ||
78 | %description x11 | |
79 | X11 support for XKB library. | |
80 | ||
81 | %description x11 -l pl.UTF-8 | |
82 | Obsługa X11 dla biblioteki XKB. | |
83 | ||
84 | %package x11-devel | |
85 | Summary: Header file for libxkbcommon-x11 library | |
86 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki libxkbcommon-x11 | |
87 | Group: X11/Development/Libraries | |
88 | Requires: %{name}-devel = %{version}-%{release} | |
89 | Requires: %{name}-x11 = %{version}-%{release} | |
90 | Requires: libxcb-devel >= 1.10 | |
91 | ||
92 | %description x11-devel | |
93 | Header file for libxkbcommon-x11 library. | |
94 | ||
95 | %description x11-devel -l pl.UTF-8 | |
96 | Plik nagłówkowy biblioteki libxkbcommon-x11. | |
97 | ||
98 | %package x11-static | |
99 | Summary: Static libxkbcommon-x11 library | |
100 | Summary(pl.UTF-8): Statyczna biblioteka libxkbcommon-x11 | |
101 | Group: X11/Development/Libraries | |
102 | Requires: %{name}-x11-devel = %{version}-%{release} | |
103 | ||
104 | %description x11-static | |
105 | Static libxkbcommon-x11 library. | |
106 | ||
107 | %description x11-static -l pl.UTF-8 | |
108 | Statyczna biblioteka libxkbcommon-x11. | |
109 | ||
110 | %package apidocs | |
111 | Summary: API documentation for libxkbcommon libraries | |
112 | Summary(pl.UTF-8): Dokumentacja API bibliotek libxkbcommon | |
113 | Group: Documentation | |
a2323ebd ER |
114 | %if "%{_rpmversion}" >= "5" |
115 | BuildArch: noarch | |
116 | %endif | |
84154661 JB |
117 | |
118 | %description apidocs | |
119 | API documentation for libxkbcommon libraries. | |
120 | ||
121 | %description apidocs -l pl.UTF-8 | |
122 | Dokumentacja API bibliotek libxkbcommon. | |
123 | ||
3c06e5aa | 124 | %prep |
078cae60 | 125 | %setup -q -n libxkbcommon-%{version} |
3c06e5aa JB |
126 | |
127 | %build | |
62afe182 | 128 | %meson build |
3c06e5aa | 129 | |
62afe182 | 130 | %ninja_build -C build |
3c06e5aa | 131 | |
8a78122d | 132 | %if %{with tests} |
62afe182 | 133 | %ninja_test -C build |
8a78122d JB |
134 | %endif |
135 | ||
3c06e5aa JB |
136 | %install |
137 | rm -rf $RPM_BUILD_ROOT | |
138 | ||
62afe182 | 139 | %ninja_install -C build |
3c06e5aa | 140 | |
84154661 | 141 | # packaged as %doc in -apidocs |
2f7b0749 | 142 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libxkbcommon |
3c06e5aa JB |
143 | |
144 | %clean | |
145 | rm -rf $RPM_BUILD_ROOT | |
146 | ||
147 | %post -p /sbin/ldconfig | |
148 | %postun -p /sbin/ldconfig | |
149 | ||
84154661 JB |
150 | %post x11 -p /sbin/ldconfig |
151 | %postun x11 -p /sbin/ldconfig | |
152 | ||
3c06e5aa JB |
153 | %files |
154 | %defattr(644,root,root,755) | |
8a78122d | 155 | %doc LICENSE NEWS README.md |
3c06e5aa JB |
156 | %attr(755,root,root) %{_libdir}/libxkbcommon.so.*.*.* |
157 | %attr(755,root,root) %ghost %{_libdir}/libxkbcommon.so.0 | |
158 | ||
159 | %files devel | |
160 | %defattr(644,root,root,755) | |
161 | %attr(755,root,root) %{_libdir}/libxkbcommon.so | |
84154661 JB |
162 | %dir %{_includedir}/xkbcommon |
163 | %{_includedir}/xkbcommon/xkbcommon.h | |
164 | %{_includedir}/xkbcommon/xkbcommon-compat.h | |
d38015c1 | 165 | %{_includedir}/xkbcommon/xkbcommon-compose.h |
84154661 JB |
166 | %{_includedir}/xkbcommon/xkbcommon-keysyms.h |
167 | %{_includedir}/xkbcommon/xkbcommon-names.h | |
3c06e5aa JB |
168 | %{_pkgconfigdir}/xkbcommon.pc |
169 | ||
170 | %files static | |
171 | %defattr(644,root,root,755) | |
172 | %{_libdir}/libxkbcommon.a | |
84154661 JB |
173 | |
174 | %files x11 | |
175 | %defattr(644,root,root,755) | |
176 | %attr(755,root,root) %{_libdir}/libxkbcommon-x11.so.*.*.* | |
177 | %attr(755,root,root) %ghost %{_libdir}/libxkbcommon-x11.so.0 | |
178 | ||
179 | %files x11-devel | |
180 | %defattr(644,root,root,755) | |
181 | %attr(755,root,root) %{_libdir}/libxkbcommon-x11.so | |
182 | %{_includedir}/xkbcommon/xkbcommon-x11.h | |
183 | %{_pkgconfigdir}/xkbcommon-x11.pc | |
184 | ||
185 | %files x11-static | |
186 | %defattr(644,root,root,755) | |
187 | %{_libdir}/libxkbcommon-x11.a | |
188 | ||
189 | %files apidocs | |
190 | %defattr(644,root,root,755) | |
62afe182 | 191 | %doc build/html/* |