Home | History | Annotate | Download | only in core
      1 #
      2 # spec file for package SUNWtsclient
      3 #
      4 # includes module(s): tsclient
      5 #
      6 # Copyright 2008 Sun Microsystems, Inc.
      7 # This file and all modifications and additions to the pristine
      8 # package are under the same license as the package itself.
      9 #
     10 %define owner halton
     11 #
     12 
     13 %include Solaris.inc
     14 
     15 %use tsclient = tsclient.spec
     16 
     17 Name:               SUNWtsclient
     18 Summary:            tsclient - A frontend for rdesktop and other remote desktop tools
     19 Version:            %{tsclient.version}
     20 SUNW_Copyright:     %{name}.copyright
     21 SUNW_BaseDir:       %{_basedir}
     22 BuildRoot:          %{_tmppath}/%{name}-%{version}-build
     23 Source1:            %{name}-manpages-0.1.tar.gz
     24 
     25 %include default-depend.inc
     26 Requires:           SUNWlibgnomecanvas
     27 Requires:           SUNWgnome-panel
     28 Requires:           SUNWgnome-libs
     29 Requires:           SUNWxwplt
     30 Requires:           SUNWxwice
     31 Requires:           SUNWgnome-vfs
     32 Requires:           SUNWgnome-config
     33 Requires:           SUNWlibpopt
     34 Requires:           SUNWlibms
     35 Requires:           SUNWmlib
     36 Requires:           SUNWfontconfig
     37 Requires:           SUNWxorg-clientlibs
     38 Requires:           SUNWgnome-component
     39 Requires:           SUNWlxml
     40 Requires:           SUNWdbus-glib
     41 Requires:           SUNWdbus
     42 Requires:           SUNWopenssl-libraries
     43 Requires:           SUNWgnome-audio
     44 Requires:           SUNWfreetype2
     45 Requires:           SUNWlexpt
     46 Requires:           SUNWzlib
     47 Requires:           SUNWpng
     48 Requires:           SUNWrdesktop
     49 Requires:           SUNWvncviewer
     50 Requires:           SUNWxorg-server
     51 BuildRequires:      SUNWlibgnomecanvas-devel
     52 BuildRequires:      SUNWlibm
     53 BuildRequires:      SUNWgnome-panel-devel
     54 BuildRequires:      SUNWgnome-libs-devel
     55 BuildRequires:      SUNWgnome-vfs-devel
     56 BuildRequires:      SUNWgnome-config-devel
     57 BuildRequires:      SUNWlibpopt-devel
     58 BuildRequires:      SUNWmlibh
     59 BuildRequires:      SUNWgnome-component-devel
     60 BuildRequires:      SUNWlxml-devel
     61 BuildRequires:      SUNWdbus-glib-devel
     62 BuildRequires:      SUNWdbus-devel
     63 BuildRequires:      SUNWgnome-audio-devel
     64 BuildRequires:      SUNWpng-devel
     65 
     66 %if %build_l10n
     67 %package l10n
     68 Summary:                 %{summary} - l10n files
     69 SUNW_BaseDir:            %{_basedir}
     70 %include default-depend.inc
     71 Requires:                %{name}
     72 %endif
     73 
     74 %prep
     75 rm -rf %name-%version
     76 mkdir -p %name-%version
     77 %tsclient.prep -d %name-%version
     78 cd %{_builddir}/%name-%version
     79 gzcat %SOURCE1 | tar xf -
     80 
     81 %build
     82 export ACLOCAL_FLAGS="-I %{_datadir}/aclocal"
     83 export CFLAGS="%optflags"
     84 export RPM_OPT_FLAGS="$CFLAGS"
     85 %tsclient.build -d %name-%version
     86 
     87 %install
     88 rm -rf $RPM_BUILD_ROOT
     89 %tsclient.install -d %name-%version
     90 
     91 # install man page
     92 rm -rf $RPM_BUILD_ROOT%{_mandir}
     93 cd %{_builddir}/%name-%version/sun-manpages
     94 make install DESTDIR=$RPM_BUILD_ROOT
     95 
     96 %if %build_l10n
     97 cd $RPM_BUILD_ROOT%{_datadir}/locale
     98 # Rename dirs that are symlinks on the installed system.
     99 mv nl_NL nl
    100 mv pl_PL pl
    101 %else
    102 # REMOVE l10n FILES
    103 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
    104 %endif
    105 
    106 %clean
    107 rm -rf $RPM_BUILD_ROOT
    108 
    109 %files
    110 %doc -d tsclient-%{tsclient.version} README AUTHORS
    111 %doc(bzip2) -d tsclient-%{tsclient.version} COPYING ChangeLog po/ChangeLog NEWS
    112 %dir %attr (0755, root, other) %{_datadir}/doc
    113 %defattr (-, root, bin)
    114 %dir %attr (0755, root, bin) %{_bindir}
    115 %{_bindir}/tsclient
    116 %dir %attr (0755, root, bin) %{_libdir}
    117 %{_libdir}/tsclient-applet
    118 %dir %attr (0755, root, bin) %{_libdir}/bonobo
    119 %dir %attr (0755, root, bin) %{_libdir}/bonobo/servers
    120 %{_libdir}/bonobo/servers/GNOME_TSClientApplet.server
    121 %dir %attr (0755, root, sys) %{_datadir}
    122 %dir %attr (-, root, other) %{_datadir}/application-registry
    123 %{_datadir}/application-registry/tsclient.applications
    124 %dir %attr (-, root, other) %{_datadir}/applications
    125 %{_datadir}/applications/tsclient.desktop
    126 %dir %attr (-, root, other) %{_datadir}/mime-info
    127 %{_datadir}/mime-info/*
    128 %dir %attr (-, root, other) %{_datadir}/pixmaps
    129 %{_datadir}/pixmaps/*
    130 %dir %attr(0755, root, bin) %{_mandir}
    131 %dir %attr(0755, root, bin) %{_mandir}/*
    132 %{_mandir}/*/*
    133 
    134 %if %build_l10n
    135 %files l10n
    136 %defattr (-, root, bin)
    137 %dir %attr (0755, root, sys) %{_datadir}
    138 %attr (-, root, other) %{_datadir}/locale
    139 %endif
    140 
    141 %changelog
    142 * Thu Mar 05 2009 - brian.cameron@sun.com
    143 - Change SUNWdbus-bindings to SUNWdbus-glib.
    144 * Wed Nov 05 2008 - halton.huo@sun.com
    145 - Add po/ChangeLog to %files
    146 * Wed Sep 17 2008 - halton.huo@sun.com
    147 - Change Requires: SUNWlibm to SUNWlibms to fix bugster #6748982
    148 * Wed Sep 10 2008 - halton.huo@sun.com
    149 - Add %doc to %files for new copyright
    150 * Thu Aug 07 2008 - halton.huo@sun.com
    151 - Use sgml format man pages.
    152 * Wed Jul 01 2008 - halton.huo@sun.com
    153 - s/SUNWxwsrv/SUNWxorg-server since we use Xephyr instead of Xnest
    154 * Tue Jun 01 2008 - damien.carbery@sun.com
    155 - Rename 2 locale dirs because they are symlinks on the installed system (nl_NL
    156   to nl and pl_PL to pl).
    157 * Fri Jun 27 2008 - nonsea@users.sourceforge.net
    158 - Add Requires to SUNWrdesktop, SUNWvncviewer and SUNWxwsrv
    159 * Thu Jun 19 2008 - nonsea@users.sourceforge.net
    160 - Initial spec
    161 
    162