SHA256
1
0
forked from pool/libinput
libinput/libinput.spec
Jan Engelhardt c5af1d0b76 Accepting request 706416 from home:iznogood:branches:X11:Wayland
- Update to version 1.13.2:
  * Apple Bluetooth touchpads are now recognized with the correct
    touch size, which should make finger detection more reliable.
  * External tablets with a touchpad component (e.g. Wacom Intuos
    Pro series) will now rotate the touchpad by 180 degrees when
    set to left-handed. Previously only the tablet pen rotated,
    leaving pen and touch with two different orientations. Note
    that users need to set both the tablet and the touchpad to
    left-handed to have this work correctly; a better fix is in the
    works but taking longer than anticipated.
  * The button scroll timeout reduction introduced in 1.13 is
    reverted again, it caused a few regressions. If you had issues
    with your middle button, that's likely going to fix it.

OBS-URL: https://build.opensuse.org/request/show/706416
OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/libinput?expand=0&rev=194
2019-06-02 17:19:05 +00:00

153 lines
4.6 KiB
RPMSpec

#
# spec file for package libinput
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%if 0%{?suse_version} >= 1500
%define use_wacom 1
%endif
Name: libinput
%define lname libinput10
Version: 1.13.2
Release: 0
Summary: Input device and event processing library
License: MIT
Group: Development/Libraries/C and C++
Url: http://www.freedesktop.org/wiki/Software/libinput/
#Git-Clone: git://anongit.freedesktop.org/wayland/libinput
#Git-Web: http://cgit.freedesktop.org/wayland/libinput/
#DL-URL: http://freedesktop.org/software/libinput/
Source: http://freedesktop.org/software/libinput/%name-%version.tar.xz
Source2: http://freedesktop.org/software/libinput/%name-%version.tar.xz.sig
Source3: baselibs.conf
Source4: %name.keyring
Source5: libinput-rpmlintrc
Patch1: kill-env.diff
BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: graphviz >= 2.26
BuildRequires: grep
BuildRequires: meson >= 0.41.0
BuildRequires: pkgconfig
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gtk+-3.0) >= 3.20
BuildRequires: pkgconfig(libevdev) >= 0.4
BuildRequires: pkgconfig(libudev)
%if 0%{?use_wacom} == 1
BuildRequires: pkgconfig(libwacom) >= 0.20
%endif
BuildRequires: pkgconfig(mtdev) >= 1.1.0
%description
libinput is a library that handles input devices for display servers and
other applications that need to directly deal with input devices.
%package udev
Summary: Input device and event processing library integration into udev
Group: System/Base
%description udev
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.
%package -n %lname
Summary: Input device and event processing library
Group: System/Libraries
Recommends: %name-udev
%description -n %lname
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.
%package tools
Summary: Utilities to display libinput configuration
Group: System/X11/Utilities
%description tools
This tool lists the locally recognised devices and their respective
configuration options and configuration defaults.
%package devel
Summary: Development files for the Input Device Library
Group: Development/Libraries/C and C++
Requires: %lname = %version
%description devel
libinput is a library that handles input devices for display servers and
other applications that need to directly deal with input devices.
This package contains all necessary include files and libraries needed
to develop applications that require libinput.
%prep
%autosetup -p1
%build
%meson \
--includedir="%_includedir/%name" \
--datadir="%_datadir/%name-%version" \
-Dudev-dir="%_prefix/lib/udev" \
-Dtests=false -Ddocumentation=false
%{!?use_wacom:-Dlibwacom=false} \
%nil
%meson_build
%install
%meson_install
%fdupes %buildroot/%_prefix
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"
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%post udev
[ -x /usr/bin/udevadm ] && /usr/bin/udevadm hwdb --update || :
%files udev
%_prefix/lib/udev/libinput-device-group
%_prefix/lib/udev/libinput-model-quirks
%_prefix/lib/udev/rules.d/
%files -n %lname
%license COPYING
%_libdir/libinput.so.10*
%_datadir/libinput-%version/
%files tools
%_bindir/libinput
%_libexecdir/libinput/
%_mandir/man1/*
%files devel
%_includedir/%name/
%_libdir/pkgconfig/libinput.pc
%_libdir/libinput.so
%changelog