Репозиторий Sisyphus
Последнее обновление: 23 октября 2017 | Пакетов: 17947 | Посещений: 10226802
en ru br
Репозитории ALT

Группа :: Система/Библиотеки
Пакет: libinput

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   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.9.0
Release: alt1

Summary: Input devices library
Group: System/Libraries
License: MIT
Url: http://www.freedesktop.org/wiki/Software/libinput/

Source: http://www.freedesktop.org/software/%name/%name-%version.tar.xz

%define mtdev_ver 1.1.0
%define evdev_ver 0.4

BuildRequires: meson gcc-c++ rpm-build-python3
BuildRequires: libmtdev-devel >= %mtdev_ver libevdev-devel >= %evdev_ver
BuildRequires: libudev-devel 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}

%description
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.

%prep
%setup

%build
%meson %{?_enable_libwacom:-Dlibwacom=true} \
      %{?_enable_debug_gui:-Ddebug-gui=true} \
      %{?_disable_documentation:-Ddocumentation=false} \
      %{?_enable_tests:-Dtests=true} \
      -Dudev-dir=/lib/udev
%meson_build

%install
%meson_install

%check
%{?_enable_tests:%meson_test}

%files
%_libdir/%name.so.*
/lib/udev/%name-device-group
/lib/udev/%name-model-quirks
%_udevhwdbdir/90-%name-model-quirks.hwdb
%_udevrulesdir/80-%name-device-groups.rules
%_udevrulesdir/90-%name-model-quirks.rules
%doc COPYING README*

%files devel
%_includedir/%name.h
%_libdir/%name.so
%_pkgconfigdir/%name.pc

%files tools
%_bindir/%name
%_bindir/%name-list-devices
%_bindir/%name-debug-events
%dir %_libexecdir/%name
%_libexecdir/%name/*
%{?_enable_debug_gui:%exclude %_libexecdir/%name/%name-debug-gui}
%_man1dir/%name.1.*
%_man1dir/%name-list-devices.1.*
%_man1dir/%name-debug-events.1.*
%_man1dir/%name-measure.1.*
%_man1dir/%name-measure-touchpad-tap.1.*
%_man1dir/%name-measure-touch-size.1.*
%_man1dir/%name-measure-touchpad-pressure.1.*
%_man1dir/%name-measure-trackpoint-range.1.*

%if_enabled debug_gui
%files tools-gui
%_libexecdir/%name/%name-debug-gui
%_man1dir/%name-debug-gui.1.*
%endif


%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin