2014-01-29 13:05:34 +01:00
|
|
|
#
|
|
|
|
# spec file for package libinput
|
|
|
|
#
|
2020-01-03 12:42:43 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2014-01-29 13:05:34 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-10-03 13:40:25 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-01-29 13:05:34 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2020-10-14 19:44:34 +02:00
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
2020-01-04 22:43:23 +01:00
|
|
|
|
2020-10-14 19:44:34 +02:00
|
|
|
%if "%flavor" == ""
|
2014-01-29 13:05:34 +01:00
|
|
|
Name: libinput
|
2020-10-14 19:44:34 +02:00
|
|
|
%bcond_without completion
|
|
|
|
%bcond_with documentation
|
|
|
|
%bcond_with debug_gui
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if "%flavor" == "extra"
|
|
|
|
Name: libinput-extra
|
|
|
|
%bcond_with completion
|
|
|
|
# no python3-recommonmark
|
|
|
|
%bcond_with documentation
|
|
|
|
%bcond_without debug_gui
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# no python3-libevdev available
|
|
|
|
%bcond_with python3_libevdev
|
|
|
|
|
2015-03-14 21:30:52 +01:00
|
|
|
%define lname libinput10
|
2020-10-14 19:44:34 +02:00
|
|
|
%define pname libinput
|
2020-10-07 07:34:08 +02:00
|
|
|
Version: 1.16.2
|
2014-01-29 13:05:34 +01:00
|
|
|
Release: 0
|
2014-02-27 19:36:07 +01:00
|
|
|
Summary: Input device and event processing library
|
2015-06-23 11:19:38 +02:00
|
|
|
License: MIT
|
2020-02-14 09:35:46 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2019-10-17 10:40:40 +02:00
|
|
|
URL: https://www.freedesktop.org/wiki/Software/libinput/
|
2014-02-27 19:36:07 +01:00
|
|
|
|
2019-08-20 22:00:24 +02:00
|
|
|
#Git-Web: https://gitlab.freedesktop.org/libinput/libinput/
|
2020-10-14 19:44:34 +02:00
|
|
|
Source: http://freedesktop.org/software/libinput/%pname-%version.tar.xz
|
|
|
|
Source2: http://freedesktop.org/software/libinput/%pname-%version.tar.xz.sig
|
2014-08-22 23:16:03 +02:00
|
|
|
Source3: baselibs.conf
|
2020-10-14 19:44:34 +02:00
|
|
|
Source4: %pname.keyring
|
2017-07-16 00:57:53 +02:00
|
|
|
Source5: libinput-rpmlintrc
|
2017-11-28 11:03:31 +01:00
|
|
|
Patch1: kill-env.diff
|
2019-08-20 22:00:24 +02:00
|
|
|
|
2014-01-29 13:05:34 +01:00
|
|
|
BuildRequires: fdupes
|
2014-08-22 23:09:09 +02:00
|
|
|
BuildRequires: gcc-c++
|
2020-01-04 22:43:23 +01:00
|
|
|
%if %{with documentation}
|
|
|
|
BuildRequires: doxygen
|
2017-07-16 00:57:53 +02:00
|
|
|
BuildRequires: graphviz >= 2.26
|
2020-10-14 19:44:34 +02:00
|
|
|
BuildRequires: python3-Sphinx
|
|
|
|
BuildRequires: python3-recommonmark
|
2020-01-04 22:43:23 +01:00
|
|
|
%endif
|
2018-10-04 18:19:04 +02:00
|
|
|
BuildRequires: meson >= 0.41.0
|
2019-08-26 06:25:20 +02:00
|
|
|
BuildRequires: pkg-config
|
2020-10-14 19:44:34 +02:00
|
|
|
%if %{with debug_gui}
|
2017-07-16 00:57:53 +02:00
|
|
|
BuildRequires: pkgconfig(cairo)
|
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
2017-11-15 00:51:26 +01:00
|
|
|
BuildRequires: pkgconfig(gtk+-3.0) >= 3.20
|
2020-10-14 19:44:34 +02:00
|
|
|
%endif
|
2014-05-02 00:26:03 +02:00
|
|
|
BuildRequires: pkgconfig(libevdev) >= 0.4
|
|
|
|
BuildRequires: pkgconfig(libudev)
|
2017-02-02 10:51:28 +01:00
|
|
|
BuildRequires: pkgconfig(libwacom) >= 0.20
|
2014-05-02 00:26:03 +02:00
|
|
|
BuildRequires: pkgconfig(mtdev) >= 1.1.0
|
2014-01-29 13:05:34 +01:00
|
|
|
|
|
|
|
%description
|
2014-02-27 19:36:07 +01:00
|
|
|
libinput is a library that handles input devices for display servers and
|
|
|
|
other applications that need to directly deal with input devices.
|
2014-01-29 13:05:34 +01:00
|
|
|
|
2015-03-14 21:43:37 +01:00
|
|
|
%package udev
|
2015-11-24 14:01:01 +01:00
|
|
|
Summary: Input device and event processing library integration into udev
|
2020-02-14 09:19:52 +01:00
|
|
|
Group: Hardware/Other
|
2015-03-14 21:43:37 +01:00
|
|
|
|
|
|
|
%description udev
|
2015-03-14 21:46:26 +01:00
|
|
|
The libinput udev helper rule will set the LIBINPUT_DEVICE_GROUP
|
|
|
|
variable for event devices. Device groups are a labelling system to
|
|
|
|
allow callers to identify which libinput devices are part of the same
|
|
|
|
physical device.
|
2015-03-14 21:43:37 +01:00
|
|
|
|
2014-01-29 13:05:34 +01:00
|
|
|
%package -n %lname
|
2014-02-27 19:36:07 +01:00
|
|
|
Summary: Input device and event processing library
|
2020-02-14 09:19:52 +01:00
|
|
|
Group: System/Libraries
|
2015-03-14 21:43:37 +01:00
|
|
|
Recommends: %name-udev
|
2014-01-29 13:05:34 +01:00
|
|
|
|
|
|
|
%description -n %lname
|
2014-02-27 19:36:07 +01:00
|
|
|
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.
|
2014-01-29 13:05:34 +01:00
|
|
|
|
2015-04-22 23:39:00 +02:00
|
|
|
%package tools
|
|
|
|
Summary: Utilities to display libinput configuration
|
2020-02-14 09:19:52 +01:00
|
|
|
Group: Hardware/Other
|
2020-10-14 19:44:34 +02:00
|
|
|
%if %{with python3_libevdev}
|
|
|
|
Requires: python3-libevdev
|
|
|
|
%endif
|
2015-04-22 22:59:34 +02:00
|
|
|
|
2015-04-22 23:39:00 +02:00
|
|
|
%description tools
|
|
|
|
This tool lists the locally recognised devices and their respective
|
|
|
|
configuration options and configuration defaults.
|
2015-04-22 22:59:34 +02:00
|
|
|
|
2020-10-14 19:44:34 +02:00
|
|
|
%package -n %pname-debug-gui
|
|
|
|
Summary: Graphical libinput debug tool
|
|
|
|
Group: Hardware/Other
|
|
|
|
Requires: libinput-tools == %{version}-%{release}
|
|
|
|
|
|
|
|
%description -n %pname-debug-gui
|
|
|
|
This tool allows graphical libinput debugging. It visualizes
|
|
|
|
all events processed by libinput.
|
|
|
|
|
2014-01-29 13:05:34 +01:00
|
|
|
%package devel
|
2015-11-17 11:55:21 +01:00
|
|
|
Summary: Development files for the Input Device Library
|
2020-02-14 09:19:52 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2014-01-29 13:05:34 +01:00
|
|
|
Requires: %lname = %version
|
|
|
|
|
|
|
|
%description devel
|
2014-02-27 19:36:07 +01:00
|
|
|
libinput is a library that handles input devices for display servers and
|
|
|
|
other applications that need to directly deal with input devices.
|
|
|
|
|
2014-01-29 13:05:34 +01:00
|
|
|
This package contains all necessary include files and libraries needed
|
|
|
|
to develop applications that require libinput.
|
|
|
|
|
|
|
|
%prep
|
2020-10-14 19:44:34 +02:00
|
|
|
%autosetup -p1 -n %pname-%version
|
2014-01-29 13:05:34 +01:00
|
|
|
|
|
|
|
%build
|
2017-07-16 00:57:53 +02:00
|
|
|
%meson \
|
2020-10-14 19:44:34 +02:00
|
|
|
--includedir="%_includedir/%pname" \
|
|
|
|
--datadir="%_datadir/%pname-%version" \
|
|
|
|
-Dzshcompletiondir=%{?with_completion:"%_datadir/zsh/site-functions"}%{!?with_completion:"no"} \
|
2017-07-16 00:58:43 +02:00
|
|
|
-Dudev-dir="%_prefix/lib/udev" \
|
2019-08-20 22:00:24 +02:00
|
|
|
-Dtests=false \
|
2020-10-14 19:44:34 +02:00
|
|
|
-Ddebug-gui=%{?with_debug_gui:true}%{!?with_debug_gui:false} \
|
2020-01-04 22:43:23 +01:00
|
|
|
-Ddocumentation=%{?with_documentation:true}%{!?with_documentation:false} \
|
2017-07-16 00:57:53 +02:00
|
|
|
%nil
|
|
|
|
%meson_build
|
2014-01-29 13:05:34 +01:00
|
|
|
|
|
|
|
%install
|
2017-07-16 00:57:53 +02:00
|
|
|
%meson_install
|
2020-10-14 19:44:34 +02:00
|
|
|
|
|
|
|
%if %{without python3_libevdev}
|
2020-04-08 19:04:52 +02:00
|
|
|
for i in libinput-measure-fuzz libinput-measure-touch-size libinput-measure-touchpad-pressure libinput-measure-touchpad-tap libinput-replay; do
|
2020-10-14 19:44:34 +02:00
|
|
|
rm -fv "%buildroot/%_libexecdir/libinput/$i"
|
2020-04-08 19:21:59 +02:00
|
|
|
rm -fv "%buildroot/%_mandir/man1/$i".1*
|
2020-04-08 19:04:52 +02:00
|
|
|
done
|
2020-10-14 19:44:34 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if "%flavor" == "extra"
|
|
|
|
find "%buildroot/" \( -type f -o -type l \) -not -iname \*libinput-debug-gui\* -delete
|
|
|
|
find "%buildroot/" -type d -empty -delete
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%fdupes %buildroot/%_prefix
|
2014-01-29 13:05:34 +01:00
|
|
|
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
2018-06-01 18:57:16 +02:00
|
|
|
%post udev
|
|
|
|
[ -x /usr/bin/udevadm ] && /usr/bin/udevadm hwdb --update || :
|
|
|
|
|
2020-10-14 19:44:34 +02:00
|
|
|
%if "%flavor" == ""
|
2015-03-14 21:43:37 +01:00
|
|
|
%files udev
|
2017-07-16 01:00:59 +02:00
|
|
|
%_prefix/lib/udev/libinput-device-group
|
2020-01-03 12:42:43 +01:00
|
|
|
%_prefix/lib/udev/libinput-fuzz-*
|
2018-09-11 10:22:29 +02:00
|
|
|
%_prefix/lib/udev/rules.d/
|
2015-03-14 21:43:37 +01:00
|
|
|
|
2014-01-29 13:05:34 +01:00
|
|
|
%files -n %lname
|
2018-05-30 14:00:29 +02:00
|
|
|
%license COPYING
|
2015-03-14 21:30:52 +01:00
|
|
|
%_libdir/libinput.so.10*
|
2018-09-11 10:26:42 +02:00
|
|
|
%_datadir/libinput-%version/
|
2014-01-29 13:05:34 +01:00
|
|
|
|
2015-04-22 23:39:00 +02:00
|
|
|
%files tools
|
2017-07-16 00:57:53 +02:00
|
|
|
%_bindir/libinput
|
2018-06-05 14:09:26 +02:00
|
|
|
%_libexecdir/libinput/
|
|
|
|
%_mandir/man1/*
|
2020-10-14 19:44:34 +02:00
|
|
|
%dir %_datadir/zsh
|
|
|
|
%_datadir/zsh/site-functions
|
2015-04-22 22:59:34 +02:00
|
|
|
|
2014-01-29 13:05:34 +01:00
|
|
|
%files devel
|
2020-10-14 19:44:34 +02:00
|
|
|
%_includedir/%pname/
|
2014-01-29 13:05:34 +01:00
|
|
|
%_libdir/pkgconfig/libinput.pc
|
|
|
|
%_libdir/libinput.so
|
2020-10-14 19:44:34 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if "%flavor" == "extra"
|
|
|
|
%files -n %pname-debug-gui
|
|
|
|
%dir %_libexecdir/libinput/
|
|
|
|
%_libexecdir/libinput/libinput-debug-gui
|
|
|
|
%_mandir/man1/libinput-debug-gui*
|
|
|
|
%endif
|
2014-01-29 13:05:34 +01:00
|
|
|
|
|
|
|
%changelog
|