Some assorted fixes found in the "Issues" and "Pull requests" sections of the rdesktop github site:
- add patch fix_C99_issue_in_configure.patch to fix detection of statvfs64
- add patch fix_dashes_in_manpage.patch to prevent dashes from being utf8 mangled
- add patch fix_segfault_in_utils_cert_handle_exception.patch
- add patch fix_wrong_string_null_terminated.patch to null-terminate
the correct variable
- adjust patch rdesktop-fix_pkgconfig_check.patch so it can be applied with "-p1"
- minor spec cleanup
OBS-URL: https://build.opensuse.org/request/show/1138147
OBS-URL: https://build.opensuse.org/package/show/X11:Utilities/rdesktop?expand=0&rev=53
93 lines
3.2 KiB
RPMSpec
93 lines
3.2 KiB
RPMSpec
#
|
|
# spec file for package rdesktop
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: rdesktop
|
|
Version: 1.9.0
|
|
Release: 0
|
|
Summary: A Remote Desktop Protocol client
|
|
License: GPL-3.0-or-later
|
|
Group: Productivity/Networking/Other
|
|
URL: http://www.rdesktop.org/
|
|
Source: https://github.com/rdesktop/rdesktop/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
|
## FIX-openSUSE: remove "Don't depend on pkg-config"
|
|
Patch0: rdesktop-fix_pkgconfig_check.patch
|
|
# PATCH-FIX-OPENSUSE rdesktop-convert-map.python3.patch -- seife+obs@b1-systems.com
|
|
Patch1: rdesktop-convert-map.python3.patch
|
|
# PATCH-FIX-UPSTREAM rdesktop-fix_segfault_in_rdssl_rkey_get_exp_mod.patch
|
|
Patch2: rdesktop-fix_segfault_in_rdssl_rkey_get_exp_mod.patch
|
|
# PATCH-FIX-OPENSUSE fix_C99_issue_in_configure.patch
|
|
Patch3: fix_C99_issue_in_configure.patch
|
|
# PATCH-FIX-OPENSUSE fix_dashes_in_manpage.patch
|
|
Patch4: fix_dashes_in_manpage.patch
|
|
# PATCH-FIX-OPENSUSE fix_segfault_in_utils_cert_handle_exception.patch
|
|
Patch5: fix_segfault_in_utils_cert_handle_exception.patch
|
|
# PATCH-FIX-OPENSUSE fix_wrong_string_null_terminated.patch
|
|
Patch6: fix_wrong_string_null_terminated.patch
|
|
BuildRequires: alsa-devel
|
|
BuildRequires: autoconf
|
|
BuildRequires: automake
|
|
BuildRequires: krb5-devel
|
|
BuildRequires: libXcursor-devel
|
|
BuildRequires: libgnutls-devel
|
|
BuildRequires: libnettle-devel
|
|
BuildRequires: libsamplerate-devel
|
|
BuildRequires: libtasn1-devel
|
|
BuildRequires: libtool
|
|
BuildRequires: pcsc-lite-devel
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: pkgconfig(ao)
|
|
BuildRequires: pkgconfig(x11)
|
|
BuildRequires: pkgconfig(xrandr)
|
|
|
|
%description
|
|
rdesktop is a client for connecting to Windows Remote Desktop
|
|
Services, capable of natively speaking Remote Desktop Protocol (RDP)
|
|
in order to present the user's Windows desktop. rdesktop is known to
|
|
work with Windows server versions ranging from NT 4 terminal server
|
|
to Windows Server 2012 R2.
|
|
|
|
%prep
|
|
%autosetup -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-ipv6
|
|
%make_build
|
|
|
|
%install
|
|
%make_install STRIP=true installman
|
|
mkdir -p %{buildroot}%{_datadir}/rdesktop
|
|
cp -r keymaps %{buildroot}%{_datadir}/rdesktop
|
|
chmod -R a+r %{buildroot}%{_datadir}/rdesktop/keymaps
|
|
|
|
%files
|
|
%doc doc README.md
|
|
%license COPYING
|
|
%{_bindir}/rdesktop
|
|
%{_datadir}/rdesktop
|
|
%{_mandir}/man1/rdesktop.1%{?ext_man}
|
|
|
|
%changelog
|