]> git.pld-linux.org Git - packages/xorg-lib-libxkbcommon.git/blob - xorg-lib-libxkbcommon.spec
up to 0.8.4
[packages/xorg-lib-libxkbcommon.git] / xorg-lib-libxkbcommon.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # check target
4 #
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
8 Version:        0.8.4
9 Release:        1
10 License:        MIT
11 Group:          X11/Libraries
12 Source0:        https://xkbcommon.org/download/libxkbcommon-%{version}.tar.xz
13 # Source0-md5:  3c4409058dfd203f641a563358e0187d
14 URL:            https://xkbcommon.org/
15 BuildRequires:  autoconf >= 2.62
16 BuildRequires:  automake
17 BuildRequires:  bison
18 BuildRequires:  doxygen
19 BuildRequires:  flex
20 BuildRequires:  libtool >= 2:2.0
21 BuildRequires:  libxcb-devel >= 1.10
22 BuildRequires:  pkgconfig >= 1:0.19
23 BuildRequires:  tar >= 1:1.22
24 BuildRequires:  xorg-proto-kbproto-devel >= 1.0.4
25 BuildRequires:  xorg-proto-xproto-devel
26 BuildRequires:  xorg-util-util-macros >= 1.16
27 BuildRequires:  xz
28 %if %{with tests}
29 # wayland-client, wayland-scanner
30 BuildRequires:  wayland-devel >= 1.2
31 BuildRequires:  wayland-protocols >= 1.7
32 BuildRequires:  xorg-app-xkbcomp
33 BuildRequires:  xorg-xserver-Xvfb
34 %endif
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
53 This package contains the header files needed to develop programs that
54 use libxkbcommon.
55
56 %description devel -l pl.UTF-8
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
67 This package contains the static libxkbcommon library.
68
69 %description static -l pl.UTF-8
70 Pakiet zawiera statyczną bibliotekę libxkbcommon.
71
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
115 %if "%{_rpmversion}" >= "5"
116 BuildArch:      noarch
117 %endif
118
119 %description apidocs
120 API documentation for libxkbcommon libraries.
121
122 %description apidocs -l pl.UTF-8
123 Dokumentacja API bibliotek libxkbcommon.
124
125 %prep
126 %setup -q -n libxkbcommon-%{version}
127
128 %build
129 %{__libtoolize}
130 %{__aclocal}
131 %{__autoconf}
132 %{__autoheader}
133 %{__automake}
134 %configure
135
136 %{__make}
137
138 %if %{with tests}
139 %{__make} check
140 %endif
141
142 %install
143 rm -rf $RPM_BUILD_ROOT
144
145 %{__make} install \
146         DESTDIR=$RPM_BUILD_ROOT
147
148 # obsoleted by pkg-config
149 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libxkbcommon*.la
150 # packaged as %doc in -apidocs
151 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libxkbcommon
152
153 %clean
154 rm -rf $RPM_BUILD_ROOT
155
156 %post   -p /sbin/ldconfig
157 %postun -p /sbin/ldconfig
158
159 %post   x11 -p /sbin/ldconfig
160 %postun x11 -p /sbin/ldconfig
161
162 %files
163 %defattr(644,root,root,755)
164 %doc LICENSE NEWS README.md
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
171 %dir %{_includedir}/xkbcommon
172 %{_includedir}/xkbcommon/xkbcommon.h
173 %{_includedir}/xkbcommon/xkbcommon-compat.h
174 %{_includedir}/xkbcommon/xkbcommon-compose.h
175 %{_includedir}/xkbcommon/xkbcommon-keysyms.h
176 %{_includedir}/xkbcommon/xkbcommon-names.h
177 %{_pkgconfigdir}/xkbcommon.pc
178
179 %files static
180 %defattr(644,root,root,755)
181 %{_libdir}/libxkbcommon.a
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/*
This page took 0.075476 seconds and 3 git commands to generate.