%define _x11sdkdir %(pkg-config --variable=sdkdir xorg-server) %define tarname %{name}-0.7.8-1 Name: linuxwacom Version: 0.7.8_1 Epoch: 0 Release: 2 Summary: Wacom Drivers from Linux Wacom Project Group: User Interface/X Hardware Support License: GPL URL: http://linuxwacom.sourceforge.net Source0: http://prdownloads.sourceforge.net/linuxwacom/%{tarname}.tar.bz2 Source1: 60-wacom.rules Source2: wacom.4x.gz Source3: wacomcpl Source4: wacomcpl-exec BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} BuildRequires: libX11-devel, libXi-devel, xorg-x11-server-sdk >= 1.0.99.901, ncurses-devel, tk-devel, tcl-devel Requires: xorg-x11-server-Xorg >= 1.0.99.901, udev >= 030-21, tk, tcl ExclusiveArch: %{ix86} x86_64 alpha ia64 ppc sparc sparc64 %description The Linux Wacom Project manages the drivers, libraries, and documentation for configuring and running Wacom tablets under the Linux operating system. It contains diagnostic applications as well as X.org XInput drivers. %package devel Summary: linuxwacom developmental libraries and header files Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel Developmental libraries and header files required for developing or compiling applications for manipulating settings for Wacom tablets. %prep %setup -q -n %{tarname} /bin/chmod 0644 %{SOURCE2} /bin/chmod 0755 %{SOURCE4} %build XSERVER64= if [ "$(getconf LONG_BIT)" == "64" ] then XSERVER64=--enable-xserver64 LIB64=--libdir=/usr/lib64 fi export RPM_LIBDIR=%{_lib} ./configure --prefix=/usr --libdir=%{_libdir} --with-xorg-sdk=/usr --with-tcl=/usr --with-tk=/usr $LIB64 $XSERVER64 make %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/49-wacom.rules mkdir -p $RPM_BUILD_ROOT%{_mandir}/man4 install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/man4/ %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc AUTHORS ChangeLog README NEWS %attr(0444,root,root) %{_x11libdir}/xorg/modules/input/wacom_drv.*o %{_bindir}/wacdump %{_bindir}/xidump %{_bindir}/xsetwacom %{_bindir}/wacomcpl %{_bindir}/wacomcpl-exec %{_libdir}/libwacomcfg.la %{_libdir}/libwacomcfg.so.0 %{_libdir}/libwacomcfg.so.0.0.1 %config(noreplace) %{_sysconfdir}/udev/rules.d/49-wacom.rules %{_mandir}/man?/* %{_libdir}/TkXInput/*.so* %{_libdir}/TkXInput/*.la %{_libdir}/TkXInput/pkgIndex.tcl %files devel %defattr(-,root,root,-) %{_includedir}/wacomcfg/wacomcfg.h %{_libdir}/libwacomcfg*.a %{_libdir}/libwacomcfg.so %{_libdir}/TkXInput/libwacomxi.a %changelog * Mon Jul 23 2007 Christopher Brown - 0:0.7.8_1-2 - updated files list - quieten rpm * Fri Jul 20 2007 Gian Paolo Mureddu - 0:0.7.8-1 - updated the spec file for the latest release of Linux Wacom. - package builds for 64-bit systems with addition of a variable for the 64-bit libraries. - substitution of %%{_alllib} with %%{_libdir} for the files libwacomcfg* and libwacomcfg*{.a,.so} * Tue Feb 13 2007 Marcel Verhagen - 0:0.7.6.4-3.9 - clean up of the spec file, removed the configure an makeinstall macro's * Mon Feb 05 2007 Marcel verhagen - 0:0.7.6.4 - changed the configure tag - edited the wacomcpl script - removed export CFLAGS="$RPM_OPT_FLAGS" * Sat Dec 23 2006 Marcel Verhagen - 0:0.7.6.3 - added manpage - changed udev rule - added wacomcpl - added manpage with xorg info - removed patches * Wed Jul 12 2006 Jesse Keating - 0:0.7.4_1-2.1 - rebuild * Sun May 21 2006 Peter Jones 0:0.7.4_1-2 - fix the sysfs test equality syntax in the udev rule * Wed May 10 2006 Kristian Høgsberg 0:0.7.4_1-1 - Update to 0.7.4-1 release. - Change udev rule to use == instead of = for matching kernel name (#191248). - Drop linuxwacom-0.7.2-modular-sdk.patch and pass --with-xorg-sdk=/usr. - Change udev rule to be 60-wacom.rules instead of 10-wacom.rules. - Update linuxwacom-fsp.patch to patch Makefile.in instead so we avoid rerunning auto*. * Mon Apr 10 2006 Adam Jackson 0:0.7.2-3 - Delibcwrap and otherwise rebuild for 7.1RC1 ABI changes. * Fri Feb 10 2006 Jesse Keating - 0:0.7.2-1.2 - bump again for double-long bug on ppc(64) * Tue Feb 07 2006 Jesse Keating - 0:0.7.2-1.1 - rebuilt for new gcc4.1 snapshot and glibc changes * Fri Jan 13 2006 Kristian Høgsberg 0:0.7.2-1 - Update to version 0.7.2. - Drop linuxwacom-0.6.4-linux-input.patch since the kernel headers now define EV_SYN. - Update SDK patch to work with new modular paths. * Mon Dec 12 2005 Tim Waugh 0:0.7.0-2 - More SDK path fixes. - Don't build input driver with -fstack-protector since the X loader doesn't like it. * Fri Dec 9 2005 Tim Waugh 0:0.7.0-1 - 0.7.0. No longer need 64-bit patch. - Fixed SDK path. * Fri Nov 18 2005 Kristian Høgsberg 0:0.6.6-8 - Update to work with new X11 paths. - Patch build system to work with modular X sdk. * Mon Nov 14 2005 Jeremy Katz - 0:0.6.6-7 - require implementation independent Xserver instead of xorg-x11 * Tue Nov 8 2005 Kristian Høgsberg 0:0.6.6-6 - Update X11 library dependencies. - Change back _x11libdir definition. - Change udev rule to match on vendor id instead of manufacturer name, since that's seems to be more reliable. - Test for libX11.so instead of X11 subdir in X11 libdir test. * Wed Apr 13 2005 Kristian Høgsberg - 0:0.6.6-5 - Run automake so changes to Makefile.am take effect. - Fix configure.in test for 64 bit longs. * Wed Apr 13 2005 Kristian Høgsberg - 0:0.6.6-4 - Update linuxwacom-0.6.6-64-bit-fix.patch to remove more i386'isms. * Mon Mar 14 2005 Kristian Høgsberg 0:0.6.6-3 - Rebuilding with gcc 4.0. * Thu Feb 10 2005 Kristian Høgsberg - 0:0.6.6-2 - Bump release. * Thu Feb 10 2005 Kristian Høgsberg - 0:0.6.6-1 - Add patch to set the necessary preprocessor flags on 64 bit archs. * Wed Feb 2 2005 Kristian Høgsberg - 0:0.6.6-1 - Update to linuxwacom-0.6.6. - Update sources file. - Fix configure-fixes patch: don't set the X11 lib path back to default when it's given on the command line. * Wed Sep 29 2004 Kristian Høgsberg 0:0.6.4-6 - Run /sbin/ldconfig in %%post and %%postun (#134070). * Fri Sep 24 2004 Kristian Høgsberg 0:0.6.4-5 - Pass --without-gtk and others to get rid of bogus link dependencies. * Tue Sep 21 2004 Kristian Høgsberg 0:0.6.4-2 - Add BuildRequires for ncurses-devel, needed by wacdump and xidump tools. * Mon Sep 13 2004 Kristian Høgsberg 0:0.6.4-1 - Add udev rule to create /dev/input/wacom * Wed Sep 8 2004 Kristian Høgsberg 0:0.6.4-1 - Invoke libtoolize to fix .so problem on x86_64 - Clean up spec file a bit, run autoconf before build to really fix lib64 issues on x86_64. - Corrected typo and XFree86 mention. * Tue Sep 7 2004 Kristian Høgsberg 0:0.6.4-1 - Add hack to prevent configure from hardcoding 'lib'. * Wed Sep 1 2004 Kristian Høgsberg 0:0.6.4-1 - Explicitly disable building tcl/tk panel - Add patch to remove hard-code i386 flags from Makefile.am - Use %%{_x11libdir} so it'll work on x86_64 - Removed .la files, they are demon spawn - Don't try to build on arches that don't have xorg-x11 * Fri Aug 27 2004 Kristian Høgsberg 0:0.6.4-1 - Add patch to make driver compile against xorg-x11-sdk - Add patch to work around totally obsolete glibc-kernheaders * Thu Aug 26 2004 Kristian Høgsberg 0:0.6.4-1 - Created package, copying bits from synaptics spec file.