-Summary: XOrg/XFree86 input driver for Synaptics and ALPS touchpads
-Summary(pl.UTF-8): Sterownik wejściowy XOrg/XFree86 do touchpadów Synaptics oraz ALPS
+Summary: X.org input driver for Synaptics and ALPS touchpads
+Summary(pl.UTF-8): Sterownik wejściowy X.org do touchpadów Synaptics oraz ALPS
Name: xorg-driver-input-synaptics
-Version: 0.15.1
+Version: 1.4.0
Release: 1
License: MIT
Group: X11/Applications
Source0: http://xorg.freedesktop.org/archive/individual/driver/xf86-input-synaptics-%{version}.tar.bz2
-# Source0-md5: 0a588c729295b9a91a05d9d157270917
+# Source0-md5: cbe487f9d22237d1e39c7d0b5812ab7e
URL: http://xorg.freedesktop.org/
BuildRequires: perl-base
BuildRequires: pkgconfig
BuildRequires: rpmbuild(macros) >= 1.389
-BuildRequires: xorg-lib-libX11-devel
-BuildRequires: xorg-lib-libXext-devel
-BuildRequires: xorg-lib-libpciaccess-devel
-BuildRequires: xorg-xserver-server-devel
-%requires_xorg_xserver_xinput
+BuildRequires: xorg-lib-libXi-devel >= 1.2
+BuildRequires: xorg-lib-libXtst-devel >= 1.0.99.1
+BuildRequires: xorg-proto-inputproto-devel
+BuildRequires: xorg-util-util-macros >= 1.8
+BuildRequires: xorg-xserver-server-devel >= 1.6
+Requires: xorg-lib-libXi >= 1.2
+Requires: xorg-lib-libXtst >= 1.0.99.1
+Requires: xorg-xserver-server >= 1.6
+%{?requires_xorg_xserver_xinput}
Obsoletes: X11-input-synaptics
Obsoletes: X11-synaptics
Obsoletes: XFree86-input-synaptics
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Xorg/XFree86 input driver for Synaptics touchpad.
+X.org input driver for Synaptics touchpads.
%description -l pl.UTF-8
-Sterownik wejściowy Xorg/XFree86 do touchpada Synaptics.
+Sterownik wejściowy X.org do touchpadów Synaptics.
+
+%package devel
+Summary: Header file for synaptics driver
+Summary(pl.UTF-8): Plik nagłówkowy sterownika synaptics
+Group: Development/Libraries
+
+%description devel
+Header file for synaptics driver.
+
+%description devel -l pl.UTF-8
+Plik nagłówkowy sterownika synaptics.
%prep
%setup -q -n xf86-input-synaptics-%{version}
%build
-%configure
+%configure \
+ --disable-silent-rules
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_datadir}/hal/fdi/policy/10osvendor
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-install fdi/11-x11-synaptics.fdi $RPM_BUILD_ROOT%{_datadir}/hal/fdi/policy/10osvendor
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/xorg/modules/input/*.la
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc ChangeLog NEWS README TODO
-%attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_libdir}/xorg/modules/input/*.so
-%{_datadir}/hal/fdi/policy/10osvendor/*.fdi
-%{_mandir}/man?/*
+%doc COPYING ChangeLog README
+%attr(755,root,root) %{_bindir}/synclient
+%attr(755,root,root) %{_bindir}/syndaemon
+%attr(755,root,root) %{_libdir}/xorg/modules/input/synaptics_drv.so
+%{_datadir}/X11/xorg.conf.d/50-synaptics.conf
+%{_mandir}/man1/synclient.1*
+%{_mandir}/man1/syndaemon.1*
+%{_mandir}/man4/synaptics.4*
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/xorg/synaptics.h
+%{_includedir}/xorg/synaptics-properties.h
+%{_pkgconfigdir}/xorg-synaptics.pc