File xautomation.spec of Package xautomation

#
# spec file for package xautomation (Version 1.03)
#
# Copyright 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.

Summary: Scriptable X control from the command line
Name: xautomation
Version: 1.03
Release: 1
Source0: %{name}-%{version}.tar.bz2
#Source1: http://hoopajoo.net/static/projects/xautomation-1.03.tar.gz
Vendor: %{vendor}
URL: http://hoopajoo.net/projects/xautomation.html
License: GPLv2
Group: Productivity/Other
AutoReqProv: on
Requires: imlib2 >= 1.4
BuildRequires: xorg-x11-devel xorg-x11-libX11-devel xorg-x11-libXext-devel
BuildRequires: xorg-x11-libxcb-devel xorg-x11-libXau-devel
BuildRequires:	imlib2-devel >= 1.4
BuildRoot: %{_builddir}/%{name}-%{version}-build

%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


%build
if [ -x ./configure ]; then
  CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} \
	--libdir=%{_prefix}/%_lib \
	--sysconfdir=%{_sysconfdir} \
	--mandir=%{_mandir} \
	--disable-dependancy-tracking \
	--disable-static
else
  CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%{_prefix}
fi

%{__make} %{?jobs:-j%jobs}

%debug_package


%install
%{__make} DESTDIR=$RPM_BUILD_ROOT install 


%clean
%__rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%attr(0755,root,root)%{_bindir}/pat2ppm
%attr(0755,root,root)%{_bindir}/patextract
%attr(0755,root,root)%{_bindir}/png2pat
%attr(0755,root,root)%{_bindir}/rgb2pat
%attr(0755,root,root)%{_bindir}/visgrep
%attr(0755,root,root)%{_bindir}/xmousepos
%attr(0755,root,root)%{_bindir}/xte
%doc %{_mandir}/man1/pat2ppm.1.gz
%doc %{_mandir}/man1/patextract.1.gz
%doc %{_mandir}/man1/png2pat.1.gz
%doc %{_mandir}/man1/rgb2pat.1.gz
%doc %{_mandir}/man1/visgrep.1.gz
%doc %{_mandir}/man1/xmousepos.1.gz
%doc %{_mandir}/man1/xte.1.gz
%doc %{_mandir}/man7/%{name}.7.gz



%changelog
* Fri Jun 19 2009 Mario GarcĂ­a H. <code933k@gmail.com> - 1.03
- Initial package.
openSUSE Build Service is sponsored by