File xmacro.spec of Package xmacro

Name:		xmacro
Group: 		System/X11/Utilities
Version: 	2000.12.09.cvs
Release: 	0
License: 	GPL
URL:		http://xmacro.sourceforge.net/
Summary: 	Program for recording and replaying keyboard and mouse events
Source:		%name-%version.tar.bz2
Source1:	README.SUSE
BuildRoot:	%{_tmppath}/%name-%version-build
Requires:	xorg-x11
BuildRequires:	gcc-c++ xorg-x11-devel xorg-x11-libs xorg-x11-libXext-devel
Patch0:         xmacro-Makefile-refactoring.patch
Patch1:         xmacro-have-iostream.patch
Patch2:         xmacro-compile-warnings.patch
Patch3:         xmacro-use-std-namespace.patch
Patch4:         xmacro-fix-format-type.patch
Patch5:         xmacro-remove-unused-vars.patch

%description
The XMacro package contains two simple, C++ programs (xmacrorec and xmacroplay) 
for recording and replaying keyboard and mouse events on an X server. This 
functionality is achieved through the XTest extension. (BTW it would be better 
to use the XTrap extension but it's not widespread in precompiled X servers...) 
The programs are heavily based on the xremote utility of Jan Ekholm (chakie at 
infa.abo.fi).

%prep
%setup -n %name-cvs
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1

%build
make
cp %{SOURCE1} .

%install
mkdir -p $RPM_BUILD_ROOT%{_bindir}
cp xmacro{play,rec{,2}} $RPM_BUILD_ROOT%{_bindir}

%files
%defattr(-,root,root)
%doc COPYING README README.SUSE
%{_bindir}/xmacro*
openSUSE Build Service is sponsored by