File mouseemu.spec of Package mouseemu

# spec file for package mouseemu (Version 0.15)
# Copyright (c) 2008 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

# norootforbuild

Name:           mouseemu
Version:        0.15
Release:        200810151034
Summary:        A Program to Activate Mouse Button Emulation on Macs with One-Button Mice
License:        Artistic License
Group:          System/Base
AutoReqProv:    on
PreReq:         %insserv_prereq %fillup_prereq
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source1:        rc.mouseemu
Source2:        sysconfig.mouseemu
Patch1:         mouseemu.nofork.patch
Patch2:         mouseemu.mod-passthrough.patch
Patch3:         mouseemu.makefile.patch
Patch4:         mouseemu.usage.patch
Patch5:         mouseemu.defaults.patch
Patch6:         mouseemu.manpage.patch
Patch7:         mouseemu.rescan.patch
Patch8:         mouseemu.syslog.patch
Patch9:         mouseemu.pidfile.patch
Patch10:        mouseemu.bustype_virtual.patch
Patch11:        mouseemu.dual_devices.patch
Patch12:        mouseemu.initialize_device.patch
Patch13:        mouseemu.uinput_error_msg.patch
Patch14:        mouseemu.write_error.patch
Patch15:        mouseemu.unregister_inputhandler.patch
ExclusiveArch:  ppc ppc64

With this package, you can emulate the second and third mouse buttons
on Powermacs if you have a one-button mouse.

Activate: rcmouseemu start Deactivate: rcmouseemu stop

The default is determined in /etc/sysconfig/mouseemu by the variable

    Peter Poeml <>

%setup -q -n mouseemu
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
%patch14 -p1
%patch15 -p1

cp %{SOURCE1} %{SOURCE2} .

make DESTDIR="$RPM_BUILD_ROOT" install
mkdir -p $RPM_BUILD_ROOT/etc/init.d
mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates
install -m 755 rc.mouseemu		$RPM_BUILD_ROOT/etc/init.d/mouseemu
ln -sf ../../etc/init.d/mouseemu 	$RPM_BUILD_ROOT/usr/sbin/rcmouseemu
install -m 644 sysconfig.mouseemu	$RPM_BUILD_ROOT/var/adm/fillup-templates/


%{fillup_and_insserv -y mouseemu}


%defattr (-,root,root)
%config /etc/init.d/mouseemu
%doc /usr/share/man/man*/*

* Wed Oct 15 2008
- added ExclusiveArch
* Thu Oct 04 2007
- use a mousebutton daemon (147879) instead of kernel emulation
* Wed Jan 25 2006
- converted neededforbuild to BuildRequires
* Tue Aug 02 2005
- check if /proc/sys/dev/mac_hid exists
* Fri Nov 01 2002
- do not depend on network and syslog in rcmouseemu
* Thu Aug 01 2002
- spec file: use PreReq
* Mon Feb 18 2002
- move configuration to /etc/sysconfig/, and use the new fillup and
  insserv macros
* Fri Mar 23 2001
- update documentation because it is useful to all Macs with
  one button mice, including iBooks and Powerbooks
* Fri Mar 23 2001
- new package (relevant only for OldWorld Macs)