]>
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 | |
078cae60 AM |
4 | Version: 0.2.0 |
5 | Release: 1 | |
3c06e5aa JB |
6 | License: MIT |
7 | Group: X11/Libraries | |
078cae60 AM |
8 | Source0: http://xkbcommon.org/download/libxkbcommon-%{version}.tar.bz2 |
9 | # Source0-md5: 2be3d4a255d02c7d46fc6a9486f21f6a | |
10 | URL: http://xkbcommon.org/ | |
3c06e5aa JB |
11 | BuildRequires: autoconf >= 2.60 |
12 | BuildRequires: automake | |
13 | BuildRequires: bison | |
14 | BuildRequires: flex | |
15 | BuildRequires: libtool >= 2:2.0 | |
16 | BuildRequires: pkgconfig >= 1:0.19 | |
078cae60 | 17 | BuildRequires: tar >= 1:1.22 |
3c06e5aa JB |
18 | BuildRequires: xorg-proto-kbproto-devel >= 1.0.4 |
19 | BuildRequires: xorg-proto-xproto-devel | |
20 | BuildRequires: xorg-util-util-macros >= 1.8 | |
3c06e5aa JB |
21 | BuildRequires: xz |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | libxkbcommon is a keymap compiler and support library which processes | |
26 | a reduced subset of keymaps as defined by the XKB specification. | |
27 | ||
28 | %description -l pl.UTF-8 | |
29 | libxkbcommon to biblioteka kompilatora i obsługi map klawiszy, | |
30 | przetwarzająca ograniczony podzbiór map klawiszy zdefiniowanych w | |
31 | specyfikacji XKB. | |
32 | ||
33 | %package devel | |
34 | Summary: Header files for libxkbcommon library | |
35 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libxkbcommon | |
36 | Group: X11/Development/Libraries | |
37 | Requires: %{name} = %{version}-%{release} | |
38 | ||
39 | %description devel | |
40 | xkbcommon library. | |
41 | ||
42 | This package contains the header files needed to develop programs that | |
43 | use libxkbcommon. | |
44 | ||
45 | %description devel -l pl.UTF-8 | |
46 | Biblioteka xkbcommon. | |
47 | ||
48 | Pakiet zawiera pliki nagłówkowe niezbędne do kompilowania programów | |
49 | używających biblioteki libxkbcommon. | |
50 | ||
51 | %package static | |
52 | Summary: Static libxkbcommon library | |
53 | Summary(pl.UTF-8): Biblioteka statyczna libxkbcommon | |
54 | Group: X11/Development/Libraries | |
55 | Requires: %{name}-devel = %{version}-%{release} | |
56 | ||
57 | %description static | |
58 | xkbcommon library. | |
59 | ||
60 | This package contains the static libxkbcommon library. | |
61 | ||
62 | %description static -l pl.UTF-8 | |
63 | Biblioteka xkbcommon. | |
64 | ||
65 | Pakiet zawiera statyczną bibliotekę libxkbcommon. | |
66 | ||
67 | %prep | |
078cae60 | 68 | %setup -q -n libxkbcommon-%{version} |
3c06e5aa JB |
69 | |
70 | %build | |
71 | %{__libtoolize} | |
72 | %{__aclocal} | |
73 | %{__autoconf} | |
74 | %{__autoheader} | |
75 | %{__automake} | |
76 | %configure | |
77 | ||
78 | %{__make} | |
79 | ||
80 | %install | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %{__make} install \ | |
84 | DESTDIR=$RPM_BUILD_ROOT | |
85 | ||
86 | # obsoleted by pkg-config | |
87 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libxkbcommon.la | |
88 | ||
89 | %clean | |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %post -p /sbin/ldconfig | |
93 | %postun -p /sbin/ldconfig | |
94 | ||
95 | %files | |
96 | %defattr(644,root,root,755) | |
97 | %doc COPYING README | |
98 | %attr(755,root,root) %{_libdir}/libxkbcommon.so.*.*.* | |
99 | %attr(755,root,root) %ghost %{_libdir}/libxkbcommon.so.0 | |
100 | ||
101 | %files devel | |
102 | %defattr(644,root,root,755) | |
078cae60 | 103 | %doc doc/html/* |
3c06e5aa JB |
104 | %attr(755,root,root) %{_libdir}/libxkbcommon.so |
105 | %{_includedir}/xkbcommon | |
106 | %{_pkgconfigdir}/xkbcommon.pc | |
107 | ||
108 | %files static | |
109 | %defattr(644,root,root,755) | |
110 | %{_libdir}/libxkbcommon.a |