Summary: X.org mouse input driver
-Summary(pl): Sterownik wej¶ciowy myszy dla X.org
+Summary(pl.UTF-8): Sterownik wejściowy myszy dla X.org
Name: xorg-driver-input-mouse
-Version: 1.0.0.1
-Release: 0.1
+Version: 1.8.1
+Release: 2
License: MIT
Group: X11/Applications
-Source0: http://xorg.freedesktop.org/releases/X11R7.0-RC1/driver/xf86-input-mouse-%{version}.tar.bz2
-# Source0-md5: fb2a899ea620b992918981e50e7ac2f8
+Source0: http://xorg.freedesktop.org/releases/individual/driver/xf86-input-mouse-%{version}.tar.bz2
+# Source0-md5: f314c56e4ac6c8fc0cc2710892d5776e
URL: http://xorg.freedesktop.org/
-BuildRequires: autoconf >= 2.57
+BuildRequires: autoconf >= 2.60
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkgconfig >= 1:0.19
+BuildRequires: rpmbuild(macros) >= 1.389
+BuildRequires: xorg-proto-inputproto-devel
BuildRequires: xorg-proto-xproto-devel
-BuildRequires: xorg-util-util-macros >= 0.99.1
-BuildRequires: xorg-xserver-server-devel
+BuildRequires: xorg-util-util-macros >= 1.8
+BuildRequires: xorg-xserver-server-devel >= 1.7
+%{?requires_xorg_xserver_xinput}
+Requires: xorg-xserver-server >= 1.7
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
X.org mouse input driver. It supports most available mouse types and
interfaces, including USB and PS/2.
-%description -l pl
-Sterownik wej¶ciowy myszy dla X.org. Obs³uguje wiêkszo¶æ dostêpnych
-rodzajów myszy i interfejsów, w tym USB i PS/2.
+%description -l pl.UTF-8
+Sterownik wejściowy myszy dla X.org. Obsługuje większość dostępnych
+rodzajów myszy i interfejsów, w tym USB i PS/2.
+
+%package devel
+Summary: Header file for mouse driver
+Summary(pl.UTF-8): Plik nagłówkowy sterownika myszy
+Group: Development/Libraries
+
+%description devel
+Header file for mouse driver.
+
+%description devel -l pl.UTF-8
+Plik nagłówkowy sterownika myszy.
%prep
%setup -q -n xf86-input-mouse-%{version}
%{__autoconf}
%{__autoheader}
%{__automake}
-%configure \
- --disable-static
+%configure
%{__make}
rm -rf $RPM_BUILD_ROOT
%{__make} install \
- DESTDIR=$RPM_BUILD_ROOT \
- drivermandir=%{_mandir}/man4
+ DESTDIR=$RPM_BUILD_ROOT
-rm -f $RPM_BUILD_ROOT%{_libdir}/xorg/modules/*/*.la
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/xorg/modules/*/*.la
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc README
+%doc COPYING ChangeLog README
%attr(755,root,root) %{_libdir}/xorg/modules/input/mouse_drv.so
-%{_mandir}/man4/mouse.4x*
+%{_mandir}/man4/mousedrv.4*
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/xorg/xf86-mouse-properties.h
+%{_pkgconfigdir}/xorg-mouse.pc