2008-06-19 Halton Huo <
[email protected]>
New module tsclient, a frontend for rdesktop for the GNOME2 platform.
* SUNWtsclient.spec: (new)
* base-specs/tsclient.spec: (new)
* patches/tsclient-01-libsocket.diff:
--- a/ChangeLog Wed Jun 18 20:12:36 2008 +0000
+++ b/ChangeLog Thu Jun 19 13:42:45 2008 +0000
@@ -1,3 +1,10 @@
+2008-06-19 Halton Huo <[email protected]>
+
+ New module tsclient, a frontend for rdesktop for the GNOME2 platform.
+ * SUNWtsclient.spec: (new)
+ * base-specs/tsclient.spec: (new)
+ * patches/tsclient-01-libsocket.diff:
+
2008-06-18 Albert Lee <[email protected]>
* SFElibtorrent-gpp.spec: Deleted, only exists in base-spec form
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/SUNWtsclient.spec Thu Jun 19 13:42:45 2008 +0000
@@ -0,0 +1,123 @@
+#
+# spec file for package SUNWtsclient
+#
+# includes module(s): tsclient
+#
+# Copyright 2008 Sun Microsystems, Inc.
+# This file and all modifications and additions to the pristine
+# package are under the same license as the package itself.
+#
+# Owner: halton
+#
+
+%include Solaris.inc
+
+%use tsclient = tsclient.spec
+
+Name: SUNWtsclient
+Summary: tsclient - A frontend for rdesktop for the GNOME2 platform.
+Version: %{tsclient.version}
+SUNW_BaseDir: %{_basedir}
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+%include default-depend.inc
+Requires: SUNWgnome-panel
+Requires: SUNWgnome-libs
+Requires: SUNWxwplt
+Requires: SUNWxwice
+Requires: SUNWgnome-vfs
+Requires: SUNWgnome-config
+Requires: SUNWgnome-base-libs
+Requires: SUNWlibpopt
+Requires: SUNWlibm
+Requires: SUNWmlib
+Requires: SUNWfontconfig
+Requires: SUNWxorg-clientlibs
+Requires: SUNWgnome-component
+Requires: SUNWlxml
+Requires: SUNWdbus-bindings
+Requires: SUNWdbus
+Requires: SUNWopenssl-libraries
+Requires: SUNWgnome-audio
+Requires: SUNWfreetype2
+Requires: SUNWlexpt
+Requires: SUNWzlib
+Requires: SUNWpng
+BuildRequires: SUNWgnome-panel-devel
+BuildRequires: SUNWgnome-libs-devel
+BuildRequires: SUNWgnome-vfs-devel
+BuildRequires: SUNWgnome-config-devel
+BuildRequires: SUNWgnome-base-libs-devel
+BuildRequires: SUNWlibpopt-devel
+BuildRequires: SUNWmlibh
+BuildRequires: SUNWgnome-component-devel
+BuildRequires: SUNWlxml-devel
+BuildRequires: SUNWdbus-bindings-devel
+BuildRequires: SUNWdbus-devel
+BuildRequires: SUNWsfwhea
+BuildRequires: SUNWgnome-audio-devel
+BuildRequires: SUNWpng-devel
+
+%if %build_l10n
+%package l10n
+Summary: %{summary} - l10n files
+SUNW_BaseDir: %{_basedir}
+%include default-depend.inc
+Requires: %{name}
+%endif
+
+%prep
+rm -rf %name-%version
+mkdir -p %name-%version
+%tsclient.prep -d %name-%version
+
+%build
+export ACLOCAL_FLAGS="-I %{_datadir}/aclocal"
+export CFLAGS="%optflags"
+export RPM_OPT_FLAGS="$CFLAGS"
+%tsclient.build -d %name-%version
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%tsclient.install -d %name-%version
+
+%if %build_l10n
+%else
+# REMOVE l10n FILES
+rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr (-, root, bin)
+%dir %attr (0755, root, bin) %{_bindir}
+%{_bindir}/tsclient
+%dir %attr (0755, root, bin) %{_libdir}
+%{_libdir}/tsclient-applet
+%dir %attr (0755, root, bin) %{_libdir}/bonobo
+%dir %attr (0755, root, bin) %{_libdir}/bonobo/servers
+%{_libdir}/bonobo/servers/GNOME_TSClientApplet.server
+%dir %attr (0755, root, sys) %{_datadir}
+%dir %attr (-, root, other) %{_datadir}/application-registry
+%{_datadir}/application-registry/tsclient.applications
+%dir %attr (-, root, other) %{_datadir}/applications
+%{_datadir}/applications/tsclient.desktop
+%dir %attr (-, root, other) %{_datadir}/mime-info
+%{_datadir}/mime-info/*
+%dir %attr (-, root, other) %{_datadir}/pixmaps
+%{_datadir}/pixmaps/*
+%dir %attr(0755, root, bin) %{_mandir}
+%dir %attr(0755, root, bin) %{_mandir}/*
+%{_mandir}/*/*
+
+%if %build_l10n
+%files l10n
+%defattr (-, root, bin)
+%dir %attr (0755, root, sys) %{_datadir}
+%attr (-, root, other) %{_datadir}/locale
+%endif
+
+%changelog
+* Thu Jan 19 2008 - [email protected]
+- Initial spec
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/base-specs/tsclient.spec Thu Jun 19 13:42:45 2008 +0000
@@ -0,0 +1,111 @@
+#
+# spec file for package tsclient
+#
+# Copyright 2008 Sun Microsystems, Inc.
+# This file and all modifications and additions to the pristine
+# package are under the same license as the package itself.
+#
+# Owner: halton
+# bugdb: http://sourceforge.net/tracker/index.php?func=detail&group_id=192483&atid=941574&aid=
+#
+
+
+Name: tsclient
+Summary: Terminal Server Client is a frontend for rdesktop for the GNOME2 platform.
+License: GPL
+Group: User Interface/Desktops
+Version: 0.150
+Release: 1
+Distribution: Java Desktop System
+Vendor: Sun Microsystems, Inc.
+URL: http://sourceforge.net/projects/tsclient
+Source: http://%{sf_mirror}/%{name}/%{name}-%{version}.tar.gz
+Patch1: %{name}-01-libsocket.diff
+BuildRoot: %{tmpdir}/%{name}-%{version}-root
+
+Requires: glib2 >= 2.0.0, gtk2 >= 2.0.0, rdesktop >= 1.3.0, vnc >= 4.0
+BuildRequires: glib2-devel >= 2.0.0, gtk2-devel >= 2.0.0
+
+
+%description
+Terminal Server Client is a frontend for rdesktop, vnc and other remote desktop tools.
+
+
+%prep
+%setup -q
+%patch1 -p1
+
+
+%build
+%ifos linux
+if [ -x /usr/bin/getconf ]; then
+ CPUS=`getconf _NPROCESSORS_ONLN`
+fi
+%else
+ CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
+%endif
+if test "x$CPUS" = "x" -o $CPUS = 0; then
+ CPUS=1
+fi
+
+%ifos linux
+if [ -x /usr/bin/getconf ]; then
+ CPUS=`getconf _NPROCESSORS_ONLN`
+fi
+%else
+ CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
+%endif
+if test "x$CPUS" = "x" -o $CPUS = 0; then
+ CPUS=1
+fi
+
+aclocal $ACLOCAL_FLAGS
+libtoolize --force
+intltoolize --force --automake
+autoheader
+automake -a -f -c --gnu
+autoconf
+
+CFLAGS="$RPM_OPT_FLAGS"
+./configure --prefix=%{_prefix} \
+ --libdir=%{_libdir} \
+ --libexecdir=%{_libexecdir} \
+ --datadir=%{_datadir} \
+ --mandir=%{_mandir} \
+ --sysconfdir=%{_sysconfdir}
+
+make -j $CPUS
+
+
+%install
+export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
+make -i install DESTDIR=$RPM_BUILD_ROOT
+unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
+find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
+find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
+
+#mkdir -p %{_buildroot}%{_desktop}
+#cp *.png %{_buildroot}%{_datadir}/pixmaps/
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root)
+%doc README ChangeLog AUTHORS NEWS
+%{_prefix}/bin/tsclient
+%{_prefix}/libexec/tsclient-applet
+%{_libdir}/bonobo/servers/GNOME_TSClientApplet.server
+%{_datadir}/applications/tsclient.desktop
+%{_datadir}/pixmaps/*.png
+%{_datadir}/pixmaps/tsclient
+%{_datadir}/locale/*/LC_MESSAGES/tsclient.mo
+%{_datadir}/application-registry/tsclient.*
+%{_datadir}/mime-info/tsclient.*
+%{_datadir}/man/man1/tsclient.1*
+
+
+%changelog
+* Thu Jan 19 2008 - [email protected]
+- Initial version
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/tsclient-01-libsocket.diff Thu Jun 19 13:42:45 2008 +0000
@@ -0,0 +1,14 @@
+Index: trunk/configure.in
+===================================================================
+--- trunk/configure.in (revision 63)
++++ trunk/configure.in (working copy)
+@@ -25,6 +25,9 @@
+
+ dnl ==========================================================================
+
++dnl Check for bind in libsocket (needed on Solaris)
++AC_CHECK_LIB(socket, bind)
++
+ set_debug=no
+ AC_ARG_ENABLE(debug,
+ [ --enable-debug Lots of noisy debug messages],