Home | History | Annotate | Download | only in core
      1 #
      2 # spec file for package SUNWgftp
      3 #
      4 #
      5 # includes module(s): gftp
      6 #
      7 # Copyright 2008 Sun Microsystems, Inc.
      8 # This file and all modifications and additions to the pristine
      9 # package are under the same license as the package itself.
     10 #
     11 %define owner jouby 
     12 #
     13 
     14 %include Solaris.inc
     15 
     16 %define OSR 10474:2.x
     17 
     18 Name:                    SUNWgftp
     19 Summary:                 gFTP - Multithreaded FTP client for *NIX based machines
     20 URL:                     http://gftp.seul.org/
     21 Version:                 2.0.19
     22 License:                 GPL v2
     23 Source:                  http://gftp.seul.org/gftp-%{version}.tar.bz2
     24 Source1:                 %{name}-manpages-0.1.tar.gz
     25 SUNW_BaseDir:            %{_basedir}
     26 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
     27 SUNW_Copyright:           SUNWgftp.copyright
     28 # date:2008-09-23 owner:alfred type:bug state:upstream
     29 Patch1:                  gftp-01-solaris-in-trunk.diff
     30 # date:2008-11-27 owner:alfred type:branding
     31 Patch2:                  gftp-02-profile-dir.diff
     32 # date:2008-12-09 owner:fujiwara type:feature bugzilla:563814 bugster:6782004
     33 Patch3:                  gftp-03-g11n-charset.diff
     34 # date:2008-12-09 owner:fujiwara type:feature bugzilla:563816 bugster:6782004
     35 Patch4:                  gftp-04-g11n-lc-time.diff
     36 # date:2008-12-09 owner:fujiwara type:feature bugzilla:563818 bugster:6782004
     37 Patch5:                  gftp-05-g11n-im-filter.diff
     38 # date:2008-12-09 owner:fujiwara type:feature bugzilla:563819 bugster:6782004
     39 Patch6:                  gftp-06-g11n-ssh-login.diff
     40 # date:2008-12-09 owner:fujiwara type:feature bugzilla:563820 bugster:6782004
     41 Patch7:                  gftp-07-g11n-cli-utf8.diff
     42 # date:2008-12-23 owner:alfred type:bug bugzilla:565430
     43 Patch8:                  gftp-08-url_prefix-null.diff
     44 
     45 %include default-depend.inc
     46 
     47 Requires: SUNWgtk2
     48 Requires: SUNWxwplt
     49 Requires: SUNWlibmsr
     50 Requires: SUNWmlib
     51 Requires: SUNWxorg-clientlibs
     52 Requires: SUNWfreetype2
     53 Requires: SUNWfontconfig
     54 Requires: SUNWopensslr
     55 BuildRequires: SUNWgtk2-devel
     56 
     57 %if %build_l10n
     58 %package l10n
     59 Summary:                 %{summary} - l10n files
     60 SUNW_BaseDir:            %{_basedir}
     61 %include default-depend.inc
     62 Requires:                %{name}
     63 %endif
     64 
     65 %prep
     66 %setup -q -n gftp-%version
     67 %patch1 -p1
     68 %patch2 -p1
     69 %patch3 -p1
     70 %patch4 -p1
     71 %patch5 -p1
     72 %patch6 -p1
     73 %patch7 -p1
     74 %patch8 -p1
     75 gzcat %SOURCE1 | tar xf -
     76 
     77 %build
     78 ./configure --prefix=%{_prefix} --mandir=%{_mandir}
     79 make
     80 
     81 %install
     82 rm -rf $RPM_BUILD_ROOT
     83 make install DESTDIR=$RPM_BUILD_ROOT
     84 
     85 rm -rf $RPM_BUILD_ROOT%{_mandir}
     86 cd %{_builddir}/gftp-%version/sun-manpages
     87 make install DESTDIR=$RPM_BUILD_ROOT
     88 
     89 %if %{build_l10n}
     90 %else
     91 rm -rf $RPM_BUILD_ROOT/%{_datadir}/locale
     92 %endif
     93 
     94 %clean
     95 rm -rf $RPM_BUILD_ROOT
     96 
     97 %files
     98 %defattr(-, root, bin)
     99 %doc(bzip2) README ChangeLog COPYING INSTALL
    100 %dir %attr (0755, root, bin) %{_bindir}
    101 %{_bindir}/*
    102 %dir %attr (0755, root, sys) %{_datadir}
    103 %dir %attr (0755, root, other) %{_datadir}/applications
    104 %{_datadir}/applications/*
    105 %dir %attr (0755, root, other) %{_datadir}/gftp
    106 %{_datadir}/gftp/*
    107 %dir %attr (0755, root, bin) %{_datadir}/man
    108 %{_datadir}/man/*
    109 %dir %attr (0755, root, other) %{_datadir}/pixmaps
    110 %{_datadir}/pixmaps/*
    111 %dir %attr (0755, root, other) %{_datadir}/doc
    112 
    113 %if %build_l10n
    114 %files l10n
    115 %defattr (-, root, bin)
    116 %dir %attr (0755, root, sys) %{_datadir}
    117 %attr (-, root, other) %{_datadir}/locale
    118 %endif
    119 
    120 %changelog
    121 * Fri Aug 38 2009 - yuntong.jin@sun.com
    122 - Change owner to jouby
    123 * Thu Feb 19 2009 - alfred.peng@sun.com
    124 - New manpage tarball.
    125 * Mon Feb 02 2009 - alfred.peng@sun.com
    126 - Fix the package dependency issue. bugster CR#6798920.
    127 * Wed Dec 31 2008 - alferd.peng@sun.com
    128 - Add gftp-08-url_prefix-null.diff to fix GNOME bugzilla 565430.
    129 * Mon Dec 08 2008 - takao.fujiwara@.sun.com
    130 - Add gftp-03-g11n-charset.diff to avoid a crash.
    131 - Add gftp-03-g11n-lc-time.diff to work with localized "ls -l" on Solaris.
    132 - Add gftp-04-g11n-im-filter.diff to work IM in filespec.
    133 - Add gftp-05-g11n-ssh-login.diff to be able to login with ssh.
    134 - Add gftp-06-g11n-cli-utf8.diff to show UTF-8 strings with CLI.
    135 * Mon Dec 08 2008 - takao.fujiwara@sun.com
    136 - Bumped to 2.0.19
    137 - Update gftp-01-solaris-in-trunk.diff for trunk.
    138 * Thu Nov 27 2008 - alfred.peng@sun.com 
    139 - As ARC recommended, add patch profile-dir.diff to move the profile
    140   to $HOME/.gnome/gftp.
    141 * Thu Nov 17 2008 - alfred.peng@sun.com
    142 - Move from SFE.
    143   Add copyright file, update group bit for %{_datadir}/doc.
    144   Remove --disable-sm and extra flags.
    145 * Sun Sep 28 2008 - alfred.peng@sun.com
    146 - Update group bit for %{_datadir}/man.
    147 * Wed Sep 24 2008 - alfred.peng@sun.com
    148 - Backport the patch gftp-01-solaris-in-trunk.diff from trunk to build
    149   with Sun Studio.
    150 * Tue Sep 04 2007  - Thomas Wagner
    151 - bump to 0.15.1, add %{version} to Download-Dir (might change again)
    152 - conditional !%build_l10n rmdir $RPM_BUILD_ROOT/%{_datadir}/locale
    153 * Sat May 26 2007  - Thomas Wagner
    154 - bump to 0.15.0
    155 - set compiler to gcc
    156 - builds with Avahi, if present
    157 * Thu Apr 06 2007  - Thomas Wagner
    158 - Initial spec
    159 
    160