File x2x.spec of Package x2x

#
# spec file for package x2x (Version 1.30_beta)
#
# Copyright (c) 2008 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:           x2x
Url:            http://x2x.dottedmag.net/
%define _prefix %(xft-config --prefix)
%if "%{_prefix}" == "/usr/X11R6"
%define _mandir %_prefix/man
%endif
BuildRequires:  xorg-x11 xorg-x11-devel
License:        Other uncritical OpenSource License
Group:          System/X11/Utilities
AutoReqProv:    on
Version:        1.30_beta
Release:        184
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
* Mon Jul 14 2008 werner@suse.de
- Make mouse buttons work window change mode even if other masks
  are active like NumLock.
* Fri Jan 04 2008 werner@suse.de
- Add patch from http://x2x.dottedmag.net/ to repository to avoid
  mixed up key symbols of the `from' and `to` display (bug #303870
  and bug #351545).
* Wed Aug 02 2006 werner@suse.de
- Force both display to be used synchronous
- Release not symbols but real keys to avoid problem with e.g.
  shifted keys and their active symbols
- Use a signal handler on SIGINT/SIGTERM to restore keyboard
* Mon Jul 24 2006 mmarek@suse.de
- fix filelist for build with modular Xorg
* Thu Mar 16 2006 werner@suse.de
- Let NumLock and CapsLock alive in both directions
* Wed Mar 15 2006 werner@suse.de
- Wake and use slave display even if DPMS was activated
- Use RPM_OPT_FLAGS
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Aug 05 2004 sndirsch@suse.de
- updated to version 1.30-beta
* Sun Jan 11 2004 adrian@suse.de
- add %%defattr
* Tue Sep 17 2002 ro@suse.de
- removed bogus self-provides
* Mon Jun 11 2001 pblaha@suse.cz
- mv x2x.1 -> x2x.man for build with xmkmf
* Fri Apr 28 2000 smid@suse.cz
- buildroot added
* Wed Feb 09 2000 sndirsch@suse.de
- changed group tag
* Mon Sep 13 1999 bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Mon Jul 05 1999 sndirsch@suse.de
- created package
openSUSE Build Service is sponsored by