2014-01-29 12:05:34 +00:00
|
|
|
#
|
|
|
|
# spec file for package libinput
|
|
|
|
#
|
2020-01-03 11:42:43 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2014-01-29 12:05:34 +00: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 11:40:25 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-01-29 12:05:34 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2020-01-04 21:43:23 +00:00
|
|
|
%bcond_with documentation
|
|
|
|
|
2014-01-29 12:05:34 +00:00
|
|
|
Name: libinput
|
2015-03-14 20:30:52 +00:00
|
|
|
%define lname libinput10
|
2020-02-20 09:41:00 +00:00
|
|
|
Version: 1.15.2
|
2014-01-29 12:05:34 +00:00
|
|
|
Release: 0
|
2014-02-27 18:36:07 +00:00
|
|
|
Summary: Input device and event processing library
|
2015-06-23 09:19:38 +00:00
|
|
|
License: MIT
|
2020-02-14 08:35:46 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2019-10-17 08:40:40 +00:00
|
|
|
URL: https://www.freedesktop.org/wiki/Software/libinput/
|
2014-02-27 18:36:07 +00:00
|
|
|
|
2019-08-20 20:00:24 +00:00
|
|
|
#Git-Web: https://gitlab.freedesktop.org/libinput/libinput/
|
2016-04-19 08:08:44 +00: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 21:16:03 +00:00
|
|
|
Source3: baselibs.conf
|
|
|
|
Source4: %name.keyring
|
2017-07-15 22:57:53 +00:00
|
|
|
Source5: libinput-rpmlintrc
|
2017-11-28 10:03:31 +00:00
|
|
|
Patch1: kill-env.diff
|
2019-08-20 20:00:24 +00:00
|
|
|
|
2014-01-29 12:05:34 +00:00
|
|
|
BuildRequires: fdupes
|
2014-08-22 21:09:09 +00:00
|
|
|
BuildRequires: gcc-c++
|
2020-01-04 21:43:23 +00:00
|
|
|
%if %{with documentation}
|
|
|
|
BuildRequires: doxygen
|
2017-07-15 22:57:53 +00:00
|
|
|
BuildRequires: graphviz >= 2.26
|
2020-01-04 21:43:23 +00:00
|
|
|
%endif
|
2015-01-25 13:35:30 +00:00
|
|
|
BuildRequires: grep
|
2018-10-04 16:19:04 +00:00
|
|
|
BuildRequires: meson >= 0.41.0
|
2019-08-26 04:25:20 +00:00
|
|
|
BuildRequires: pkg-config
|
2017-07-15 22:57:53 +00:00
|
|
|
BuildRequires: pkgconfig(cairo)
|
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
2017-11-14 23:51:26 +00:00
|
|
|
BuildRequires: pkgconfig(gtk+-3.0) >= 3.20
|
2014-05-01 22:26:03 +00:00
|
|
|
BuildRequires: pkgconfig(libevdev) >= 0.4
|
|
|
|
BuildRequires: pkgconfig(libudev)
|
2017-02-02 09:51:28 +00:00
|
|
|
BuildRequires: pkgconfig(libwacom) >= 0.20
|
2014-05-01 22:26:03 +00:00
|
|
|
BuildRequires: pkgconfig(mtdev) >= 1.1.0
|
2014-01-29 12:05:34 +00:00
|
|
|
|
|
|
|
%description
|
2014-02-27 18:36:07 +00: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 12:05:34 +00:00
|
|
|
|
2015-03-14 20:43:37 +00:00
|
|
|
%package udev
|
2015-11-24 13:01:01 +00:00
|
|
|
Summary: Input device and event processing library integration into udev
|
2020-02-14 08:19:52 +00:00
|
|
|
Group: Hardware/Other
|
2015-03-14 20:43:37 +00:00
|
|
|
|
|
|
|
%description udev
|
2015-03-14 20:46:26 +00: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 20:43:37 +00:00
|
|
|
|
2014-01-29 12:05:34 +00:00
|
|
|
%package -n %lname
|
2014-02-27 18:36:07 +00:00
|
|
|
Summary: Input device and event processing library
|
2020-02-14 08:19:52 +00:00
|
|
|
Group: System/Libraries
|
2015-03-14 20:43:37 +00:00
|
|
|
Recommends: %name-udev
|
2014-01-29 12:05:34 +00:00
|
|
|
|
|
|
|
%description -n %lname
|
2014-02-27 18:36:07 +00: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 12:05:34 +00:00
|
|
|
|
2015-04-22 21:39:00 +00:00
|
|
|
%package tools
|
|
|
|
Summary: Utilities to display libinput configuration
|
2020-02-14 08:19:52 +00:00
|
|
|
Group: Hardware/Other
|
2015-04-22 20:59:34 +00:00
|
|
|
|
2015-04-22 21:39:00 +00:00
|
|
|
%description tools
|
|
|
|
This tool lists the locally recognised devices and their respective
|
|
|
|
configuration options and configuration defaults.
|
2015-04-22 20:59:34 +00:00
|
|
|
|
2014-01-29 12:05:34 +00:00
|
|
|
%package devel
|
2015-11-17 10:55:21 +00:00
|
|
|
Summary: Development files for the Input Device Library
|
2020-02-14 08:19:52 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2014-01-29 12:05:34 +00:00
|
|
|
Requires: %lname = %version
|
|
|
|
|
|
|
|
%description devel
|
2014-02-27 18:36:07 +00: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 12:05:34 +00:00
|
|
|
This package contains all necessary include files and libraries needed
|
|
|
|
to develop applications that require libinput.
|
|
|
|
|
|
|
|
%prep
|
2017-12-03 21:21:39 +00:00
|
|
|
%autosetup -p1
|
2014-01-29 12:05:34 +00:00
|
|
|
|
|
|
|
%build
|
2017-07-15 22:57:53 +00:00
|
|
|
%meson \
|
2017-09-01 15:58:31 +00:00
|
|
|
--includedir="%_includedir/%name" \
|
2018-09-11 08:26:42 +00:00
|
|
|
--datadir="%_datadir/%name-%version" \
|
2017-07-15 22:58:43 +00:00
|
|
|
-Dudev-dir="%_prefix/lib/udev" \
|
2019-08-20 20:00:24 +00:00
|
|
|
-Dtests=false \
|
2020-01-04 21:43:23 +00:00
|
|
|
-Ddocumentation=%{?with_documentation:true}%{!?with_documentation:false} \
|
2017-07-15 22:57:53 +00:00
|
|
|
%nil
|
|
|
|
%meson_build
|
2014-01-29 12:05:34 +00:00
|
|
|
|
|
|
|
%install
|
2017-07-15 22:57:53 +00:00
|
|
|
%meson_install
|
2014-01-29 12:05:34 +00:00
|
|
|
%fdupes %buildroot/%_prefix
|
2018-06-05 12:11:54 +00:00
|
|
|
perl -i -pe 's{#!/usr/bin/env python}{#!/usr/bin/python}g' \
|
|
|
|
"%buildroot/usr/lib/libinput/libinput-measure-fuzz" \
|
|
|
|
"%buildroot/usr/lib/libinput/libinput-replay"
|
2014-01-29 12:05:34 +00:00
|
|
|
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
2018-06-01 16:57:16 +00:00
|
|
|
%post udev
|
|
|
|
[ -x /usr/bin/udevadm ] && /usr/bin/udevadm hwdb --update || :
|
|
|
|
|
2015-03-14 20:43:37 +00:00
|
|
|
%files udev
|
2017-07-15 23:00:59 +00:00
|
|
|
%_prefix/lib/udev/libinput-device-group
|
2020-01-03 11:42:43 +00:00
|
|
|
%_prefix/lib/udev/libinput-fuzz-*
|
2018-09-11 08:22:29 +00:00
|
|
|
%_prefix/lib/udev/rules.d/
|
2015-03-14 20:43:37 +00:00
|
|
|
|
2014-01-29 12:05:34 +00:00
|
|
|
%files -n %lname
|
2018-05-30 12:00:29 +00:00
|
|
|
%license COPYING
|
2015-03-14 20:30:52 +00:00
|
|
|
%_libdir/libinput.so.10*
|
2018-09-11 08:26:42 +00:00
|
|
|
%_datadir/libinput-%version/
|
2014-01-29 12:05:34 +00:00
|
|
|
|
2015-04-22 21:39:00 +00:00
|
|
|
%files tools
|
2017-07-15 22:57:53 +00:00
|
|
|
%_bindir/libinput
|
2018-06-05 12:09:26 +00:00
|
|
|
%_libexecdir/libinput/
|
|
|
|
%_mandir/man1/*
|
2015-04-22 20:59:34 +00:00
|
|
|
|
2014-01-29 12:05:34 +00:00
|
|
|
%files devel
|
2017-09-01 15:58:31 +00:00
|
|
|
%_includedir/%name/
|
2014-01-29 12:05:34 +00:00
|
|
|
%_libdir/pkgconfig/libinput.pc
|
|
|
|
%_libdir/libinput.so
|
|
|
|
|
|
|
|
%changelog
|