File x2x.spec of Package x2x

#
# spec file for package x2x (Version 1.30_beta)
#
# Copyright (c) 2010 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/
#

# norootforbuild


Name:           x2x
Url:            http://x2x.dottedmag.net/
BuildRequires:  xorg-x11 xorg-x11-devel
License:        GPL-2.0+
Group:          System/X11/Utilities
AutoReqProv:    on
Version:        1.30_beta
Release:        225
Summary:        X Window System Display Remote Control
#Source:      http://gatekeeper.dec.com/pub/DEC/SRC/x2x/x2x-1.27.tar.gz
Source:         http://freshmeat.net/redir/x2x/11816/url_tgz/x2x-1.30-beta.tar.gz
Patch:          x2x-1.30-beta.dif
Patch1:         x2x-1.30-beta-keycodes.dif
Patch2:         x2x-1.30-beta-buttonmasks.dif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
x2x allows the keyboard and mouse on one ("from") X Window System
display to be used to control another ("to") X Window System display.



%prep
%setup -n x2x-1.30-beta
%patch
%patch1
%patch2

%build
xmkmf -a
make CCOPTIONS="$RPM_OPT_FLAGS -fno-strict-aliasing"

%install
make install DESTDIR=${RPM_BUILD_ROOT}
make install.man DESTDIR=${RPM_BUILD_ROOT}

%clean
rm -rf ${RPM_BUILD_ROOT}

%files
%defattr(-,root,root)
%_bindir/x2x
%_mandir/man1/x2x.1x.gz

%changelog