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