]>
Commit | Line | Data |
---|---|---|
fe0e5c99 JP |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # documentation | |
4 | %bcond_without static_libs # static libraries | |
5 | ||
6 | Summary: Library for Emulated Input | |
cd26624e | 7 | Summary(pl.UTF-8): Biblioteka emulowanego wejścia |
fe0e5c99 | 8 | Name: libei |
f04de5f9 | 9 | Version: 1.2.1 |
fe0e5c99 JP |
10 | Release: 1 |
11 | License: MIT | |
12 | Group: Libraries | |
13 | Source0: https://gitlab.freedesktop.org/libinput/libei/-/archive/%{version}/%{name}-%{version}.tar.bz2 | |
f04de5f9 | 14 | # Source0-md5: 4f7ca52592800cc9940e8dc7fa34b06e |
fe0e5c99 JP |
15 | URL: https://libinput.pages.freedesktop.org/libei/ |
16 | %{?with_apidocs:BuildRequires: doxygen} | |
17 | BuildRequires: libevdev-devel | |
18 | BuildRequires: libxml2-progs | |
19 | BuildRequires: meson >= 0.56.0 | |
20 | BuildRequires: ninja >= 1.5 | |
21 | BuildRequires: pkgconfig | |
15b5c323 | 22 | BuildRequires: python3 >= 1:3.9 |
fe0e5c99 JP |
23 | BuildRequires: python3-attrs |
24 | BuildRequires: python3-jinja2 | |
15b5c323 | 25 | BuildRequires: python3-modules >= 1:3.9 |
fe0e5c99 JP |
26 | BuildRequires: rpm-build >= 4.6 |
27 | BuildRequires: rpmbuild(macros) >= 1.736 | |
28 | BuildRequires: systemd-devel | |
29 | BuildRequires: xorg-lib-libxkbcommon-devel | |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
31 | ||
32 | %description | |
33 | libei is a library for Emulated Input, primarily aimed at the Wayland | |
34 | stack. It provides three parts: | |
35 | ||
36 | - EI (Emulated Input) for the client side (libei) | |
37 | - EIS (Emulated Input Server) for the server side (libeis) | |
38 | - oeffis is an optional helper library for DBus communication with the | |
39 | XDG RemoteDesktop portal (liboeffis) | |
40 | ||
41 | This package ships libei. | |
42 | ||
cd26624e JB |
43 | %description -l pl.UTF-8 |
44 | libei to biblioteka emulowanego wejścia (Emulated Input), przeznaczona | |
45 | głównie dla stosu Wayland. Składa się z trzech części: | |
46 | - EI (Emulated Input) dla strony klienckiej (libei) | |
47 | - EIS (Emulated Input Server) dla strony serwerowej (libeis) | |
48 | - oeffis to opcjonalna biblioteka pomocnicza do komunikacji DBus z | |
49 | portalem XDG RemoteDesktop (liboeffis) | |
50 | ||
51 | Ten pakiet dostarcza libei. | |
52 | ||
fe0e5c99 JP |
53 | %package devel |
54 | Summary: Development files for libei | |
cd26624e | 55 | Summary(pl.UTF-8): Pliki programistyczne libei |
fe0e5c99 JP |
56 | Group: Development/Libraries |
57 | Requires: %{name} = %{version}-%{release} | |
58 | ||
59 | %description devel | |
60 | This package contains the header files for developing applications | |
61 | that use libei. | |
62 | ||
cd26624e JB |
63 | %description devel -l pl.UTF-8 |
64 | Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji | |
65 | wykorzystujących libei. | |
66 | ||
fe0e5c99 JP |
67 | %package static |
68 | Summary: Static libei library | |
cd26624e | 69 | Summary(pl.UTF-8): Statyczna biblioteka libei |
fe0e5c99 JP |
70 | Group: Development/Libraries |
71 | Requires: %{name}-devel = %{version}-%{release} | |
72 | ||
73 | %description static | |
74 | Static libei library. | |
75 | ||
cd26624e JB |
76 | %description static -l pl.UTF-8 |
77 | Statyczna biblioteka libei. | |
78 | ||
fe0e5c99 JP |
79 | %package tools |
80 | Summary: Utilities for libei | |
cd26624e | 81 | Summary(pl.UTF-8): Narzędzia do libei |
fe0e5c99 JP |
82 | Group: Applications |
83 | Requires: %{name} = %{version}-%{release} | |
84 | ||
85 | %description tools | |
86 | Utilities for libei. | |
87 | ||
cd26624e JB |
88 | %description tools -l pl.UTF-8 |
89 | Narzędzia do libei. | |
90 | ||
fe0e5c99 JP |
91 | %package -n libeis |
92 | Summary: Library for Emulated Input | |
cd26624e JB |
93 | Summary(pl.UTF-8): Biblioteka emulowanego wejścia |
94 | Group: Libraries | |
fe0e5c99 JP |
95 | |
96 | %description -n libeis | |
97 | libei is a library for Emulated Input, primarily aimed at the Wayland | |
98 | stack. It provides three parts: | |
99 | ||
100 | - EI (Emulated Input) for the client side (libei) | |
101 | - EIS (Emulated Input Server) for the server side (libeis) | |
102 | - oeffis is an optional helper library for DBus communication with the | |
103 | XDG RemoteDesktop portal (liboeffis) | |
104 | ||
105 | This package ships libeis. | |
106 | ||
cd26624e JB |
107 | %description -n libeis -l pl.UTF-8 |
108 | libei to biblioteka emulowanego wejścia (Emulated Input), przeznaczona | |
109 | głównie dla stosu Wayland. Składa się z trzech części: | |
110 | - EI (Emulated Input) dla strony klienckiej (libei) | |
111 | - EIS (Emulated Input Server) dla strony serwerowej (libeis) | |
112 | - oeffis to opcjonalna biblioteka pomocnicza do komunikacji DBus z | |
113 | portalem XDG RemoteDesktop (liboeffis) | |
114 | ||
115 | Ten pakiet dostarcza libeis. | |
116 | ||
fe0e5c99 JP |
117 | %package -n libeis-devel |
118 | Summary: Development files for libeis | |
cd26624e | 119 | Summary(pl.UTF-8): Pliki programistyczne libeis |
fe0e5c99 JP |
120 | Group: Development/Libraries |
121 | Requires: libeis = %{version}-%{release} | |
122 | ||
123 | %description -n libeis-devel | |
124 | This package contains the header files for developing applications | |
125 | that use libeis. | |
126 | ||
cd26624e JB |
127 | %description -n libeis-devel -l pl.UTF-8 |
128 | Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji | |
129 | wykorzystujących libeis. | |
130 | ||
fe0e5c99 JP |
131 | %package -n libeis-static |
132 | Summary: Static libeis library | |
cd26624e | 133 | Summary(pl.UTF-8): Statyczna biblioteka libeis |
fe0e5c99 JP |
134 | Group: Development/Libraries |
135 | Requires: libeis-devel = %{version}-%{release} | |
136 | ||
137 | %description -n libeis-static | |
138 | Static libeis library. | |
139 | ||
cd26624e JB |
140 | %description -n libeis-static -l pl.UTF-8 |
141 | Statyczna biblioteka libeis. | |
142 | ||
fe0e5c99 JP |
143 | %package -n liboeffis |
144 | Summary: Library for Emulated Input | |
cd26624e JB |
145 | Summary(pl.UTF-8): Biblioteka emulowanego wejścia |
146 | Group: Libraries | |
fe0e5c99 JP |
147 | |
148 | %description -n liboeffis | |
149 | libei is a library for Emulated Input, primarily aimed at the Wayland | |
150 | stack. It provides three parts: | |
151 | ||
152 | - EI (Emulated Input) for the client side (libei) | |
153 | - EIS (Emulated Input Server) for the server side (libeis) | |
154 | - oeffis is an optional helper library for DBus communication with the | |
155 | XDG RemoteDesktop portal (liboeffis) | |
156 | ||
157 | This package ships liboeffis. | |
158 | ||
cd26624e JB |
159 | %description -n liboeffis -l pl.UTF-8 |
160 | libei to biblioteka emulowanego wejścia (Emulated Input), przeznaczona | |
161 | głównie dla stosu Wayland. Składa się z trzech części: | |
162 | - EI (Emulated Input) dla strony klienckiej (libei) | |
163 | - EIS (Emulated Input Server) dla strony serwerowej (libeis) | |
164 | - oeffis to opcjonalna biblioteka pomocnicza do komunikacji DBus z | |
165 | portalem XDG RemoteDesktop (liboeffis) | |
166 | ||
167 | Ten pakiet dostarcza liboeffis. | |
168 | ||
fe0e5c99 JP |
169 | %package -n liboeffis-devel |
170 | Summary: Development files for liboeffis | |
cd26624e | 171 | Summary(pl.UTF-8): Pliki programistyczne liboeffis |
fe0e5c99 JP |
172 | Group: Development/Libraries |
173 | Requires: liboeffis = %{version}-%{release} | |
174 | ||
175 | %description -n liboeffis-devel | |
176 | This package contains the header files for developing applications | |
177 | that use liboeffis. | |
178 | ||
cd26624e JB |
179 | %description -n liboeffis-devel -l pl.UTF-8 |
180 | Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji | |
181 | wykorzystujących liboeffis. | |
182 | ||
fe0e5c99 JP |
183 | %package -n liboeffis-static |
184 | Summary: Static liboeffis library | |
cd26624e | 185 | Summary(pl.UTF-8): Statyczna biblioteka liboeffis |
fe0e5c99 JP |
186 | Group: Development/Libraries |
187 | Requires: liboeffis-devel = %{version}-%{release} | |
188 | ||
189 | %description -n liboeffis-static | |
190 | Static liboeffis library. | |
191 | ||
cd26624e JB |
192 | %description -n liboeffis-static -l pl.UTF-8 |
193 | Statyczna biblioteka liboeffis. | |
194 | ||
fe0e5c99 JP |
195 | %package apidocs |
196 | Summary: API documentation for libei library | |
cd26624e | 197 | Summary(pl.UTF-8): Dokumentacja API biblioteki libei |
fe0e5c99 JP |
198 | Group: Documentation |
199 | BuildArch: noarch | |
200 | ||
201 | %description apidocs | |
202 | API documentation for libei library. | |
203 | ||
cd26624e JB |
204 | %description apidocs -l pl.UTF-8 |
205 | Dokumentacja API biblioteki libei. | |
206 | ||
fe0e5c99 JP |
207 | %prep |
208 | %setup -q | |
209 | ||
210 | %build | |
211 | %meson build \ | |
212 | %{!?with_static_libs:--default-library=shared} \ | |
213 | -Ddocumentation=%{?with_apidocs:api} \ | |
214 | -Dliboeffis=enabled \ | |
215 | -Dsd-bus-provider=libsystemd \ | |
216 | -Dtests=disabled | |
217 | ||
218 | %ninja_build -C build | |
219 | ||
220 | %install | |
221 | rm -rf $RPM_BUILD_ROOT | |
222 | ||
223 | %ninja_install -C build | |
224 | ||
225 | %clean | |
226 | rm -rf $RPM_BUILD_ROOT | |
227 | ||
228 | %post -p /sbin/ldconfig | |
229 | %postun -p /sbin/ldconfig | |
230 | ||
231 | %post -n libeis -p /sbin/ldconfig | |
232 | %postun -n libeis -p /sbin/ldconfig | |
233 | ||
234 | %post -n liboeffis -p /sbin/ldconfig | |
235 | %postun -n liboeffis -p /sbin/ldconfig | |
236 | ||
237 | %files | |
238 | %defattr(644,root,root,755) | |
239 | %doc COPYING README.md | |
240 | %attr(755,root,root) %{_libdir}/libei.so.*.*.* | |
241 | %attr(755,root,root) %ghost %{_libdir}/libei.so.1 | |
242 | ||
243 | %files devel | |
244 | %defattr(644,root,root,755) | |
245 | %attr(755,root,root) %{_libdir}/libei.so | |
246 | %dir %{_includedir}/libei-1.0 | |
247 | %{_includedir}/libei-1.0/libei.h | |
248 | %{_pkgconfigdir}/libei-1.0.pc | |
249 | ||
250 | %if %{with static_libs} | |
251 | %files static | |
252 | %defattr(644,root,root,755) | |
253 | %{_libdir}/libei.a | |
254 | %endif | |
255 | ||
256 | %files tools | |
257 | %defattr(644,root,root,755) | |
258 | %attr(755,root,root) %{_bindir}/ei-debug-events | |
259 | ||
260 | %files -n libeis | |
261 | %defattr(644,root,root,755) | |
262 | %doc COPYING README.md | |
263 | %attr(755,root,root) %{_libdir}/libeis.so.*.*.* | |
264 | %attr(755,root,root) %ghost %{_libdir}/libeis.so.1 | |
265 | ||
266 | %files -n libeis-devel | |
267 | %defattr(644,root,root,755) | |
268 | %attr(755,root,root) %{_libdir}/libeis.so | |
269 | %{_includedir}/libei-1.0/libeis.h | |
270 | %{_pkgconfigdir}/libeis-1.0.pc | |
271 | ||
272 | %if %{with static_libs} | |
273 | %files -n libeis-static | |
274 | %defattr(644,root,root,755) | |
275 | %{_libdir}/libeis.a | |
276 | %endif | |
277 | ||
278 | %files -n liboeffis | |
279 | %defattr(644,root,root,755) | |
280 | %doc COPYING README.md | |
281 | %attr(755,root,root) %{_libdir}/liboeffis.so.*.*.* | |
282 | %attr(755,root,root) %ghost %{_libdir}/liboeffis.so.1 | |
283 | ||
284 | %files -n liboeffis-devel | |
285 | %defattr(644,root,root,755) | |
286 | %attr(755,root,root) %{_libdir}/liboeffis.so | |
287 | %{_includedir}/libei-1.0/liboeffis.h | |
288 | %{_pkgconfigdir}/liboeffis-1.0.pc | |
289 | ||
290 | %if %{with static_libs} | |
291 | %files -n liboeffis-static | |
292 | %defattr(644,root,root,755) | |
293 | %{_libdir}/liboeffis.a | |
294 | %endif | |
295 | ||
296 | %if %{with apidocs} | |
297 | %files apidocs | |
298 | %defattr(644,root,root,755) | |
299 | %doc build/doc/html/* | |
300 | %endif |