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