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