File lbxproxy.spec of Package lbxproxy

#
# spec file for package lbxproxy
#
# Copyright (c) 2012 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:           lbxproxy
Version:        1.0.2
Release:        0
License:        MIT
Summary:        Low BandWidth X proxy
Url:            http://xorg.freedesktop.org/
Group:          System/X11/Utilities
Source0:        http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
# lbxproxy.diff -- Change path to config file
Patch0:         lbxproxy.diff
# PATCH-FIX-UPSTREAM lbxproxy-fix-cast.patch fdo#48669 vuntz@opensuse.org -- Fix cast that causes build breakage
Patch1:         lbxproxy-fix-cast.patch
# needed for patch0
BuildRequires:  libtool
BuildRequires:  pkg-config
BuildRequires:  zlib-devel
BuildRequires:  pkgconfig(bigreqsproto)
BuildRequires:  pkgconfig(ice)
BuildRequires:  pkgconfig(lbxutil)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xext)
BuildRequires:  pkgconfig(xorg-macros) >= 1.3
BuildRequires:  pkgconfig(xproxymngproto)
BuildRequires:  pkgconfig(xtrans)
# This was part of the xorg-x11 package up to version 7.6
Conflicts:      xorg-x11 <= 7.6
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Applications that would like to take advantage of the Low Bandwidth
extension to X (LBX) must make their connections to an lbxproxy.
These applications need to know nothing about LBX, they simply connect
to the lbxproxy as if were a regular server. The lbxproxy accepts
client connections, multiplexes them over a single connection to the X
server, and performs various optimizations on the X protocol to make
it faster over low bandwidth and/or high latency connections.

%prep
%setup -q
%patch0 -p0
%patch1 -p1
# needed for patch0
autoreconf -fi

%build
# To fix: di/wire.c:1119:27: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
export CFLAGS="%{optflags} -fno-strict-aliasing"
%configure
make %{?_smp_mflags}

%install
%make_install

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README
%config %{_sysconfdir}/X11/lbxproxy/
%{_bindir}/lbxproxy
%{_mandir}/man1/lbxproxy.1%{?ext_man}

%changelog
openSUSE Build Service is sponsored by