From 7e501b59a61cf30aa5b7db5e05bfcabf2bd54fe2 Mon Sep 17 00:00:00 2001 From: Sindre Pedersen Bjørdal Date: May 30 2008 21:14:45 +0000 Subject: *** empty log message *** --- diff --git a/sources b/sources index e69de29..66da140 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +a4db4b81840db2ff806b26d36a5b6458 xdotool-20071230.tar.gz diff --git a/xdotool-20071230-prefix.patch b/xdotool-20071230-prefix.patch new file mode 100644 index 0000000..06fa78b --- /dev/null +++ b/xdotool-20071230-prefix.patch @@ -0,0 +1,13 @@ +diff -up xdotool-20071230/Makefile.orig xdotool-20071230/Makefile +--- xdotool-20071230/Makefile.orig 2008-05-28 12:47:26.000000000 +0200 ++++ xdotool-20071230/Makefile 2008-05-28 12:48:12.000000000 +0200 +@@ -1,7 +1,7 @@ + CFLAGS+=-Wall + +-DEFAULT_LIBS=-L/usr/X11R6/lib -L/usr/local/lib -lX11 -lXtst +-DEFAULT_INC=-I/usr/X11R6/include -I/usr/local/include ++DEFAULT_LIBS=-L/usr/X11R6/lib -L/usr/lib -lX11 -lXtst ++DEFAULT_INC=-I/usr/X11R6/include -I/usr/include + + LIBS=`pkg-config --libs x11 xtst 2> /dev/null || echo "$(DEFAULT_LIBS)"` + INC=`pkg-config --cflags x11 xtst 2> /dev/null || echo "$(DEFAULT_INC)"` diff --git a/xdotool.spec b/xdotool.spec new file mode 100644 index 0000000..b3eba3f --- /dev/null +++ b/xdotool.spec @@ -0,0 +1,54 @@ +Name: xdotool +Version: 20071230 +Release: 2%{?dist} +Summary: Fake keyboard/mouse input + +Group: User Interface/X +License: BSD +URL: http://www.semicomplete.com/projects/xdotool/ +Source0: http://www.semicomplete.com/files/xdotool/%{name}-%{version}.tar.gz +Patch0: %{name}-%{version}-prefix.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: libXtst-devel + +%description +This tool lets you programatically (or manually) simulate keyboard input +and mouse activity, move and resize windows, etc. + +%prep +%setup -q +%patch0 -p1 + +%build +export CFLAGS=$RPM_OPT_FLAGS +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +#manual install +install -D -m 0755 xdotool $RPM_BUILD_ROOT%{_bindir}/xdotool + +#fix permissions +chmod 0644 examples/ffsp.sh + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc CHANGELIST COPYRIGHT README +%doc examples +%{_bindir}/* + + +%changelog +* Wed May 28 2008 Sindre Pedersen Bjørdal - 20071230-2 +- Add patch to fix prefix +- Add CFLAGS to %%build + +* Tue May 06 2008 Sindre Pedersen Bjørdal - 20071230-1 +- Initial build +