Sisyphus repository
Last update: 15 december 2018 | SRPMs: 18644 | Visits: 12707115
en ru br
ALT Linux repos

Group :: System/Libraries
RPM: libinput

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _libexecdir %_prefix/libexec
%def_enable libwacom
%def_enable debug_gui
%def_disable documentation
%def_enable tests

Name: libinput
Version: 1.12.1
Release: alt1

Summary: Input devices library
Group: System/Libraries
License: MIT


%add_python3_path %_libexecdir/%name

%define mtdev_ver 1.1.0
%define evdev_ver 0.4

BuildRequires(pre): meson rpm-build-python3
BuildRequires: gcc-c++
BuildRequires: libmtdev-devel >= %mtdev_ver libevdev-devel >= %evdev_ver
BuildRequires: libudev-devel libsystemd-devel
BuildRequires: libcheck-devel libunwind-devel
%{?_enable_libwacom:BuildRequires: libwacom-devel}
%{?_enable_debug_gui:BuildRequires: libgtk+3-devel}
%{?_enable_documentation:BuildRequires: doxygen graphviz}
%{?_enable_tests:BuildRequires: valgrind python3-module-pyparsing}

libinput is a library that handles input devices for display servers and
other applications that need to directly deal with input devices.

It provides device detection, device handling, input device event
processing and abstraction so minimize the amount of custom input code
the user of libinput need to provide the common set of functionality
that users expect.

Input event processing includes scaling touch coordinates, generating
pointer events from touchpads, pointer acceleration, etc.

%package devel
Summary: libinput development package
Group: Development/C
Requires: %name = %version-%release

%description devel
This package contains development libraries and header files
that are needed to write applications that use %name.

%package tools
Summary: tools for %name
Group: Development/Tools
Requires: %name = %version-%release

%description tools
This package contains commandline tools from %name package.

%package tools-gui
Summary: libinput visual debug helper
Group: Development/Tools
Requires: %name = %version-%release
Requires: %name-tools = %version-%release

%description tools-gui
This package contains visual debug helper for %name.


%meson %{?_enable_libwacom:-Dlibwacom=true} \
      %{?_enable_debug_gui:-Ddebug-gui=true} \
      %{?_disable_documentation:-Ddocumentation=false} \
      %{?_enable_tests:-Dtests=true} \




%files devel

%files tools
%dir %_libexecdir/%name
%{?_enable_debug_gui:%exclude %_libexecdir/%name/%name-debug-gui}

%if_enabled debug_gui
%files tools-gui


Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin