File xrdp.spec of Package xrdp

# spec file for package xrdp (Version 0.4.1)
# Copyright (c) 2009 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


Name:           xrdp
%define _fwdefdir /etc/sysconfig/SuSEfirewall2.d/services
Version:        0.4.1
Release:        25
License:        GPL v2 or later
Requires:       dbus-1 xorg-x11-libXau xorg-x11-libxcb xorg-x11-server-dmx xorg-x11-server-rdp
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  dbus-1-devel gcc-c++ glibc-devel libavahi-devel openssl-devel pam-devel pkg-config xorg-x11-libXau-devel xorg-x11-libxcb-devel
Group:          System/X11/Utilities
Summary:        Open Source remote desktop protocol (RDP) server
Source1:        xrdp.fw
Patch0:         xrdp-0.4.1..48f00f.diff.bz2
Patch1:         xrdp-NOMAD.diff
Patch2:         xrdp-avahi.diff
# PATCH-FIX-OPENSUSE xrdp-lsb.patch bnc#442211 -
Patch3:         xrdp-lsb.patch
# PATCH-FIX-OPENSSUE xrdp-pam.patch bnc#441750 -
Patch4:         xrdp-pam.patch

A full functionnal Linux terminal server, capable of accepting
connection from rdesktop and Microsoft's own terminal server / remote
desktop clients.

%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%{__perl} -pi.orig -e 's|/lib\b|/%{_lib}|g' instfiles/*.sh

sh ./bootstrap

%{__make} install DESTDIR=$RPM_BUILD_ROOT
chmod a-x %{buildroot}%{_sysconfdir}/xrdp/*.ini
rm -f %{buildroot}/%{_libdir}/%{name}/*.*a
ln -sf %{_sysconfdir}/init.d/xrdp %{buildroot}/%{_sbindir}/rcxrdp
mkdir -p $RPM_BUILD_ROOT/%{_fwdefdir}
install -m 644 %{S:1} $RPM_BUILD_ROOT/%{_fwdefdir}/xrdp

rm -rf "$RPM_BUILD_ROOT"

/usr/bin/xrdp-keygen xrdp /etc/xrdp/rsakeys.ini

%stop_on_removal xrdp

%restart_on_update xrdp

%doc COPYING *.txt 
%doc %{_mandir}/man5/*.5*
%doc %{_mandir}/man8/*.8*
%config(noreplace) %{_sysconfdir}/xrdp/
%config(noreplace) %{_sysconfdir}/pam.d/xrdp-sesman
%config %{_fwdefdir}/xrdp

* Thu Feb 05 2009
- Add proper Xdmx keyboard layout handling and allow X server to
  reset when last client disconnects. (bnc#447682) (bnc#442292)
* Thu Jan 22 2009
- Fall-back to regular RDP connection when X11 channel
  fails. (bnc#450142)
- Make sure multiple RDP connections to the same DMX
  session can exist at the same.
* Fri Jan 09 2009
- Fix multiple buffer overflows. (bnc#450898)
* Tue Jan 06 2009
- Properly install firewall definition file. (bnc#460835)
* Mon Jan 05 2009
- Register session as remote. (bnc#441751)
* Tue Dec 23 2008
- Fixed xrdp-pam.patch according the the last comment in bnc#441750
* Tue Dec 23 2008
- Add firewall definition (bnc#460835)
  source: xrdp.fw
* Tue Dec 09 2008
- Added patch xrdp-pam.patch: fix pam config file, and fix pam
  calls to use the proper service name (bnc#441750)
* Sun Nov 23 2008
- Use authorization files for all sessions. (bnc#442223)
- Use authorization file for X11rdp. (bnc#442223)
* Tue Nov 18 2008
- Fix initial screen resolution.
* Wed Nov 12 2008
- Fix X server startup issue.
  * Avoid using unix domain socket files to determine the
  presence of X servers.
* Fri Nov 07 2008
- Remove fuzz from xrdp-avahi.diff
- Add xrdp-lsb.patch
  * Make the init script LSB compliant (bnc#442211)
* Fri Nov 07 2008
- Add /usr/sbin/rcxrdp (bnc#442692)
* Thu Nov 06 2008
- fix last change (just adding "#" does not work for
  multiline rpm macros)
* Wed Nov 05 2008
- Don't enable xrdp by default (bnc#441742)
* Mon Oct 27 2008
- Include .so files for modules.
* Mon Oct 27 2008
- Update xrdp-NOMAD.diff
  * Fix zlib compression.
* Sun Oct 12 2008
- Update xrdp-NOMAD.diff
  * Fix openSUSE branding
* Wed Oct 08 2008
- Update xrdp-avahi.diff
  * remove warnings for missing prototypes.
* Wed Sep 17 2008
- Update xrdp-NOMAD.diff
  * Fix Xdmx command line arguments
  * Fix session data matching for XDMX sessions
* Thu Sep 11 2008
- Add Avahi support.
- More comprehensive support of NOMAD.
* Tue Sep 02 2008
- Initial release.