#
# Conditional build:
-%bcond_with gui # event-gui (noinst as of 0.4.0)
+%bcond_with gui # event-gui (noinst as of 0.4.0)
+%bcond_with static_libs # static library
#
Summary: Input device library
Summary(pl.UTF-8): Biblioteka urządzeń wejściowych
Name: libinput
-Version: 0.5.0
+Version: 1.0.2
Release: 1
License: MIT
Group: Libraries
Source0: http://www.freedesktop.org/software/libinput/%{name}-%{version}.tar.xz
-# Source0-md5: 9aeb2e44c0f5e13c8cf1ce6bcdf29e83
+# Source0-md5: ec3690c1770ec411192d4b43e73974f5
URL: http://www.freedesktop.org/wiki/Software/libinput/
%{?with_gui:BuildRequires: cairo-devel}
-BuildRequires: check-devel >= 0.9.9
-BuildRequires: doxygen
+BuildRequires: check-devel >= 0.9.10
+BuildRequires: doxygen >= 1.6.0
%{?with_gui:BuildRequires: glib2-devel >= 2.0}
+BuildRequires: graphviz >= 2.26.0
%{?with_gui:BuildRequires: gtk+3-devel >= 3.0}
BuildRequires: libevdev-devel >= 0.4
BuildRequires: mtdev-devel >= 1.1.0
%build
%configure \
- --disable-silent-rules
+ --disable-silent-rules \
+ %{?with_static_libs:--enable-static} \
+ --with-udev-dir=/lib/udev
%{__make}
%files
%defattr(644,root,root,755)
-%doc COPYING README
+%doc COPYING README.txt
+%attr(755,root,root) %{_bindir}/libinput-debug-events
+%attr(755,root,root) %{_bindir}/libinput-list-devices
%attr(755,root,root) %{_libdir}/libinput.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libinput.so.3
+%attr(755,root,root) %ghost %{_libdir}/libinput.so.10
+%attr(755,root,root) /lib/udev/libinput-device-group
+%attr(755,root,root) /lib/udev/libinput-model-quirks
+/lib/udev/rules.d/80-libinput-device-groups.rules
+/lib/udev/hwdb.d/90-libinput-model-quirks.hwdb
+/lib/udev/rules.d/90-libinput-model-quirks.rules
+%{_mandir}/man1/libinput-debug-events.1*
+%{_mandir}/man1/libinput-list-devices.1*
%files devel
%defattr(644,root,root,755)
%{_includedir}/libinput.h
%{_pkgconfigdir}/libinput.pc
+%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/libinput.a
+%endif
%files apidocs
%defattr(644,root,root,755)