File rdesktop.spec of Package rdesktop
#
# spec file for package rdesktop
#
# Copyright (c) 2018 SUSE LINUX 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: rdesktop
Version: 1.8.3
Release: 0
Summary: A Remote Desktop Protocol client
License: GPL-3.0+
Group: Productivity/Networking/Other
Url: http://www.rdesktop.org/
Source: http://prdownloads.sourceforge.net/rdesktop/%{name}-%{version}.tar.gz
## FIX-openSUSE: remove "Don't depend on pkg-config"
Patch0: rdesktop-fix_pkgconfig_check.patch
# PATCH-FIX-UPSTREAM rdesktop-Fix-OpenSSL-1.1-compability-issues.patch
Patch1: rdesktop-Fix-OpenSSL-1.1-compability-issues.patch
# PATCH-FIX-UPSTREAM rdesktop-Fix-crash-in-rdssl_cert_to_rkey.patch
Patch2: rdesktop-Fix-crash-in-rdssl_cert_to_rkey.patch
# PATCH-FIX-OPENSUSE rdesktop-Fix-keymap-script.patch
Patch3: rdesktop-Fix-keymap-script.patch
Patch4: rdesktop-Fix-key-caching.patch
BuildRequires: alsa-devel
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libgssglue-devel
BuildRequires: libsamplerate-devel
BuildRequires: libtool
BuildRequires: openssl-devel
BuildRequires: pcsc-lite-devel
BuildRequires: pkg-config
BuildRequires: pkgconfig(ao)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xrandr)
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.
%prep
%setup -q
%patch0
%if 0%{?suse_version} > 1110
%patch1 -p1
%patch2 -p1
%patch4 -p1
%endif
%patch3 -p1
## rpmlint
# incorrect-fsf-address /usr/share/rdesktop/keymaps/convert-map
perl -p -i -e 's|^# Foundation.*|# Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA|' keymaps/convert-map
%build
autoreconf -fiv
CFLAGS="%{optflags} -fno-strict-aliasing" \
%configure \
--enable-smartcard \
--with-openssl=%{_prefix} \
--with-ipv6
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} STRIP=true install
make DESTDIR=%{buildroot} installman
mkdir -p %{buildroot}%{_datadir}/rdesktop
cp -r keymaps %{buildroot}%{_datadir}/rdesktop
chmod -R a+r %{buildroot}%{_datadir}/rdesktop/keymaps
%files
%defattr(-,root,root,755)
%doc COPYING doc README
%{_bindir}/rdesktop
%{_datadir}/rdesktop
%{_mandir}/man1/rdesktop.1.gz
%changelog