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