diff --git a/dead.package b/dead.package deleted file mode 100644 index 42463a6..0000000 --- a/dead.package +++ /dev/null @@ -1,2 +0,0 @@ -Obsolete package with Xorg's new input layer - diff --git a/sources b/sources new file mode 100644 index 0000000..a21be5e --- /dev/null +++ b/sources @@ -0,0 +1 @@ +814152b327aea3cf5e373d92f7472f52 wdaemon-0.15.tar.bz2 diff --git a/wdaemon-add_abs_z.patch b/wdaemon-add_abs_z.patch new file mode 100644 index 0000000..3881fe8 --- /dev/null +++ b/wdaemon-add_abs_z.patch @@ -0,0 +1,27 @@ +--- a/wacom.c (revision 102) ++++ b/wacom.c (revision 103) +@@ -201,6 +201,7 @@ + set_event(info, UI_SET_KEYBIT, BTN_1); + set_event(info, UI_SET_KEYBIT, BTN_2); + set_event(info, UI_SET_KEYBIT, BTN_3); ++ set_event(info, UI_SET_ABSBIT, ABS_Z); + /* fall thru */ + case INTUOS: + set_event(info, UI_SET_EVBIT, EV_MSC); +@@ -318,6 +319,7 @@ + case GRAPHIRE: + break; + ++ case BEE: + case INTUOS3: + case INTUOS3L: + case CINTIQ: +@@ -325,6 +327,8 @@ + /* fall through */ + case INTUOS3S: + dev->absmax[ABS_RX] = 4096; ++ dev->absmax[ABS_Z] = 899; ++ dev->absmin[ABS_Z] = -900; + /* fall through */ + case INTUOS: + dev->absmax[ABS_WHEEL] = 1023; diff --git a/wdaemon.spec b/wdaemon.spec new file mode 100644 index 0000000..744f64d --- /dev/null +++ b/wdaemon.spec @@ -0,0 +1,105 @@ +Name: wdaemon +Version: 0.15 +Release: 1%{?dist} +Summary: Hotplug helper for Wacom X.org driver + +Group: User Interface/X Hardware Support +License: GPLv2+ +URL: http://jake.ruivo.org/~aris/wdaemon/ +Source0: http://jake.ruivo.org/~aris/wdaemon/wdaemon-%{version}.tar.bz2 + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} +BuildRequires: glibc-devel +Requires: udev >= 030-21 + +%description +Helper application which emulates persistent input devices for Wacom tablets +so they can be plugged and unplugged while X.org server is running. This should +go away as soon X.org properly supports hotplugging. + +%prep +%setup -q + +%build +export CFLAGS="$RPM_OPT_FLAGS" +make + +%install +rm -rf $RPM_BUILD_ROOT + +make DESTDIR=$RPM_BUILD_ROOT bindir=%{_bindir} sysconfdir=%{_sysconfdir} install; +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/udev/scripts/ +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/ +install -m 0755 udev/is_uinput.sh $RPM_BUILD_ROOT%{_sysconfdir}/udev/scripts/ +install -m 0644 udev/61-uinput-wacom.rules $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/ +install -m 0644 udev/61-uinput-stddev.rules $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/ + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +if [ $1 = 1 ]; then + /sbin/chkconfig --add %{name} +fi + +%preun +if [ $1 = 0 ]; then + /sbin/service %{name} stop > /dev/null 2>&1 + /sbin/chkconfig --del %{name} +fi + +%postun +if [ $1 -ge 1 ]; then + /sbin/service %{name} condrestart >/dev/null 2>&1 +fi + +%files +%defattr(-,root,root,-) +%doc AUTHORS LICENSE Changelog README simple.conf +%{_bindir}/wdaemon +%config(noreplace) %{_sysconfdir}/udev/rules.d/61-uinput-wacom.rules +%config(noreplace) %{_sysconfdir}/udev/rules.d/61-uinput-stddev.rules +%{_sysconfdir}/rc.d/init.d/wdaemon +%{_sysconfdir}/udev/scripts/is_uinput.sh + +%changelog +* Tue Sep 02 2008 Aristeu Rozanski 0.15-1 +- updated to version 0.15 + +* Wed May 21 2008 Tom "spot" Callaway 0.14-2 +- fix license tag + +* Wed Mar 12 2008 Aristeu Rozanski 0.14-1 +- Updated to version 0.14 +- Added fix for Z axis on newer tablets + +* Wed Feb 06 2008 Aristeu Rozanski 0.13-1 +- Updated to version 0.13 +- Added missing entries in udev rules (Bamboo and Intuos3 4x6") + +* Wed Sep 19 2007 Aristeu Rozanski 0.12-1 +- Updated to version 0.12 + +* Wed Aug 01 2007 Aristeu Rozanski 0.11-1 +- Updated to version 0.11 + +* Tue Jul 24 2007 Aristeu S. Rozanski F. 0.10-3 +- More problems found by Jarod Wilson fixed: +- Removing exclusive architectures, it used to be in sync with linuxwacom + package +- marking udev rules as non-replaceable config files +- using install on makefile + +* Mon Jul 23 2007 Aristeu S. Rozanski F. 0.10-2 +- Fixing the problems found by Jarod Wilson: +- Fixing make install target +- Fixing Makefile so it honors the provided CFLAGS +- not using makeinstall macro +- installing is_uinput.sh as 755 instead of changing later with attr + +* Fri Jul 20 2007 Aristeu S. Rozanski F. 0.10-1 +* upgrading to version 0.10 + +* Thu Jul 19 2007 Aristeu S. Rozanski F. 0.09-1 +- first release +