File xdotool.spec of Package xdotool
#
# spec file for package xdotool (2.20101012.3049)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: xdotool
Version: 2.20101012.3049
Release: 1
Summary: Fake keyboard/mouse input
Source0: %{name}-%{version}.tar.bz2
# http://semicomplete.googlecode.com/files/xdotool-2.20101012.3049.tar.gz
# PATCH-FIX-UPSTREAM fix over and back errors
# http://code.google.com/p/semicomplete/issues/detail?id=46
Patch0: xdotool-fix-man-page-pod-errors.patch
URL: http://www.semicomplete.com/projects/xdotool/
Group: System/X11/Utilities
License: AS-IS
BuildRequires: gcc-c++
BuildRequires: xorg-x11-devel
BuildRequires: perl
BuildRequires: patch
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.
Author:
-------
Jordan Sissel <jls@semicomplete.com>
%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.
Author:
-------
Jordan Sissel <jls@semicomplete.com>
Library and Header files for %{name}
%prep
%setup -q
%patch0
%build
# Rebuild patched man page
/usr/bin/pod2man %{name}.pod %{name}.1
# 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
%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.gz
%{_libdir}/libxdo.so.*
%files devel
%defattr(-,root,root)
%attr(0644,root,root) %{_includedir}/*.h
%{_libdir}/libxdo.so
%changelog