]> git.pld-linux.org Git - packages/xorg-lib-libxkbcommon.git/blob - xorg-lib-libxkbcommon.spec
- updated to 0.10.0
[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.10.0
9 Release:        1
10 License:        MIT
11 Group:          X11/Libraries
12 Source0:        https://xkbcommon.org/download/libxkbcommon-%{version}.tar.xz
13 # Source0-md5:  2d9ad3a46b317138b5e72a91cf105451
14 URL:            https://xkbcommon.org/
15 BuildRequires:  bison
16 BuildRequires:  doxygen
17 BuildRequires:  flex
18 BuildRequires:  meson >= 0.41.0
19 BuildRequires:  libxcb-devel >= 1.10
20 BuildRequires:  pkgconfig >= 1:0.19
21 BuildRequires:  rpmbuild(macros) >= 1.736
22 BuildRequires:  tar >= 1:1.22
23 BuildRequires:  xorg-proto-kbproto-devel >= 1.0.4
24 BuildRequires:  xorg-proto-xproto-devel
25 BuildRequires:  xorg-util-util-macros >= 1.16
26 BuildRequires:  xz
27 %if %{with tests}
28 # wayland-client, wayland-scanner
29 BuildRequires:  wayland-devel >= 1.2
30 BuildRequires:  wayland-protocols >= 1.7
31 BuildRequires:  xorg-app-xkbcomp
32 BuildRequires:  xorg-xserver-Xvfb
33 %endif
34 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36 %description
37 libxkbcommon is a keymap compiler and support library which processes
38 a reduced subset of keymaps as defined by the XKB specification.
39
40 %description -l pl.UTF-8
41 libxkbcommon to biblioteka kompilatora i obsługi map klawiszy,
42 przetwarzająca ograniczony podzbiór map klawiszy zdefiniowanych w
43 specyfikacji XKB.
44
45 %package devel
46 Summary:        Header files for libxkbcommon library
47 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libxkbcommon
48 Group:          X11/Development/Libraries
49 Requires:       %{name} = %{version}-%{release}
50
51 %description devel
52 This package contains the header files needed to develop programs that
53 use libxkbcommon.
54
55 %description devel -l pl.UTF-8
56 Pakiet zawiera pliki nagłówkowe niezbędne do kompilowania programów
57 używających biblioteki libxkbcommon.
58
59 %package static
60 Summary:        Static libxkbcommon library
61 Summary(pl.UTF-8):      Biblioteka statyczna libxkbcommon
62 Group:          X11/Development/Libraries
63 Requires:       %{name}-devel = %{version}-%{release}
64
65 %description static
66 This package contains the static libxkbcommon library.
67
68 %description static -l pl.UTF-8
69 Pakiet zawiera statyczną bibliotekę libxkbcommon.
70
71 %package x11
72 Summary:        X11 support for XKB library
73 Summary(pl.UTF-8):      Obsługa X11 dla biblioteki XKB
74 Group:          X11/Libraries
75 Requires:       %{name} = %{version}-%{release}
76 Requires:       libxcb >= 1.10
77
78 %description x11
79 X11 support for XKB library.
80
81 %description x11 -l pl.UTF-8
82 Obsługa X11 dla biblioteki XKB.
83
84 %package x11-devel
85 Summary:        Header file for libxkbcommon-x11 library
86 Summary(pl.UTF-8):      Plik nagłówkowy biblioteki libxkbcommon-x11
87 Group:          X11/Development/Libraries
88 Requires:       %{name}-devel = %{version}-%{release}
89 Requires:       %{name}-x11 = %{version}-%{release}
90 Requires:       libxcb-devel >= 1.10
91
92 %description x11-devel
93 Header file for libxkbcommon-x11 library.
94
95 %description x11-devel -l pl.UTF-8
96 Plik nagłówkowy biblioteki libxkbcommon-x11.
97
98 %package x11-static
99 Summary:        Static libxkbcommon-x11 library
100 Summary(pl.UTF-8):      Statyczna biblioteka libxkbcommon-x11
101 Group:          X11/Development/Libraries
102 Requires:       %{name}-x11-devel = %{version}-%{release}
103
104 %description x11-static
105 Static libxkbcommon-x11 library.
106
107 %description x11-static -l pl.UTF-8
108 Statyczna biblioteka libxkbcommon-x11.
109
110 %package apidocs
111 Summary:        API documentation for libxkbcommon libraries
112 Summary(pl.UTF-8):      Dokumentacja API bibliotek libxkbcommon
113 Group:          Documentation
114 %if "%{_rpmversion}" >= "5"
115 BuildArch:      noarch
116 %endif
117
118 %description apidocs
119 API documentation for libxkbcommon libraries.
120
121 %description apidocs -l pl.UTF-8
122 Dokumentacja API bibliotek libxkbcommon.
123
124 %prep
125 %setup -q -n libxkbcommon-%{version}
126
127 %build
128 %meson build
129
130 %ninja_build -C build
131
132 %if %{with tests}
133 %ninja_test -C build
134 %endif
135
136 %install
137 rm -rf $RPM_BUILD_ROOT
138
139 %ninja_install -C build
140
141 # packaged as %doc in -apidocs
142 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libxkbcommon
143
144 %clean
145 rm -rf $RPM_BUILD_ROOT
146
147 %post   -p /sbin/ldconfig
148 %postun -p /sbin/ldconfig
149
150 %post   x11 -p /sbin/ldconfig
151 %postun x11 -p /sbin/ldconfig
152
153 %files
154 %defattr(644,root,root,755)
155 %doc LICENSE NEWS README.md
156 %attr(755,root,root) %{_libdir}/libxkbcommon.so.*.*.*
157 %attr(755,root,root) %ghost %{_libdir}/libxkbcommon.so.0
158
159 %files devel
160 %defattr(644,root,root,755)
161 %attr(755,root,root) %{_libdir}/libxkbcommon.so
162 %dir %{_includedir}/xkbcommon
163 %{_includedir}/xkbcommon/xkbcommon.h
164 %{_includedir}/xkbcommon/xkbcommon-compat.h
165 %{_includedir}/xkbcommon/xkbcommon-compose.h
166 %{_includedir}/xkbcommon/xkbcommon-keysyms.h
167 %{_includedir}/xkbcommon/xkbcommon-names.h
168 %{_pkgconfigdir}/xkbcommon.pc
169
170 %files static
171 %defattr(644,root,root,755)
172 %{_libdir}/libxkbcommon.a
173
174 %files x11
175 %defattr(644,root,root,755)
176 %attr(755,root,root) %{_libdir}/libxkbcommon-x11.so.*.*.*
177 %attr(755,root,root) %ghost %{_libdir}/libxkbcommon-x11.so.0
178
179 %files x11-devel
180 %defattr(644,root,root,755)
181 %attr(755,root,root) %{_libdir}/libxkbcommon-x11.so
182 %{_includedir}/xkbcommon/xkbcommon-x11.h
183 %{_pkgconfigdir}/xkbcommon-x11.pc
184
185 %files x11-static
186 %defattr(644,root,root,755)
187 %{_libdir}/libxkbcommon-x11.a
188
189 %files apidocs
190 %defattr(644,root,root,755)
191 %doc build/html/*
This page took 0.083478 seconds and 3 git commands to generate.