File x11-input-wacom.spec of Package x11-input-wacom

#
# spec file for package x11-input-wacom (Version 0.8.1)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

%define revision 4

Name:           x11-input-wacom
BuildRequires:  gtk2-devel ncurses ncurses-devel tk-devel update-desktop-files
%ifnarch s390 s390x 
BuildRequires:  xorg-x11-driver-input xorg-x11-server-sdk
%endif
License:        GPL v2 or later
Url:            http://linuxwacom.sourceforge.net/
Group:          System/X11/Utilities
Version:        0.8.1
Release:        36.<RELEASE18>
Summary:        X11 input module for wacom tablet
Provides:       xorg-x11-server:/usr/X11R6/%{_lib}/modules/input/wacom_drv.o
Source:         linuxwacom-%{version}-%{revision}.tar.bz2
#Source:         linuxwacom-%{version}.tar.bz2
Source1:        65-wacom.rules
Patch0:         linuxwacom-20080901-fix-find_devices.diff
Patch1:         bug463512.diff
#BuildRoot:      %{_tmppath}/%{name}-%{version}-%{revision}-build
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
ExcludeArch:    s390 s390x

%description
This package contains the X11 input module for wacom tablets.



Authors:
--------
    Ping Cheng <pingc@wacom.com>

%package tools
License:        GPL v2 or later
Summary:        Tools for configuration, diagnostic and libraries for Wacom tablets
Group:          System/X11/Utilities
Requires:       %{name} = %{version}-%{release}
Provides:       linuxwacom
Obsoletes:      linuxwacom
AutoReqProv:    on

%description tools
This package contains tools for configuration, diagnostic and libraries
for Wacom tablets.



Authors:
--------
    Ping Cheng <pingc@wacom.com>

%package devel
License:        GPL v2 or later
Summary:        Include Files and Libraries mandatory for Development
Group:          Development/Libraries/X11
Requires:       %{name}-tools = %{version}-%{release}
Provides:       linuxwacom-devel
Obsoletes:      linuxwacom-devel
AutoReqProv:    on

%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.



Authors:
--------
    Ping Cheng <pingc@wacom.com>

%prep
%setup -n linuxwacom-%{version}-%{revision}
#%setup -n linuxwacom-%{version}
%patch0 -p1
pushd src/xdrv/ 
%patch1 -p0
popd

%build
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
libtoolize --force
autoreconf --force --install
%ifarch s390 s390x
%configure --prefix=/usr
%else
%configure --prefix=/usr 					\
%ifarch x86_64
            --enable-xserver64 					\
%endif
	    --enable-wacdump					\
	    --enable-libwacomcfg				\
            --enable-dlloader 					\
            --with-xmoduledir=/usr/%{_lib}/xorg/modules/input 	\
            --with-xlib=/usr/%{_lib}
%endif
make

%install
make install DESTDIR=$RPM_BUILD_ROOT
# Script libraries for Tcl extensions should be in a package-specific 
# subdir of /usr/share/tcl
mkdir -p $RPM_BUILD_ROOT/usr/share/tcl/%{name}-tools
mv $RPM_BUILD_ROOT/usr/%{_lib}/TkXInput/pkgIndex.tcl \
   $RPM_BUILD_ROOT/usr/share/tcl/%{name}-tools
# workaround for Bug #118793
ln -snf /usr/%{_lib}/TkXInput/libwacomxi.so \
        $RPM_BUILD_ROOT/usr/share/tcl/x11-input-wacom-tools/libwacomxi.so
# udev rule for creating /dev/input/wacom symlink (Bug #404847)
mkdir -p $RPM_BUILD_ROOT/etc/udev/rules.d
install -m 644 $RPM_SOURCE_DIR/65-wacom.rules \
               $RPM_BUILD_ROOT/etc/udev/rules.d

%clean
rm -rf %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc AUTHORS GPL README
%dir /usr/%_lib/xorg
%dir /usr/%_lib/xorg/modules/
%dir /usr/%_lib/xorg/modules/input
%dir /etc/udev
%dir /etc/udev/rules.d
/etc/udev/rules.d/65-wacom.rules
%attr (644,root,root) /usr/%_lib/xorg/modules/input/wacom_drv.so
%{_mandir}/man4/wacom.4x.gz

%files tools
%defattr(-,root,root)
/usr/bin/wacdump
/usr/bin/wacomcpl
/usr/bin/wacomcpl-exec
/usr/bin/xidump
/usr/bin/xsetwacom
%dir /usr/%_lib/TkXInput
/usr/%_lib/TkXInput/libwacomxi.so*
/usr/%_lib/libwacomcfg*so.*
%dir /usr/share/tcl/%{name}-tools
/usr/share/tcl/%{name}-tools/pkgIndex.tcl
/usr/share/tcl/%{name}-tools/libwacomxi.so

%files devel
%defattr(-,root,root)
%dir /usr/include/wacomcfg
/usr/include/wacomcfg/wacomcfg.h
/usr/%_lib/TkXInput/libwacomxi.a
/usr/%_lib/TkXInput/libwacomxi.la
/usr/%_lib/libwacomcfg.a
/usr/%_lib/libwacomcfg.la
/usr/%_lib/libwacomcfg.so

%changelog
* Tue Jan 06 2009 sndirsch@suse.de
- bug463512.diff
  * fixes Xserver crash with Intuos tablet when terminating
  Xserver regularly (bnc #463512)
* Mon Nov 03 2008 sndirsch@suse.de
- don't build on s390/s390x
* Mon Sep 01 2008 dkukawka@suse.de
- added new patch:
  - linuxwacom-20080901-fix-find_devices.diff: fixed again
  device identification for xsetwacom and other tools. My patch
  was false ifdefed.
* Mon Sep 01 2008 dkukawka@suse.de
- add --enable-libwacomcfg to configure
* Mon Sep 01 2008 dkukawka@suse.de
- added new 65-wacom.rules which should setup the needed by-id
  links for the stylus and the touchscreen. We go better this way
  than patching the whole udev package.
* Sun Aug 31 2008 dkukawka@suse.de
- updated to latest version 0.8.1-4:
  - Support Xorg 7.3 or newer in wacomcpl
  - Modified wacom_sys.c according to Bartosz Fabianowski's
  suggestion
  - Merged bug 2074297 fix (Mike Auty)
  - Fixed a few minor bugs
* Sun Aug 31 2008 dkukawka@suse.de
- updated to latest version 0.8.1-3
  - Merged patch 1994583 (Craig Wiegert) for wacom_sys.c
  - Merged patch 2035856 (Trifon Trifonov) for Uninit on Xorg 7.3
  and later
  - Modified configure.in for Danny's patch
  - Added serial Tablet PC with capacitive touch
* Mon Aug 11 2008 dkukawka@suse.de
- updated to latest version 0.8.1-2
- removed upstream gone patches:
  - linuxwacom-fix-wacomcpl-calibration.diff
  - linuxwacom-fix-xsetwacom_find_devices.diff
* Mon Aug 11 2008 dkukawka@suse.de
- updated to latest version 0.8.1-1
* Mon Aug 11 2008 dkukawka@suse.de
- updated spec-file and log to have also all changes from the
  distro package
- added new patch:
  - linuxwacom-fix-wacomcpl-calibration.diff: fix detection of
  the core pointers (which currently prevent calibration)
* Mon Aug 11 2008 dkukawka@suse.de
- updated to latest upstream version v0.8.1:
  - Added Usb Tablet PC with and without touch support
  - Label 0.8.1
- removed patch:
  - linuxwacom-fix-multitouch.diff: package contains now the
  option as "Touch" (on/off)
* Mon Aug 11 2008 dkukawka@suse.de
- added new patch:
  - linuxwacom-fix-xsetwacom_find_devices.diff: adopted and
  extended patch from our 10.2 package to check xorg.conf for
  wacom devices which are not named "stylus/cursor/eraser/pad"
  to find wacom devices
* Mon Aug 11 2008 sndirsch@suse.de
- update to release 0.8.1-2
  * Added kernel 2.6.26 support
  * Updated USB Tablet PC pressure data in kernel
  * Merged patches from Danny Kukawka for wacomcpl and xsetwacom
  * Merged patch 1998051 (Yuri Shchedov) for keystroke
- obsoletes linuxwacom-fix-wacomcpl-calibration.diff
- obsoletes linuxwacom-fix-xsetwacom_find_devices.diff
* Fri Jul 25 2008 sndirsch@suse.de
- linuxwacom-fix-wacomcpl-calibration.diff
  * fix wacomcpl calibration (bnc #412182)
* Fri Jul 25 2008 sndirsch@suse.de
- linuxwacom-fix-multitouch.diff no longer required
- specfile cleanup
* Thu Jul 24 2008 sndirsch@suse.de
- updated to 0.8.1-1 due to rotation working again with this
  version
* Thu Jul 03 2008 sndirsch@suse.de
- xorg-server-1.5.diff:
  * fixes build with xorg-server 1.5
* Mon Jun 30 2008 sndirsch@suse.de
- added udev rule for creating /dev/input/wacom symlink (bnc #404847)
- fixed build on s390(x)
* Tue Jun 10 2008 sndirsch@suse.de
- fixed linuxwacom-fix-xsetwacom_find_devices.diff (bnc #399016)
* Fri May 16 2008 sndirsch@suse.de
- back to release 0.7.9-4 (bnc #391466)
* Thu May 15 2008 sndirsch@suse.de
- update to release 0.8.0-2
  * Fixed rotation issue
- obsoletes linuxwacom-debug.diff
* Sat May 10 2008 sndirsch@suse.de
- update to release 0.8.0-1
  * Updated xidump for Xserver 1.4 or later
  * Fixed no eraser calibration issue for LCD tablets
  * Fixed serial Tablet PC baudrate issue
* Fri May 02 2008 sndirsch@suse.de
- linuxwacom-debug.diff
  * make "bad magic" error message a debug message (bnc #384647)
* Sat Apr 26 2008 sndirsch@suse.de
- update to release 0.8.0
  * Updated wacom.4x
  * Update ~/.xsession from wacomcpl for KDE system
  * Added IsXExtensionKeyboard check for Xserver 1.4 or later in
  wacomcfg.c
* Sun Apr 20 2008 sndirsch@suse.de
- update to development releasee 0.7.9-11
  * Minor fixes in kernel and wacomcpl
  * Removed debug statement in wcmSerial.c
  * Excluded dixScreenOrigins call for Xorg 6.8.x
  * Synchronized databases
  * Updated webpages
* Sun Apr 06 2008 sndirsch@suse.de
- update to development releasee 0.7.9-9
  * obsoletes linuxwacom-0.7.8-3.diff, linuxwacom-0.7.9-1.diff,
  linuxwacom-autoprobe.diff
  * adjusted linuxwacom-fix-multitouch.diff
- added xorg-x11-driver-input to BuildRequires to fix build;
  required for dllloader detection, oh well ...
* Mon Nov 05 2007 dkukawka@suse.de
- added patch:
  * linuxwacom-fix-multitouch.diff: Fix new feature MultiTouch
  on Tablet PCs as e.g. Lenovo X61t. Now at least the stylus/
  cursor of the pen works again. There are still problems with
  the eraser.
  Added new xorg.conf option "MultiTouch" "off" which allow to
  disable the multitouch feature completely.
* Sat Nov 03 2007 dkukawka@suse.de
- updated to: development release 0.7.9-1
- added patch: linuxwacom-0.7.9-1.diff
  * fixes build with xorg-server 1.4
* Wed Oct 10 2007 mhopf@suse.de
- Added auto-dev scanning support.
* Sun Sep 30 2007 sndirsch@suse.de
- linuxwacom-0.7.8-3.diff
  * fixes build with xorg-server 1.4
* Thu Aug 16 2007 sndirsch@suse.de
- updated to new release 0.7.8-3
  * Fixed a wacom.c bug for 2.4 and older 2.6's
  * Fixed a double click issue
  * Updated wacomcpl
* Thu Aug 02 2007 sndirsch@suse.de
- updated to new release 0.7.8-2
  * Fixed a xsetwacom bug
  * Updated wacomcpl
* Fri Jul 13 2007 sndirsch@suse.de
- updated to new release 0.7.8-1
  * Updated HowTo pages
  * Fixed a control panel button bug
* Sat Jun 30 2007 sndirsch@suse.de
- updated to new release 0.7.8
  * Merged patch 1689476 (Gregor Richards)
  * Merged patch 1674472 (Magnus Vigerlöf)
  * Updated new xsetwacom commands
  * Updated wacom man page
  * Updated webpages to make /PRE scalable
  * Fixed an older UD pressure calculation error
  * Added RawSample option to xsetwacom
  * Reset old data after each out-prox event
  * Change Bamboo ring from strip to absolute wheel
  * Updated xsetwacom suppress option
  * Merged Ron's building and configuration patches
* Wed May 30 2007 dkukawka@suse.de
- updated package to new version v0.7.7-10:
  - Added 2 new xsetwacom potions (TVResolution0/1 and Screen_No)
  - Added support for Bamboo
  - Split wcmXCommand.c from xf86Wacom.c
  - Added 2 new xsetwacom potions (Common DebugLevel and TwinView)
  - Increased MAX_SUPPRESS from 20 to 100
  - Added new xsetwacom option to change suppress
  - Fixed suppress bug (Allan Wind)
  - Fixed a xsetwacom button and a relative wheel bug
  - Prepared for toggling CoreEvent option
  - Fixed bug 1698123
  - Incorporated patch 1680163 from Magnus Vigerloe
  - Updated wacom man page, wacom.4x
* Mon Apr 16 2007 dkukawka@suse.de
- update package to new version v0.7.7-7:
  - added --enable-wacdump
  - added 'ncurses ncurses-devel' to BuildRequires
* Thu Mar 08 2007 dkukawka@suse.de
- update package to new version v0.7.7-6:
  - allow to use the driver again, old version work no longer on
  openSUSE 10.3Alpha1Plus
  - removed no longer needed patches
* Mon Dec 04 2006 sndirsch@suse.de
- updated to release 0.7.6-4
  * updated xsetwacom
  * Fixed cursor relative out-prox issue
  * Changed CursorProx option from 2 inputs into 1
  * updated xsetwacom and wacom_drv
  * Removed serial number and device ID in 4th - 5th
  high bytes due to bug 1592814
  * Updated acinclude.m4 and configure.in (Mats Johannesson)
  * Updated X driver for Xinerama setup
  * Removed option gimp
* Thu Nov 02 2006 sndirsch@suse.de
- updated to release 0.7.6-2
  * Updated README and NEWS
  * Fixed a relative mode acceleration problem.
  * Updated webpages, acinclude.m4, and configure.in.
  * Updated wacdump for TabletPC.
  * Supports Graphire outbound tracking.
  * Updated acinclude.m4 and wacom.c
* Wed Oct 18 2006 sndirsch@suse.de
- updated to release 0.7.6-1
  * obsoletes linuxwacom-0.7.0-rotate-patch
- fix-linuxwacom-Makefile-64bitArch.diff no longer required
* Sat Sep 02 2006 sndirsch@suse.de
- xf86Parser.h/xf86Optrec.h has moved again
* Fri Jul 28 2006 sndirsch@suse.de
- use "-fno-strict-aliasing"
* Thu Jul 27 2006 sndirsch@suse.de
- cleanup
* Wed Jul 26 2006 sndirsch@suse.de
- fixed build (xf86Parser.h/xf86Optrec.h have been moved)
* Tue Jul 25 2006 sndirsch@suse.de
- fixed build for X.Org 7
* Tue Jun 20 2006 sndirsch@suse.de
-  updated to release 0.7.4-3
  * Fixed a Volito1 wacom.c issue as reported by
  Samuel Colin (Samuel.Colin@laposte.net)
* Fri May 26 2006 sndirsch@suse.de
- updated to release 0.7.4-2
  * fixes a typo in some wacom.c files
* Sat May 06 2006 sndirsch@suse.de
- updated to release 0.7.4-1
  * added support for DTF 521, I3 12x12, and I3 12x19
  * various bugfixes
* Fri Feb 24 2006 sndirsch@suse.de
- disabled stripping of "wacom_drv.o" again, which has resulted in
  a non loadable module ("(EE) LoadModule: Module wacom does not
  have a wacomModuleData data object.")
* Sat Feb 18 2006 schwab@suse.de
- Fix last change.
* Fri Feb 17 2006 sndirsch@suse.de
- strip input module (Bug #151801)
* Thu Feb 16 2006 sndirsch@suse.de
- linuxwacom-0.7.0-rotate-patch:
  * fixes wacom rotate support (Bug #150893)
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Dec 23 2005 sndirsch@suse.de
- updated to release 0.7.2
* Mon Dec 19 2005 sndirsch@suse.de
- added missing .so symlink to filelist
* Fri Dec 16 2005 sndirsch@suse.de
- updated to release 0.7.1-2
* Wed Nov 23 2005 sndirsch@suse.de
- xsetwacom.diff:
  * xsetwacom: fixed detection of wacom devices (#118795)
* Sat Nov 19 2005 sndirsch@suse.de
- updated to release 0.7.1 (beta release)
  * Added DTU710, DTF 720 and Graphire 4
  * Added Device ID info for USB and P4 tablets
  * Updated wacdump and xidump
* Wed Nov 16 2005 sndirsch@suse.de
- added libwacomxi.so symlink (#118793)
* Thu Sep 22 2005 sndirsch@suse.de
- updated to release 0.7.0
* Thu Jul 28 2005 sndirsch@suse.de
- moved /usr/lib/TkXInput/pkgIndex.tcl to
  /usr/share/tcl/x11-input-wacom-tools/
* Tue Jun 14 2005 sndirsch@suse.de
- removed udev rules file (conflicts with udev package)
* Thu Jun 09 2005 sndirsch@suse.de
- added libwacomxi.so to filelist (Bug #88259)
* Fri May 13 2005 sndirsch@suse.de
- use norootforbuild
* Tue May 10 2005 sndirsch@suse.de
- updated to release 0.6.8
* Thu May 05 2005 sndirsch@suse.de
- updated to release 0.6.7
  * obsoletes linuxwacom-0.6.6.diff
* Wed May 04 2005 sndirsch@suse.de
- package renaming:
  * linuxwacom       --> x11-input-wacom + x11-input-wacom-tools
  * linuxwacom-devel --> x11-input-wacom-devel
* Wed May 04 2005 sndirsch@suse.de
- fixed build on s390/s390x
* Tue May 03 2005 sndirsch@suse.de
- build wacom Xinput driver as well (was in xorg-x11-server before)
* Wed Mar 09 2005 dkukawka@suse.de
- fixed bug with /usr/bin/xsetwacom , added needed libs
- added udev rule for wacom
* Tue Dec 07 2004 sndirsch@suse.de
- updated to release 0.6.6
* Wed Nov 17 2004 sndirsch@suse.de
- updated to release 0.6.5
* Thu Aug 12 2004 sndirsch@suse.de
- updated to release 0.6.4
* Fri Jul 16 2004 sndirsch@suse.de
- updated to release 0.6.3
* Tue May 25 2004 sndirsch@suse.de
- updated to release 0.6.2
  * fixes DoubleSpeed, DoubleRadius and TwinView issues
* Mon May 24 2004 sndirsch@suse.de
- added -devel package
* Mon May 24 2004 sndirsch@suse.de
- created package
openSUSE Build Service is sponsored by