%define tarball xf86-input-wacom %define moduledir %(pkg-config xorg-server --variable=moduledir ) %define driverdir %{moduledir}/input Summary: Xorg X11 wacom input driver Name: xorg-x11-drv-wacom Version: 0.10.0 Release: 1%{?dist} URL: http://www.x.org License: GPLv2+ Group: User Interface/X Hardware Support BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: http://people.freedesktop.org/~whot/%{tarball}/%{tarball}-%{version}.tar.bz2 ExcludeArch: s390 s390x BuildRequires: xorg-x11-server-sdk >= 1.7.0 Requires: xorg-x11-server-Xorg >= 1.7.0 Conflicts: linuxwacom %description X.Org X11 wacom input driver for Wacom tablets. %prep %setup -q -n %{tarball}-%{version} %build %configure --disable-static make %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT # 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 -- %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{driverdir}/wacom_drv.so %{_mandir}/man4/wacom.4* %package devel Summary: Xorg X11 wacom input driver development package. Group: Development/Libraries %description devel X.Org X11 wacom input driver development files. %files devel %defattr(-,root,root,-) %{_libdir}/pkgconfig/xorg-wacom.pc %dir %{_includedir}/xorg %{_includedir}/xorg/Xwacom.h %changelog * Mon Oct 19 2009 Peter Hutterer 0.10.0-1 - Initial import