File xdotool.spec of Package xdotool
#
# spec file for package xdotool
#
# Copyright (c) 2013 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 http://bugs.opensuse.org/
#
Name: xdotool
Version: 2.2012+git.20130201.65cb0b1
Release: 0
Summary: Fake keyboard/mouse input
License: BSD-3-Clause
Group: System/X11/Utilities
#Source: http://semicomplete.googlecode.com/files/xdotool-%{version}.tar.gz
Source: xdotool-%{version}.tar.bz2
Url: http://www.semicomplete.com/projects/xdotool/
BuildRequires: gcc-c++
BuildRequires: make
BuildRequires: xorg-x11-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This tool lets you programatically (or manually) simulate keyboard input and
mouse activity, move and resize windows, etc. It does this using X11's XTEST
extension and other Xlib functions.
%package devel
Summary: Development and Library files
Group: Development/Libraries/X11
Requires: %{name} = %{version}
%description devel
This tool lets you programatically (or manually) simulate keyboard input and
mouse activity, move and resize windows, etc. It does this using X11's XTEST
extension and other Xlib functions.
Library and Header files for %{name}
%prep
%setup -q
%build
# Fix file permissions
chmod 0644 examples/ffsp.sh
export SUSE_ASNEEDED=0
export WARNFLAGS="$RPM_OPT_FLAGS"
%__make %{?_smp_mflags}
%install
%{__make} \
DESTDIR=%{buildroot} \
PREFIX=%{_prefix} \
INSTALLLIB=%{_libdir} \
INSTALLMAN=%{_mandir} \
install
%__chmod 0644 examples/*
%post -p /sbin/ldconfig
%post devel -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%postun devel -p /sbin/ldconfig
%clean
%{__rm} -rf '%{buildroot}'
%files
%defattr(-,root,root)
%{_bindir}/%{name}
%doc CHANGELIST COPYRIGHT README
%doc examples
%{_mandir}/man1/%{name}.1*
%{_libdir}/libxdo.so.*
%files devel
%defattr(-,root,root)
%attr(0644,root,root) %{_includedir}/*.h
%{_libdir}/libxdo.so
%changelog