]>
Commit | Line | Data |
---|---|---|
11e9e5bb JB |
1 | # |
2 | # Conditional build: | |
ef04d99c | 3 | %bcond_without gui # libinput-debug-gui |
f6d0d702 | 4 | %bcond_without libunwind # libunwind debugging support |
a370658f | 5 | %bcond_without doc # documentation |
d254b872 | 6 | %bcond_without tests # tests |
13fc90c9 | 7 | |
f6d0d702 JB |
8 | %ifnarch %{ix86} %{x8664} %{arm} hppa ia64 mips ppc ppc64 sh |
9 | %undefine with_libunwind | |
10 | %endif | |
b1a834ff | 11 | Summary: Input device library |
66c98b1b | 12 | Summary(pl.UTF-8): Biblioteka urządzeń wejściowych |
b1a834ff | 13 | Name: libinput |
9a19d5af | 14 | Version: 1.11.0 |
a2359d3f | 15 | Release: 1 |
b1a834ff | 16 | License: MIT |
66c98b1b | 17 | Group: Libraries |
c29a2c14 | 18 | Source0: https://www.freedesktop.org/software/libinput/%{name}-%{version}.tar.xz |
9a19d5af | 19 | # Source0-md5: a182dab52f4d33bc1ef50668dcf53cc6 |
c29a2c14 | 20 | URL: https://www.freedesktop.org/wiki/Software/libinput/ |
332a61be | 21 | BuildRequires: check-devel >= 0.9.10 |
a370658f MK |
22 | %if %{with gui} |
23 | BuildRequires: cairo-devel | |
24 | BuildRequires: glib2-devel >= 2.0 | |
407ae804 | 25 | BuildRequires: gtk+3-devel >= 3.20 |
a370658f | 26 | %endif |
aed38082 | 27 | %if %{with doc} |
407ae804 | 28 | BuildRequires: doxygen >= 1.8.3 |
bb392f52 | 29 | BuildRequires: graphviz >= 2.26.0 |
a370658f | 30 | %endif |
ef04d99c | 31 | BuildRequires: libevdev-devel >= 1.3 |
f6d0d702 | 32 | %{?with_libunwind:BuildRequires: libunwind-devel} |
725df436 | 33 | BuildRequires: libwacom-devel >= 0.20 |
407ae804 | 34 | BuildRequires: meson >= 0.40.0 |
66c98b1b | 35 | BuildRequires: mtdev-devel >= 1.1.0 |
aed38082 | 36 | BuildRequires: ninja >= 1.5 |
66c98b1b | 37 | BuildRequires: pkgconfig |
2de91326 | 38 | BuildRequires: rpmbuild(macros) >= 1.728 |
b1a834ff | 39 | BuildRequires: udev-devel |
aed38082 | 40 | BuildRequires: valgrind |
ef04d99c | 41 | Requires: libevdev >= 1.3 |
725df436 JB |
42 | Requires: libwacom >= 0.20 |
43 | Requires: mtdev >= 1.1.0 | |
66c98b1b | 44 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
b1a834ff AM |
45 | |
46 | %description | |
47 | libinput is a library that handles input devices for display servers | |
48 | and other applications that need to directly deal with input devices. | |
49 | ||
50 | It provides device detection, device handling, input device event | |
51 | processing and abstraction so minimize the amount of custom input code | |
52 | the user of libinput need to provide the common set of functionality | |
53 | that users expect. | |
54 | ||
66c98b1b JB |
55 | %description -l pl.UTF-8 |
56 | libinput to biblioteka obsługująca urządzenia wejściowe dla serwerów | |
57 | grafiki i innych aplikacji wymagających bezpośredniej obsługi urządzeń | |
58 | wejściowych. | |
59 | ||
60 | Biblioteka zapewnia wykrywanie urządzeń, obsługę urządzeń, | |
61 | przetwarzanie zdarzeń urządzeń wejściowych oraz abstrakcję, | |
62 | minimalizując ilość własnego kodu, który musi napisać użytkownik | |
63 | biblioteki, aby zapewnić oczekiwaną funkcjonalność. | |
64 | ||
ef04d99c JB |
65 | %package gui |
66 | Summary: Debugging GUI for libinput | |
67 | Summary(pl.UTF-8): Graficzny interfejs diagnostyczny do libinput | |
68 | Group: X11/Applications | |
69 | Requires: %{name} = %{version}-%{release} | |
407ae804 | 70 | Requires: gtk+3 >= 3.20 |
ef04d99c JB |
71 | |
72 | %description gui | |
73 | Debugging GUI for libinput. | |
74 | ||
75 | %description gui -l pl.UTF-8 | |
76 | Graficzny interfejs diagnostyczny do libinput. | |
77 | ||
66c98b1b JB |
78 | %package devel |
79 | Summary: Development files for libinput | |
80 | Summary(pl.UTF-8): Pliki programistyczne biblioteki libinput | |
81 | Group: Development/Libraries | |
b1a834ff | 82 | Requires: %{name} = %{version}-%{release} |
66c98b1b JB |
83 | Requires: udev-devel |
84 | ||
85 | %description devel | |
86 | This package contains the header files for developing applications | |
87 | that use libinput. | |
88 | ||
89 | %description devel -l pl.UTF-8 | |
90 | Ten pakiet zawiera pliki nagłówkowe niezbędne do tworzenia aplikacji | |
91 | wykorzystujących bibliotekę libinput. | |
92 | ||
93 | %package static | |
94 | Summary: Static libinput library | |
95 | Summary(pl.UTF-8): Statyczna biblioteka libinput | |
96 | Group: Development/Libraries | |
97 | Requires: %{name}-devel = %{version}-%{release} | |
98 | ||
99 | %description static | |
100 | Static libinput library. | |
b1a834ff | 101 | |
66c98b1b JB |
102 | %description static -l pl.UTF-8 |
103 | Statyczna biblioteka libinput. | |
104 | ||
105 | %package apidocs | |
106 | Summary: API documentation for libinput library | |
107 | Summary(pl.UTF-8): Dokumentacja API biblioteki libinput | |
108 | Group: Documentation | |
13fc90c9 ER |
109 | %if "%{_rpmversion}" >= "5" |
110 | BuildArch: noarch | |
111 | %endif | |
66c98b1b JB |
112 | |
113 | %description apidocs | |
114 | API documentation for libinput library. | |
115 | ||
116 | %description apidocs -l pl.UTF-8 | |
117 | Dokumentacja API biblioteki libinput. | |
b1a834ff AM |
118 | |
119 | %prep | |
120 | %setup -q | |
121 | ||
bc749beb JP |
122 | %{__sed} -i -e '1s,/usr/bin/env python3,%{__python3},' tools/libinput-measure-{trackpoint-range,touchpad-pressure,touch-size,touchpad-tap} |
123 | ||
b1a834ff | 124 | %build |
11306b0c | 125 | %meson build \ |
2de91326 AM |
126 | -Ddebug-gui=%{__true_false gui} \ |
127 | -Ddocumentation=%{__true_false doc} \ | |
11306b0c | 128 | -Dudev-dir=/lib/udev |
d254b872 | 129 | %meson_build -C build |
b1a834ff | 130 | |
d254b872 | 131 | %{?with_tests:%meson_test -C build} |
b1a834ff AM |
132 | |
133 | %install | |
134 | rm -rf $RPM_BUILD_ROOT | |
135 | ||
d254b872 | 136 | %meson_install -C build |
66c98b1b | 137 | |
b1a834ff AM |
138 | %clean |
139 | rm -rf $RPM_BUILD_ROOT | |
140 | ||
66c98b1b JB |
141 | %post -p /sbin/ldconfig |
142 | %postun -p /sbin/ldconfig | |
b1a834ff AM |
143 | |
144 | %files | |
145 | %defattr(644,root,root,755) | |
ef04d99c JB |
146 | %doc COPYING README.md |
147 | %attr(755,root,root) %{_bindir}/libinput | |
66c98b1b | 148 | %attr(755,root,root) %{_libdir}/libinput.so.*.*.* |
3bf5286f | 149 | %attr(755,root,root) %ghost %{_libdir}/libinput.so.10 |
ef04d99c JB |
150 | %dir %{_libexecdir}/libinput |
151 | %attr(755,root,root) %{_libexecdir}/libinput/libinput-debug-events | |
152 | %attr(755,root,root) %{_libexecdir}/libinput/libinput-list-devices | |
153 | %attr(755,root,root) %{_libexecdir}/libinput/libinput-measure | |
9a19d5af | 154 | %attr(755,root,root) %{_libexecdir}/libinput/libinput-measure-fuzz |
d254b872 | 155 | %attr(755,root,root) %{_libexecdir}/libinput/libinput-measure-touchpad-pressure |
ef04d99c | 156 | %attr(755,root,root) %{_libexecdir}/libinput/libinput-measure-touchpad-tap |
d254b872 AM |
157 | %attr(755,root,root) %{_libexecdir}/libinput/libinput-measure-touch-size |
158 | %attr(755,root,root) %{_libexecdir}/libinput/libinput-measure-trackpoint-range | |
9a19d5af JP |
159 | %attr(755,root,root) %{_libexecdir}/libinput/libinput-record |
160 | %attr(755,root,root) %{_libexecdir}/libinput/libinput-replay | |
76cc7e64 | 161 | %attr(755,root,root) /lib/udev/libinput-device-group |
33de6229 | 162 | %attr(755,root,root) /lib/udev/libinput-model-quirks |
76cc7e64 | 163 | /lib/udev/rules.d/80-libinput-device-groups.rules |
cf0d28df AM |
164 | /lib/udev/hwdb.d/90-libinput-model-quirks.hwdb |
165 | /lib/udev/rules.d/90-libinput-model-quirks.rules | |
ef04d99c | 166 | %{_mandir}/man1/libinput.1* |
cf0d28df | 167 | %{_mandir}/man1/libinput-debug-events.1* |
1573a790 | 168 | %{_mandir}/man1/libinput-list-devices.1* |
ef04d99c | 169 | %{_mandir}/man1/libinput-measure.1* |
9a19d5af | 170 | %{_mandir}/man1/libinput-measure-fuzz.1* |
d254b872 | 171 | %{_mandir}/man1/libinput-measure-touchpad-pressure.1* |
ef04d99c | 172 | %{_mandir}/man1/libinput-measure-touchpad-tap.1* |
d254b872 AM |
173 | %{_mandir}/man1/libinput-measure-touch-size.1* |
174 | %{_mandir}/man1/libinput-measure-trackpoint-range.1* | |
9a19d5af JP |
175 | %{_mandir}/man1/libinput-record.1* |
176 | %{_mandir}/man1/libinput-replay.1* | |
ef04d99c JB |
177 | |
178 | %if %{with gui} | |
179 | %files gui | |
180 | %defattr(644,root,root,755) | |
181 | %attr(755,root,root) %{_libexecdir}/libinput/libinput-debug-gui | |
182 | %{_mandir}/man1/libinput-debug-gui.1* | |
183 | %endif | |
b1a834ff AM |
184 | |
185 | %files devel | |
186 | %defattr(644,root,root,755) | |
b1a834ff | 187 | %attr(755,root,root) %{_libdir}/libinput.so |
66c98b1b | 188 | %{_includedir}/libinput.h |
b1a834ff | 189 | %{_pkgconfigdir}/libinput.pc |
66c98b1b | 190 | |
aed38082 | 191 | %if %{with doc} |
66c98b1b JB |
192 | %files apidocs |
193 | %defattr(644,root,root,755) | |
d254b872 | 194 | %doc build/html/* |
aed38082 | 195 | %endif |