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