]> git.pld-linux.org Git - packages/xorg-lib-libxkbcommon.git/blob - xorg-lib-libxkbcommon.spec
noarch apidocs
[packages/xorg-lib-libxkbcommon.git] / xorg-lib-libxkbcommon.spec
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
4 Version:        0.5.0
5 Release:        3
6 License:        MIT
7 Group:          X11/Libraries
8 Source0:        http://xkbcommon.org/download/libxkbcommon-%{version}.tar.xz
9 # Source0-md5:  2e1faeafcc609c30af3a561a91e84158
10 URL:            http://xkbcommon.org/
11 BuildRequires:  autoconf >= 2.62
12 BuildRequires:  automake
13 BuildRequires:  bison
14 BuildRequires:  doxygen
15 BuildRequires:  flex
16 BuildRequires:  libtool >= 2:2.0
17 BuildRequires:  libxcb-devel >= 1.10
18 BuildRequires:  pkgconfig >= 1:0.19
19 BuildRequires:  tar >= 1:1.22
20 BuildRequires:  xorg-proto-kbproto-devel >= 1.0.4
21 BuildRequires:  xorg-proto-xproto-devel
22 BuildRequires:  xorg-util-util-macros >= 1.16
23 BuildRequires:  xz
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
42 This package contains the header files needed to develop programs that
43 use libxkbcommon.
44
45 %description devel -l pl.UTF-8
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
56 This package contains the static libxkbcommon library.
57
58 %description static -l pl.UTF-8
59 Pakiet zawiera statyczną bibliotekę libxkbcommon.
60
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 %if "%{_rpmversion}" >= "5"
105 BuildArch:      noarch
106 %endif
107
108 %description apidocs
109 API documentation for libxkbcommon libraries.
110
111 %description apidocs -l pl.UTF-8
112 Dokumentacja API bibliotek libxkbcommon.
113
114 %prep
115 %setup -q -n libxkbcommon-%{version}
116
117 %build
118 %{__libtoolize}
119 %{__aclocal}
120 %{__autoconf}
121 %{__autoheader}
122 %{__automake}
123 %configure
124
125 %{__make}
126
127 %install
128 rm -rf $RPM_BUILD_ROOT
129
130 %{__make} install \
131         DESTDIR=$RPM_BUILD_ROOT
132
133 # obsoleted by pkg-config
134 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libxkbcommon*.la
135 # packaged as %doc in -apidocs
136 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libxkbcommon
137
138 %clean
139 rm -rf $RPM_BUILD_ROOT
140
141 %post   -p /sbin/ldconfig
142 %postun -p /sbin/ldconfig
143
144 %post   x11 -p /sbin/ldconfig
145 %postun x11 -p /sbin/ldconfig
146
147 %files
148 %defattr(644,root,root,755)
149 %doc COPYING NEWS README.md
150 %attr(755,root,root) %{_libdir}/libxkbcommon.so.*.*.*
151 %attr(755,root,root) %ghost %{_libdir}/libxkbcommon.so.0
152
153 %files devel
154 %defattr(644,root,root,755)
155 %attr(755,root,root) %{_libdir}/libxkbcommon.so
156 %dir %{_includedir}/xkbcommon
157 %{_includedir}/xkbcommon/xkbcommon.h
158 %{_includedir}/xkbcommon/xkbcommon-compat.h
159 %{_includedir}/xkbcommon/xkbcommon-compose.h
160 %{_includedir}/xkbcommon/xkbcommon-keysyms.h
161 %{_includedir}/xkbcommon/xkbcommon-names.h
162 %{_pkgconfigdir}/xkbcommon.pc
163
164 %files static
165 %defattr(644,root,root,755)
166 %{_libdir}/libxkbcommon.a
167
168 %files x11
169 %defattr(644,root,root,755)
170 %attr(755,root,root) %{_libdir}/libxkbcommon-x11.so.*.*.*
171 %attr(755,root,root) %ghost %{_libdir}/libxkbcommon-x11.so.0
172
173 %files x11-devel
174 %defattr(644,root,root,755)
175 %attr(755,root,root) %{_libdir}/libxkbcommon-x11.so
176 %{_includedir}/xkbcommon/xkbcommon-x11.h
177 %{_pkgconfigdir}/xkbcommon-x11.pc
178
179 %files x11-static
180 %defattr(644,root,root,755)
181 %{_libdir}/libxkbcommon-x11.a
182
183 %files apidocs
184 %defattr(644,root,root,755)
185 %doc doc/html/*
This page took 0.07679 seconds and 3 git commands to generate.