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

# norootforbuild

Name:           x2x
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
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

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

%setup -n x2x-1.30-beta

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

make install DESTDIR=${RPM_BUILD_ROOT}

rm -rf ${RPM_BUILD_ROOT}