File xwit.spec of Package xwit
# norootforbuild
Name: xwit
Version: 3.4
Release: 0
Summary: Collection of simple routines to call some X11 functions
Source: ftp://ftp.x.org/contrib/utilities/xwit-%{version}.tar.gz
Patch1: http://ftp.de.debian.org/debian/pool/main/x/xwit/xwit_3.4-10.diff.gz
Patch2: xwit-lib_order.patch
Group: System/X11/Utilities
License: BSD (revised), Public Domain, MIT/X
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: xorg-x11-devel
BuildRequires: gcc make glibc-devel
%description
xwit allows to call some X11 functions from the command line or a shell
script.
xwit will resize, iconify, pop, and move windows given by name or id, change
an icon, title or name, set the screen saver going, and change individual key
autorepeat settings, move the mouse cursor, etc.
%prep
%setup -q
%patch1 -p1
%patch2
%build
make %{?_smp_mflags} VERBOSE=1 \
%if %suse_version < 1030
LIBRARIES="-L/usr/X11R6/%{_lib} -lX11" \
%endif
CFLAGS="%{optflags}"
%install
%__install -D -m0755 xwit "%{buildroot}%{_bindir}/xwit"
%__install -D -m0644 xwit.man "%{buildroot}%{_mandir}/man1/xwit.1"
%clean
%__rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%doc README
%{_bindir}/xwit
%doc %{_mandir}/man1/xwit.1*
%changelog
* Thu May 1 2008 Pascal Bleser <guru@unixtech.be> 3.4
- new package
# Local Variables:
# mode: rpm-spec
# tab-width: 3
# End: