File xrdp.spec of Package xrdp

#
# spec file tools.spec
#
Summary: xrdp
Name: xrdp
Version: 1
Release: 2
Group: System/Management
Source: xrdp.tgz
# URL: 
License:  GPL
# Distribution: Linux
# Vendor: various
# Packager: rensg <rensg@xs4all.nl>
# BuildRequires: aaa_base
# Provides: systools
# NeedsRootForBuild 
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%changelog
%description
Xrdp acts as a RDP proxy to a VNC server running on a linux host.
It allows to connect to a linux host from a linux or windows desktop without having to 
install some version of vnc.
RDP is the remote desktop protocol as used by microsoft windows operating systems.

%prep
%build
%pre
%preun
%install


echo arch 		%{arch}
echo builddir 	%{builddir}
echo buildroot 	%{buildroot}
echo sourcedir	%{sourcedir}
echo docdir 		%{docdir}
echo optflags	%{optflags}
echo os 			%{os}
echo name pkg 	%{name}
echo version		%{version}
echo release		%{release}

echo suse version 0%{?suse_version} 


echo pwd = `pwd`

echo buildroot  - name-version.release = %{buildroot}  %{name}-%{version}.%{release}
vr=%{name}-%{version}-%{release}
echo "\$vr = $vr  buildroot = "%{buildroot}



# mkdir -p $RPM_BUILD_ROOT/usr/bin
cd $RPM_BUILD_ROOT
 echo pwd = `pwd`
mkdir -p usr/bin
mkdir -p usr/sbin
mkdir -p etc/xrdp
mkdir -p etc/pam.d
mkdir -p usr/share/man/man5
mkdir -p usr/share/man/man8
mkdir -p usr/share/xrdp

echo checking dirs....
find .

tar -xvzf $RPM_SOURCE_DIR/xrdp.tgz
echo checking files
find .

%post
ldconfig

%postun
ldconfig

%files
# %defattr(644, root, root, 555)
/etc/xrdp
/usr/share/xrdp
/etc/pam.d/xrdp-sesman
/etc/xrdp/km-0407.ini
/etc/xrdp/km-0409.ini
/etc/xrdp/km-040c.ini
/etc/xrdp/km-0410.ini
/etc/xrdp/km-0419.ini
/etc/xrdp/km-041d.ini
/etc/xrdp/rsakeys.ini
/etc/xrdp/sesman.ini
/etc/xrdp/startwm.sh
/etc/xrdp/xrdp.ini
/etc/xrdp/xrdp.sh
/usr/bin/xrdp-genkeymap
/usr/bin/xrdp-keygen
/usr/bin/xrdp-sesadmin
/usr/bin/xrdp-sesrun
/usr/bin/xrdp-sestest
/usr/lib64/libcommon.so.0.0.0
/usr/lib64/libmc.so.0.0.0
/usr/lib64/librdp.so.0.0.0
/usr/lib64/libscp.so.0.0.0
/usr/lib64/libvnc.so.0.0.0
/usr/lib64/libxrdp.so.0.0.0
/usr/lib64/libxup.so.0.0.0
/usr/sbin/xrdp
/usr/sbin/xrdp-chansrv
/usr/sbin/xrdp-sesman
/usr/sbin/xrdp-sessvc
/usr/share/man/man5/sesman.ini.5.gz
/usr/share/man/man5/xrdp.ini.5.gz
/usr/share/man/man8/xrdp-sesman.8.gz
/usr/share/man/man8/xrdp-sesrun.8.gz
/usr/share/man/man5/cfgwm.sh.5.gz
/usr/share/man/man8/xrdp.8.gz
/usr/share/xrdp/ad256.bmp
/usr/share/xrdp/cursor0.cur
/usr/share/xrdp/cursor1.cur
/usr/share/xrdp/sans-10.fv1
/usr/share/xrdp/xrdp256.bmp
/usr/bin/xrdp.sh
openSUSE Build Service is sponsored by