]>
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 | |
fa300b5d | 8 | Version: 0.7.2 |
8a78122d | 9 | Release: 1 |
3c06e5aa JB |
10 | License: MIT |
11 | Group: X11/Libraries | |
8a78122d | 12 | Source0: https://xkbcommon.org/download/libxkbcommon-%{version}.tar.xz |
fa300b5d | 13 | # Source0-md5: f53fa65beb5ae4b6a6b7f08f9dedabc4 |
8a78122d | 14 | URL: https://xkbcommon.org/ |
2f7b0749 | 15 | BuildRequires: autoconf >= 2.62 |
3c06e5aa JB |
16 | BuildRequires: automake |
17 | BuildRequires: bison | |
2f7b0749 | 18 | BuildRequires: doxygen |
3c06e5aa JB |
19 | BuildRequires: flex |
20 | BuildRequires: libtool >= 2:2.0 | |
84154661 | 21 | BuildRequires: libxcb-devel >= 1.10 |
3c06e5aa | 22 | BuildRequires: pkgconfig >= 1:0.19 |
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 | |
31 | BuildRequires: wayland-protocols >= 1.0 | |
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 | ||
84154661 JB |
72 | %package x11 |
73 | Summary: X11 support for XKB library | |
74 | Summary(pl.UTF-8): Obsługa X11 dla biblioteki XKB | |
75 | Group: X11/Libraries | |
76 | Requires: %{name} = %{version}-%{release} | |
77 | Requires: libxcb >= 1.10 | |
78 | ||
79 | %description x11 | |
80 | X11 support for XKB library. | |
81 | ||
82 | %description x11 -l pl.UTF-8 | |
83 | Obsługa X11 dla biblioteki XKB. | |
84 | ||
85 | %package x11-devel | |
86 | Summary: Header file for libxkbcommon-x11 library | |
87 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki libxkbcommon-x11 | |
88 | Group: X11/Development/Libraries | |
89 | Requires: %{name}-devel = %{version}-%{release} | |
90 | Requires: %{name}-x11 = %{version}-%{release} | |
91 | Requires: libxcb-devel >= 1.10 | |
92 | ||
93 | %description x11-devel | |
94 | Header file for libxkbcommon-x11 library. | |
95 | ||
96 | %description x11-devel -l pl.UTF-8 | |
97 | Plik nagłówkowy biblioteki libxkbcommon-x11. | |
98 | ||
99 | %package x11-static | |
100 | Summary: Static libxkbcommon-x11 library | |
101 | Summary(pl.UTF-8): Statyczna biblioteka libxkbcommon-x11 | |
102 | Group: X11/Development/Libraries | |
103 | Requires: %{name}-x11-devel = %{version}-%{release} | |
104 | ||
105 | %description x11-static | |
106 | Static libxkbcommon-x11 library. | |
107 | ||
108 | %description x11-static -l pl.UTF-8 | |
109 | Statyczna biblioteka libxkbcommon-x11. | |
110 | ||
111 | %package apidocs | |
112 | Summary: API documentation for libxkbcommon libraries | |
113 | Summary(pl.UTF-8): Dokumentacja API bibliotek libxkbcommon | |
114 | Group: Documentation | |
a2323ebd ER |
115 | %if "%{_rpmversion}" >= "5" |
116 | BuildArch: noarch | |
117 | %endif | |
84154661 JB |
118 | |
119 | %description apidocs | |
120 | API documentation for libxkbcommon libraries. | |
121 | ||
122 | %description apidocs -l pl.UTF-8 | |
123 | Dokumentacja API bibliotek libxkbcommon. | |
124 | ||
3c06e5aa | 125 | %prep |
078cae60 | 126 | %setup -q -n libxkbcommon-%{version} |
3c06e5aa JB |
127 | |
128 | %build | |
129 | %{__libtoolize} | |
130 | %{__aclocal} | |
131 | %{__autoconf} | |
132 | %{__autoheader} | |
133 | %{__automake} | |
134 | %configure | |
135 | ||
136 | %{__make} | |
137 | ||
8a78122d JB |
138 | %if %{with tests} |
139 | %{__make} check | |
140 | %endif | |
141 | ||
3c06e5aa JB |
142 | %install |
143 | rm -rf $RPM_BUILD_ROOT | |
144 | ||
145 | %{__make} install \ | |
146 | DESTDIR=$RPM_BUILD_ROOT | |
147 | ||
148 | # obsoleted by pkg-config | |
84154661 JB |
149 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libxkbcommon*.la |
150 | # packaged as %doc in -apidocs | |
2f7b0749 | 151 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libxkbcommon |
3c06e5aa JB |
152 | |
153 | %clean | |
154 | rm -rf $RPM_BUILD_ROOT | |
155 | ||
156 | %post -p /sbin/ldconfig | |
157 | %postun -p /sbin/ldconfig | |
158 | ||
84154661 JB |
159 | %post x11 -p /sbin/ldconfig |
160 | %postun x11 -p /sbin/ldconfig | |
161 | ||
3c06e5aa JB |
162 | %files |
163 | %defattr(644,root,root,755) | |
8a78122d | 164 | %doc LICENSE NEWS README.md |
3c06e5aa JB |
165 | %attr(755,root,root) %{_libdir}/libxkbcommon.so.*.*.* |
166 | %attr(755,root,root) %ghost %{_libdir}/libxkbcommon.so.0 | |
167 | ||
168 | %files devel | |
169 | %defattr(644,root,root,755) | |
170 | %attr(755,root,root) %{_libdir}/libxkbcommon.so | |
84154661 JB |
171 | %dir %{_includedir}/xkbcommon |
172 | %{_includedir}/xkbcommon/xkbcommon.h | |
173 | %{_includedir}/xkbcommon/xkbcommon-compat.h | |
d38015c1 | 174 | %{_includedir}/xkbcommon/xkbcommon-compose.h |
84154661 JB |
175 | %{_includedir}/xkbcommon/xkbcommon-keysyms.h |
176 | %{_includedir}/xkbcommon/xkbcommon-names.h | |
3c06e5aa JB |
177 | %{_pkgconfigdir}/xkbcommon.pc |
178 | ||
179 | %files static | |
180 | %defattr(644,root,root,755) | |
181 | %{_libdir}/libxkbcommon.a | |
84154661 JB |
182 | |
183 | %files x11 | |
184 | %defattr(644,root,root,755) | |
185 | %attr(755,root,root) %{_libdir}/libxkbcommon-x11.so.*.*.* | |
186 | %attr(755,root,root) %ghost %{_libdir}/libxkbcommon-x11.so.0 | |
187 | ||
188 | %files x11-devel | |
189 | %defattr(644,root,root,755) | |
190 | %attr(755,root,root) %{_libdir}/libxkbcommon-x11.so | |
191 | %{_includedir}/xkbcommon/xkbcommon-x11.h | |
192 | %{_pkgconfigdir}/xkbcommon-x11.pc | |
193 | ||
194 | %files x11-static | |
195 | %defattr(644,root,root,755) | |
196 | %{_libdir}/libxkbcommon-x11.a | |
197 | ||
198 | %files apidocs | |
199 | %defattr(644,root,root,755) | |
200 | %doc doc/html/* |