Home | History | Annotate | Download | only in core
      1 #
      2 # spec file for package SUNWrdesktop
      3 #
      4 # Copyright 2008 Sun Microsystems, Inc.
      5 # This file and all modifications and additions to the pristine
      6 # package are under the same license as the package itself.
      7 #
      8 %define owner migi
      9 # bugdb: https://sourceforge.net/tracker/?func=detail&atid=381349&group_id=24366&aid=
     10 #
     11 
     12 %include Solaris.inc
     13 
     14 %define OSR 9603:1.6.2
     15 
     16 Name:                SUNWrdesktop
     17 Summary:             RDP, Microsoft Terminal Services client
     18 Version:             1.6.0
     19 Source:              %{sf_download}/rdesktop/rdesktop-%{version}.tar.gz
     20 # date:2008-02-20 owner:fujiwara type:feature bugster:6665274
     21 Patch1:              rdesktop-01-sun-keymap.diff
     22 # date:2008-08-19 owner:fujiwara type:bug bugster:6725349 bugzilla:2018344
     23 Patch2:              rdesktop-02-g11n-i18n-title.diff
     24 # date:2000-02-20 owner:mattman type:branding
     25 Patch3:              rdesktop-03-manpage.diff
     26 SUNW_Copyright:      %{name}.copyright
     27 SUNW_BaseDir:        %{_basedir}
     28 BuildRoot:           %{_tmppath}/%{name}-%{version}-build
     29 
     30 %include default-depend.inc
     31 Requires: SUNWopenssl-libraries
     32 Requires: SUNWxwrtl
     33 Requires: SUNWxwplt
     34 
     35 %prep
     36 %setup -q -n rdesktop-%version
     37 %patch1 -p1
     38 %patch2 -p1
     39 %patch3 -p1
     40 
     41 %build
     42 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
     43 if test "x$CPUS" = "x" -o $CPUS = 0; then
     44      CPUS=1
     45 fi
     46 
     47 export CFLAGS="%optflags"
     48 export LDFLAGS="%{_ldflags}"
     49 
     50 ./configure --prefix=%{_prefix} \
     51             --mandir=%{_mandir} \
     52             --with-ipv6         \
     53 	    --with-openssl="/usr"
     54 
     55 make -j$CPUS
     56 
     57 %install
     58 rm -rf $RPM_BUILD_ROOT
     59 
     60 make install DESTDIR=$RPM_BUILD_ROOT
     61 
     62 %clean
     63 rm -rf $RPM_BUILD_ROOT
     64 
     65 %files
     66 %doc README doc/AUTHORS
     67 %doc(bzip2) COPYING doc/ChangeLog
     68 %dir %attr (0755, root, other) %{_datadir}/doc
     69 %defattr (-, root, bin)
     70 %dir %attr (0755, root, bin) %{_bindir}
     71 %{_bindir}/*
     72 %dir %attr (0755, root, sys) %{_datadir}
     73 %{_mandir}/*
     74 %{_datadir}/rdesktop/*
     75 
     76 %changelog
     77 * Fri Feb 20 2009 - matt.keenan@Sun.Com
     78 - Add manpages patch for Attributes and ARC Comment
     79 * Fri Dec 08 2008 - Michal.Pryc@Sun.Com
     80 - Changed openssl dir to allow build on snv >= 104
     81 * Thu Sep 11 2008 - Michal.Pryc@Sun.Com
     82 - Add %doc to %files for new copyright
     83 * Thu Sep 11 2008 - takao.fujiwara@sun.com
     84 - Updated rdesktop-02-g11n-i18n-title.diff for 1.6.0
     85 * Tue Sep 10 2008 - Michal.Pryc@Sun.Com
     86 - Bump to 1.6.0
     87 * Tue Aug 19 2008 - takao.fujiwara@sun.com
     88 - Add rdesktop-02-g11n-i18n-title.diff to show the right UTF-8 title.
     89 * Thu Mar 15 2008 - lin.ma@sun.com
     90 - Add SUNWopenssl-libraries/SUNWxwrtl/SUNWxwplt dependency.
     91 * Wed Feb 20 2008 - takao.fujiwara@sun.com
     92 - Add rdesktop-01-sun-keymap.diff to support Xsun and Sun Type6/7 keyboards.
     93 * Mon Feb 18 2008 - Michal.Pryc@Sun.Com
     94 - Enabling ipv6 support
     95 * Tue Feb 12 2008 - dermot.mccluskey@sun.com
     96 - initial version
     97