File x2x.spec of Package x2x

#
# spec file for package x2x
#
# Copyright (c) 2014 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:           x2x
Version:        1.30_beta
Release:        0
Summary:        X Window System Display Remote Control
License:        GPL-2.0+
Group:          System/X11/Utilities
Url:            http://x2x.dottedmag.net/
#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
Patch0:         x2x-1.30-beta.dif
Patch1:         x2x-1.30-beta-keycodes.dif
Patch2:         x2x-1.30-beta-buttonmasks.dif
BuildRequires:  imake
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xext)
BuildRequires:  pkgconfig(xscrnsaver)
BuildRequires:  pkgconfig(xtst)
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 -q -n x2x-1.30-beta
%patch0
%patch1
%patch2

%build
xmkmf -a
make %{?_smp_mflags} CCOPTIONS="%{optflags} -fno-strict-aliasing"

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
make install.man DESTDIR=%{buildroot}

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

%changelog
openSUSE Build Service is sponsored by