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-01-04 22:43:23 +01:00
|
|
|
%bcond_with documentation
|
|
|
|
|
2014-01-29 13:05:34 +01:00
|
|
|
Name: libinput
|
2015-03-14 21:30:52 +01:00
|
|
|
%define lname libinput10
|
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/
|
2016-04-19 10:08:44 +02:00
|
|
|
Source: http://freedesktop.org/software/libinput/%name-%version.tar.xz
|
|
|
|
Source2: http://freedesktop.org/software/libinput/%name-%version.tar.xz.sig
|
2014-08-22 23:16:03 +02:00
|
|
|
Source3: baselibs.conf
|
|
|
|
Source4: %name.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-01-04 22:43:23 +01:00
|
|
|
%endif
|
2015-01-25 14:35:30 +01:00
|
|
|
BuildRequires: grep
|
2018-10-04 18:19:04 +02:00
|
|
|
BuildRequires: meson >= 0.41.0
|
2019-08-26 06:25:20 +02:00
|
|
|
BuildRequires: pkg-config
|
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
|
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
|
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
|
|
|
|
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
|
2017-12-03 22:21:39 +01:00
|
|
|
%autosetup -p1
|
2014-01-29 13:05:34 +01:00
|
|
|
|
|
|
|
%build
|
2017-07-16 00:57:53 +02:00
|
|
|
%meson \
|
2017-09-01 17:58:31 +02:00
|
|
|
--includedir="%_includedir/%name" \
|
2018-09-11 10:26:42 +02:00
|
|
|
--datadir="%_datadir/%name-%version" \
|
2017-07-16 00:58:43 +02:00
|
|
|
-Dudev-dir="%_prefix/lib/udev" \
|
2019-08-20 22:00:24 +02:00
|
|
|
-Dtests=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
|
2014-01-29 13:05:34 +01:00
|
|
|
%fdupes %buildroot/%_prefix
|
2020-04-08 19:04:52 +02:00
|
|
|
# no python3-libevdev available
|
|
|
|
for i in libinput-measure-fuzz libinput-measure-touch-size libinput-measure-touchpad-pressure libinput-measure-touchpad-tap libinput-replay; do
|
2020-04-08 19:21:59 +02:00
|
|
|
rm -fv "%buildroot/usr/lib/libinput/$i"
|
|
|
|
rm -fv "%buildroot/%_mandir/man1/$i".1*
|
2020-04-08 19:04:52 +02:00
|
|
|
done
|
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 || :
|
|
|
|
|
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/*
|
2015-04-22 22:59:34 +02:00
|
|
|
|
2014-01-29 13:05:34 +01:00
|
|
|
%files devel
|
2017-09-01 17:58:31 +02:00
|
|
|
%_includedir/%name/
|
2014-01-29 13:05:34 +01:00
|
|
|
%_libdir/pkgconfig/libinput.pc
|
|
|
|
%_libdir/libinput.so
|
|
|
|
|
|
|
|
%changelog
|