From c100f308f9d594716678795cd6aafb4bd5e2fdb8 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 25 Jul 2014 09:36:04 +1000 Subject: [PATCH] Initial import (#1113392) --- .gitignore | 1 + 90-libinput.conf | 5 ++++ sources | 1 + xorg-x11-drv-libinput.spec | 60 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 67 insertions(+) create mode 100644 90-libinput.conf create mode 100644 xorg-x11-drv-libinput.spec diff --git a/.gitignore b/.gitignore index e69de29..dee8f5e 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/xf86-input-libinput-0.1.2.tar.gz diff --git a/90-libinput.conf b/90-libinput.conf new file mode 100644 index 0000000..0f459d9 --- /dev/null +++ b/90-libinput.conf @@ -0,0 +1,5 @@ +Section "InputClass" + Identifier "libinput" + Driver "libinput" + MatchDevicePath "/dev/input/event*" +EndSection diff --git a/sources b/sources index e69de29..a0c5e0e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +c5ec32891a30e23fa06d0f4220beb726 xf86-input-libinput-0.1.2.tar.gz diff --git a/xorg-x11-drv-libinput.spec b/xorg-x11-drv-libinput.spec new file mode 100644 index 0000000..071af7d --- /dev/null +++ b/xorg-x11-drv-libinput.spec @@ -0,0 +1,60 @@ +%global tarball xf86-input-libinput +%global moduledir %(pkg-config xorg-server --variable=moduledir ) +%global driverdir %{moduledir}/input + +Summary: Xorg X11 libinput input driver +Name: xorg-x11-drv-libinput +Version: 0.1.2 +Release: 1%{?dist} +URL: http://www.github.com/whot/xf86-input-libinput/ +License: MIT + +Source0: https://github.com/whot/xf86-input-libinput/archive/%{tarball}-%{version}.tar.gz +Source1: 90-libinput.conf + +ExcludeArch: s390 s390x + +BuildRequires: autoconf automake libtool +BuildRequires: xorg-x11-server-devel >= 1.14.0 +BuildRequires: libudev-devel libevdev-devel libinput-devel +BuildRequires: xorg-x11-util-macros + +Requires: Xorg %(xserver-sdk-abi-requires ansic) +Requires: Xorg %(xserver-sdk-abi-requires xinput) +Requires: xkeyboard-config + +%description +A generic input driver for the X.Org X11 X server based on libinput, +supporting all devices. + +%prep +# sigh, github.... +%setup -q -n %{tarball}-%{tarball}-%{version} + +%build +autoreconf --force -v --install || exit 1 +%configure --disable-static --disable-silent-rules +make %{?_smp_mflags} + +%install +%make_install + +# FIXME: Remove all libtool archives (*.la) from modules directory. This +# should be fixed in upstream Makefile.am or whatever. +find $RPM_BUILD_ROOT -regex ".*\.la$" | xargs rm -f -- + +install -d $RPM_BUILD_ROOT%{_datadir}/X11/xorg.conf.d +install -p -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/X11/xorg.conf.d/90-libinput.conf + +%files +%doc COPYING +%{driverdir}/libinput_drv.so +%{_datadir}/X11/xorg.conf.d/90-libinput.conf + +%changelog +* Thu Jul 24 2014 Peter Hutterer 0.1.2-1 +- Update to 0.1.2, dropping the pkgconfig files + +* Thu Jun 26 2014 Peter Hutterer 0.1.1-1 +- Initial release (#1113392) +