61 lines
1.7 KiB
RPMSpec
61 lines
1.7 KiB
RPMSpec
%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 <peter.hutterer@redhat.com> 0.1.2-1
|
|
- Update to 0.1.2, dropping the pkgconfig files
|
|
|
|
* Thu Jun 26 2014 Peter Hutterer <peter.hutterer@redhat.com> 0.1.1-1
|
|
- Initial release (#1113392)
|
|
|