2014-01-29 13:05:34 +01:00
|
|
|
#
|
|
|
|
# spec file for package libinput
|
|
|
|
#
|
2017-01-10 11:34:10 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: libinput
|
2015-03-14 21:30:52 +01:00
|
|
|
%define lname libinput10
|
2017-05-10 22:04:34 +02:00
|
|
|
Version: 1.7.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
|
2014-01-29 13:05:34 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2014-09-12 12:58:55 +02:00
|
|
|
Url: http://www.freedesktop.org/wiki/Software/libinput/
|
2014-02-27 19:36:07 +01:00
|
|
|
|
2014-01-29 13:05:34 +01:00
|
|
|
#Git-Clone: git://anongit.freedesktop.org/wayland/libinput
|
|
|
|
#Git-Web: http://cgit.freedesktop.org/wayland/libinput/
|
2015-03-14 21:30:52 +01:00
|
|
|
#DL-URL: http://freedesktop.org/software/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
|
2014-02-27 19:36:07 +01:00
|
|
|
#git#BuildRequires: autoconf >= 2.64
|
|
|
|
#git#BuildRequires: automake >= 1.11
|
|
|
|
#git#BuildRequires: libtool >= 2.2
|
2014-01-29 13:05:34 +01:00
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: fdupes
|
2014-08-22 23:09:09 +02:00
|
|
|
BuildRequires: gcc-c++
|
2015-01-25 14:35:30 +01:00
|
|
|
BuildRequires: grep
|
2014-01-29 13:05:34 +01:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: xz
|
2014-08-24 10:23:40 +02:00
|
|
|
BuildRequires: pkgconfig(check) >= 0.9.10
|
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
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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
|
2015-03-14 21:43:37 +01:00
|
|
|
Group: System/Base
|
|
|
|
|
|
|
|
%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
|
2014-01-29 13:05:34 +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
|
|
|
|
Group: System/X11/Utilities
|
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
|
2014-01-29 13:05:34 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
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
|
2016-04-19 10:08:44 +02:00
|
|
|
%setup -qn %name-%version
|
2014-01-29 13:05:34 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
if [ ! -e configure ]; then
|
2016-06-24 09:43:09 +02:00
|
|
|
autoreconf -fi
|
2014-01-29 13:05:34 +01:00
|
|
|
fi;
|
2015-03-14 21:30:52 +01:00
|
|
|
%configure --disable-static --includedir="%_includedir/%name" \
|
|
|
|
--with-udev-dir="%_libexecdir/udev"
|
2014-01-29 13:05:34 +01:00
|
|
|
make %{?_smp_mflags} V=1
|
|
|
|
|
|
|
|
%install
|
2015-03-14 21:30:52 +01:00
|
|
|
%make_install
|
2014-08-22 23:16:03 +02:00
|
|
|
rm -f "%buildroot/%_libdir"/*.la
|
2014-01-29 13:05:34 +01:00
|
|
|
%fdupes %buildroot/%_prefix
|
|
|
|
|
|
|
|
%check
|
|
|
|
%if !0%{?qemu_user_space_build}
|
|
|
|
mkdir xdg
|
|
|
|
chmod 700 xdg
|
|
|
|
export XDG_RUNTIME_DIR="$PWD/xdg"
|
2016-04-21 10:07:23 +02:00
|
|
|
make check %{?_smp_mflags} V=1 || :
|
2014-01-29 13:05:34 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
2015-03-14 21:43:37 +01:00
|
|
|
%files udev
|
|
|
|
%defattr(-,root,root)
|
2015-11-24 14:01:01 +01:00
|
|
|
%_libexecdir/udev/hwdb.d
|
|
|
|
%_libexecdir/udev/libinput-device-group
|
|
|
|
%_libexecdir/udev/libinput-model-quirks
|
|
|
|
%_libexecdir/udev/rules.d
|
2015-03-14 21:43:37 +01:00
|
|
|
|
2014-01-29 13:05:34 +01:00
|
|
|
%files -n %lname
|
|
|
|
%defattr(-,root,root)
|
2015-06-23 11:19:38 +02:00
|
|
|
%doc COPYING
|
2015-03-14 21:30:52 +01:00
|
|
|
%_libdir/libinput.so.10*
|
2014-01-29 13:05:34 +01:00
|
|
|
|
2015-04-22 23:39:00 +02:00
|
|
|
%files tools
|
2015-04-22 22:59:34 +02:00
|
|
|
%defattr(-,root,root)
|
2015-05-06 17:12:49 +02:00
|
|
|
%_bindir/libinput-debug-events
|
2015-04-22 22:59:34 +02:00
|
|
|
%_bindir/libinput-list-devices
|
2015-05-06 17:12:49 +02:00
|
|
|
%_mandir/man1/libinput-debug-events.1.gz
|
2015-04-22 22:59:34 +02:00
|
|
|
%_mandir/man1/libinput-list-devices.1.gz
|
|
|
|
|
2014-01-29 13:05:34 +01:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2014-12-12 03:04:45 +01:00
|
|
|
%_includedir/%name/
|
2014-01-29 13:05:34 +01:00
|
|
|
%_libdir/pkgconfig/libinput.pc
|
|
|
|
%_libdir/libinput.so
|
|
|
|
|
|
|
|
%changelog
|