diff --git a/.cvsignore b/.cvsignore index e69de29..7dd2652 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +xautomation-1.03.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..9975c8b --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +xautomation-1_03-3_fc13:F-13:xautomation-1.03-3.fc13.src.rpm:1278372909 diff --git a/sources b/sources index e69de29..b291530 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +91030079b0ecf96195dd21bcec635cb6 xautomation-1.03.tar.gz diff --git a/xautomation-1.03-DSO.patch b/xautomation-1.03-DSO.patch new file mode 100644 index 0000000..e77502c --- /dev/null +++ b/xautomation-1.03-DSO.patch @@ -0,0 +1,12 @@ +diff -up xautomation-1.03/Makefile.in.orig xautomation-1.03/Makefile.in +--- xautomation-1.03/Makefile.in.orig 2009-04-14 18:07:49.000000000 +0200 ++++ xautomation-1.03/Makefile.in 2010-06-13 14:31:45.547527930 +0200 +@@ -79,7 +79,7 @@ am__depfiles_maybe = depfiles + COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) + CCLD = $(CC) +-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ ++LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -lX11 -o $@ + SOURCES = $(pat2ppm_SOURCES) $(patextract_SOURCES) $(png2pat_SOURCES) \ + $(rgb2pat_SOURCES) $(visgrep_SOURCES) $(xmousepos_SOURCES) \ + $(xte_SOURCES) diff --git a/xautomation.spec b/xautomation.spec new file mode 100644 index 0000000..83c494d --- /dev/null +++ b/xautomation.spec @@ -0,0 +1,68 @@ +Name: xautomation +Version: 1.03 +Release: 3%{?dist} +Summary: Tools to automate tasks in X, even detecting on screen images + +Group: User Interface/X +License: GPLv2+ +URL: http://hoopajoo.net/projects/xautomation.html +Source0: http://hoopajoo.net/static/projects/%{name}-%{version}.tar.gz +# Fix DSO linking +Patch0: xautomation-1.03-DSO.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: libpng-devel +BuildRequires: libXtst-devel + +%description +Control X from the command line for scripts, and do "visual +scraping" to find things on the screen. The control interface allows +mouse movement, clicking, button up/down, key up/down, etc, and uses +the XTest extension so you don't have the annoying problems that xse +has when apps ignore sent events. The visgrep program find images +inside of images and reports the coordinates, allowing programs to +find buttons, etc, on the screen to click on. + + +%prep +%setup -q +%patch0 -p1 -b .DSO + + +%build +%configure +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc AUTHORS COPYING README +%{_bindir}/pat2ppm +%{_bindir}/patextract +%{_bindir}/png2pat +%{_bindir}/rgb2pat +%{_bindir}/visgrep +%{_bindir}/xmousepos +%{_bindir}/xte +%{_mandir}/man1/*.1.* +%{_mandir}/man7/*.7.* + + +%changelog +* Tue Jul 6 2010 EL MORABITY Mohamed 1.03-3 +- Bump release + +* Wed Jun 23 2010 EL MORABITY Mohamed 1.03-2 +- Fix mispelling in %%description + +* Sun Jun 13 2010 EL MORABITY Mohamed 1.03-1 +- Initial RPM release