Jan Engelhardt
85740417c7
OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/libinput?expand=0&rev=118
154 lines
4.7 KiB
RPMSpec
154 lines
4.7 KiB
RPMSpec
#
|
|
# spec file for package libinput
|
|
#
|
|
# Copyright (c) 2017 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 http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: libinput
|
|
%define lname libinput10
|
|
Version: 1.7.1
|
|
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
|
|
Patch1: libinput-elantech-pressure-levels.patch
|
|
#git#BuildRequires: autoconf >= 2.64
|
|
#git#BuildRequires: automake >= 1.11
|
|
#git#BuildRequires: libtool >= 2.2
|
|
BuildRequires: doxygen
|
|
BuildRequires: fdupes
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: grep
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: xz
|
|
BuildRequires: pkgconfig(check) >= 0.9.10
|
|
BuildRequires: pkgconfig(libevdev) >= 0.4
|
|
BuildRequires: pkgconfig(libudev)
|
|
BuildRequires: pkgconfig(libwacom) >= 0.20
|
|
BuildRequires: pkgconfig(mtdev) >= 1.1.0
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%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
|
|
%setup -qn %name-%version
|
|
%patch -P 1 -p1
|
|
|
|
%build
|
|
if [ ! -e configure ]; then
|
|
autoreconf -fi
|
|
fi;
|
|
%configure --disable-static --includedir="%_includedir/%name" \
|
|
--with-udev-dir="%_libexecdir/udev"
|
|
make %{?_smp_mflags} V=1
|
|
|
|
%install
|
|
%make_install
|
|
rm -f "%buildroot/%_libdir"/*.la
|
|
%fdupes %buildroot/%_prefix
|
|
|
|
%check
|
|
%if !0%{?qemu_user_space_build}
|
|
mkdir xdg
|
|
chmod 700 xdg
|
|
export XDG_RUNTIME_DIR="$PWD/xdg"
|
|
make check %{?_smp_mflags} V=1 || :
|
|
%endif
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
%files udev
|
|
%defattr(-,root,root)
|
|
%_libexecdir/udev/hwdb.d
|
|
%_libexecdir/udev/libinput-device-group
|
|
%_libexecdir/udev/libinput-model-quirks
|
|
%_libexecdir/udev/rules.d
|
|
|
|
%files -n %lname
|
|
%defattr(-,root,root)
|
|
%doc COPYING
|
|
%_libdir/libinput.so.10*
|
|
|
|
%files tools
|
|
%defattr(-,root,root)
|
|
%_bindir/libinput-debug-events
|
|
%_bindir/libinput-list-devices
|
|
%_mandir/man1/libinput-debug-events.1.gz
|
|
%_mandir/man1/libinput-list-devices.1.gz
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%_includedir/%name/
|
|
%_libdir/pkgconfig/libinput.pc
|
|
%_libdir/libinput.so
|
|
|
|
%changelog
|