File rdesktop.spec of Package rdesktop

#
# spec file for package rdesktop
#
# Copyright (c) 2011 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:           rdesktop
BuildRequires:  alsa-devel libsamplerate-devel openssl-devel pkg-config xorg-x11-devel
Url:            http://www.rdesktop.org/
License:        GPL v3 or later
Group:          Productivity/Networking/Remote Desktop
AutoReqProv:    on
Version:        1.7.0
Release:        1
Summary:        A Remote Desktop Protocol client
Source:         %{name}-%{version}.tar.bz2
Patch0:         rdesktop-1.7.0-lib64.dif
Patch1:         rdesktop-1.5.0-fs-fix-1.dif 
Patch2:         rdesktop-1.5.0-fix-printer-strcmp.dif
Patch3:         rdesktop-1.6.0-fix-pkgconfig-check.dif
Patch4:         rdesktop-NOMAD.dif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
rdesktop is an open source client for Windows NT Terminal Server and
Windows 2000 Terminal Services, capable of natively speaking Remote
Desktop Protocol (RDP) in order to present the user's NT desktop.
Unlike Citrix ICA, no server extensions are required.



Authors:
--------
    Matt Chapman <matthewc@cse.unsw.edu.au>

%prep
%setup
%patch0
#%patch1
#%patch2
%patch3 -p1
#%patch4 -p1

%build
%{suse_update_config}
autoreconf --force --install --verbose
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" ./configure --prefix=/usr \
                                                         --libdir=%{_libdir} \
                                                         --mandir=%{_mandir} \
                                                         --with-openssl=/usr
make

%install
make DESTDIR=$RPM_BUILD_ROOT STRIP=true install
make DESTDIR=$RPM_BUILD_ROOT installman
mkdir -p $RPM_BUILD_ROOT/usr/share/rdesktop
cp -r keymaps $RPM_BUILD_ROOT/usr/share/rdesktop
chmod -R a+r $RPM_BUILD_ROOT/usr/share/rdesktop/keymaps

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,755)
%doc COPYING doc README
/usr/bin/rdesktop
/usr/share/rdesktop
#/usr/bin/rdp-srvr
%{_mandir}/man1/rdesktop.1.gz

%changelog
openSUSE Build Service is sponsored by