]>
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 |
d254b872 | 15 | Version: 1.9.0 |
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 |
d254b872 | 20 | # Source0-md5: b33b5505f639bf01a6e2e3a01892e91f |
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 | |
26 | BuildRequires: gtk+3-devel >= 3.0 | |
27 | %endif | |
28 | %if %{with apidocs} | |
bb392f52 | 29 | BuildRequires: doxygen >= 1.6.0 |
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 |
d254b872 | 35 | BuildRequires: meson |
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} | |
69 | ||
70 | %description gui | |
71 | Debugging GUI for libinput. | |
72 | ||
73 | %description gui -l pl.UTF-8 | |
74 | Graficzny interfejs diagnostyczny do libinput. | |
75 | ||
66c98b1b JB |
76 | %package devel |
77 | Summary: Development files for libinput | |
78 | Summary(pl.UTF-8): Pliki programistyczne biblioteki libinput | |
79 | Group: Development/Libraries | |
b1a834ff | 80 | Requires: %{name} = %{version}-%{release} |
66c98b1b JB |
81 | Requires: udev-devel |
82 | ||
83 | %description devel | |
84 | This package contains the header files for developing applications | |
85 | that use libinput. | |
86 | ||
87 | %description devel -l pl.UTF-8 | |
88 | Ten pakiet zawiera pliki nagłówkowe niezbędne do tworzenia aplikacji | |
89 | wykorzystujących bibliotekę libinput. | |
90 | ||
91 | %package static | |
92 | Summary: Static libinput library | |
93 | Summary(pl.UTF-8): Statyczna biblioteka libinput | |
94 | Group: Development/Libraries | |
95 | Requires: %{name}-devel = %{version}-%{release} | |
96 | ||
97 | %description static | |
98 | Static libinput library. | |
b1a834ff | 99 | |
66c98b1b JB |
100 | %description static -l pl.UTF-8 |
101 | Statyczna biblioteka libinput. | |
102 | ||
103 | %package apidocs | |
104 | Summary: API documentation for libinput library | |
105 | Summary(pl.UTF-8): Dokumentacja API biblioteki libinput | |
106 | Group: Documentation | |
13fc90c9 ER |
107 | %if "%{_rpmversion}" >= "5" |
108 | BuildArch: noarch | |
109 | %endif | |
66c98b1b JB |
110 | |
111 | %description apidocs | |
112 | API documentation for libinput library. | |
113 | ||
114 | %description apidocs -l pl.UTF-8 | |
115 | Dokumentacja API biblioteki libinput. | |
b1a834ff AM |
116 | |
117 | %prep | |
118 | %setup -q | |
119 | ||
120 | %build | |
11306b0c | 121 | %meson build \ |
2de91326 AM |
122 | -Ddebug-gui=%{__true_false gui} \ |
123 | -Ddocumentation=%{__true_false doc} \ | |
11306b0c | 124 | -Dudev-dir=/lib/udev |
d254b872 | 125 | %meson_build -C build |
b1a834ff | 126 | |
d254b872 | 127 | %{?with_tests:%meson_test -C build} |
b1a834ff AM |
128 | |
129 | %install | |
130 | rm -rf $RPM_BUILD_ROOT | |
131 | ||
d254b872 | 132 | %meson_install -C build |
66c98b1b | 133 | |
b1a834ff AM |
134 | %clean |
135 | rm -rf $RPM_BUILD_ROOT | |
136 | ||
66c98b1b JB |
137 | %post -p /sbin/ldconfig |
138 | %postun -p /sbin/ldconfig | |
b1a834ff AM |
139 | |
140 | %files | |
141 | %defattr(644,root,root,755) | |
ef04d99c JB |
142 | %doc COPYING README.md |
143 | %attr(755,root,root) %{_bindir}/libinput | |
cf0d28df | 144 | %attr(755,root,root) %{_bindir}/libinput-debug-events |
1573a790 | 145 | %attr(755,root,root) %{_bindir}/libinput-list-devices |
66c98b1b | 146 | %attr(755,root,root) %{_libdir}/libinput.so.*.*.* |
3bf5286f | 147 | %attr(755,root,root) %ghost %{_libdir}/libinput.so.10 |
ef04d99c JB |
148 | %dir %{_libexecdir}/libinput |
149 | %attr(755,root,root) %{_libexecdir}/libinput/libinput-debug-events | |
150 | %attr(755,root,root) %{_libexecdir}/libinput/libinput-list-devices | |
151 | %attr(755,root,root) %{_libexecdir}/libinput/libinput-measure | |
d254b872 | 152 | %attr(755,root,root) %{_libexecdir}/libinput/libinput-measure-touchpad-pressure |
ef04d99c | 153 | %attr(755,root,root) %{_libexecdir}/libinput/libinput-measure-touchpad-tap |
d254b872 AM |
154 | %attr(755,root,root) %{_libexecdir}/libinput/libinput-measure-touch-size |
155 | %attr(755,root,root) %{_libexecdir}/libinput/libinput-measure-trackpoint-range | |
76cc7e64 | 156 | %attr(755,root,root) /lib/udev/libinput-device-group |
33de6229 | 157 | %attr(755,root,root) /lib/udev/libinput-model-quirks |
76cc7e64 | 158 | /lib/udev/rules.d/80-libinput-device-groups.rules |
cf0d28df AM |
159 | /lib/udev/hwdb.d/90-libinput-model-quirks.hwdb |
160 | /lib/udev/rules.d/90-libinput-model-quirks.rules | |
ef04d99c | 161 | %{_mandir}/man1/libinput.1* |
cf0d28df | 162 | %{_mandir}/man1/libinput-debug-events.1* |
1573a790 | 163 | %{_mandir}/man1/libinput-list-devices.1* |
ef04d99c | 164 | %{_mandir}/man1/libinput-measure.1* |
d254b872 | 165 | %{_mandir}/man1/libinput-measure-touchpad-pressure.1* |
ef04d99c | 166 | %{_mandir}/man1/libinput-measure-touchpad-tap.1* |
d254b872 AM |
167 | %{_mandir}/man1/libinput-measure-touch-size.1* |
168 | %{_mandir}/man1/libinput-measure-trackpoint-range.1* | |
ef04d99c JB |
169 | |
170 | %if %{with gui} | |
171 | %files gui | |
172 | %defattr(644,root,root,755) | |
173 | %attr(755,root,root) %{_libexecdir}/libinput/libinput-debug-gui | |
174 | %{_mandir}/man1/libinput-debug-gui.1* | |
175 | %endif | |
b1a834ff AM |
176 | |
177 | %files devel | |
178 | %defattr(644,root,root,755) | |
b1a834ff | 179 | %attr(755,root,root) %{_libdir}/libinput.so |
66c98b1b | 180 | %{_includedir}/libinput.h |
b1a834ff | 181 | %{_pkgconfigdir}/libinput.pc |
66c98b1b | 182 | |
1eece97e | 183 | %if %{with static_libs} |
66c98b1b JB |
184 | %files static |
185 | %defattr(644,root,root,755) | |
186 | %{_libdir}/libinput.a | |
1eece97e | 187 | %endif |
66c98b1b JB |
188 | |
189 | %files apidocs | |
190 | %defattr(644,root,root,755) | |
d254b872 | 191 | %doc build/html/* |