File gftp.spec of Package gftp

#
# spec file for package gftp (Version 2.0.18)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild
# usedforbuild    Mesa Mesa-devel aaa_base acl atk atk-devel attr audit-libs autoconf automake bash bind-libs bind-utils binutils bison brp-check-internal bzip2 cairo cairo-devel coreutils cpio cpp cracklib cvs cyrus-sasl db desktop-translations diffutils docbook-dsssl-stylesheets docbook-toys docbook_3 docbook_4 e2fsprogs expat file filesystem fillup findutils flex fontconfig fontconfig-devel freetype2 freetype2-devel gawk gcc gdbm gdbm-devel gettext gettext-devel glib2 glib2-devel glibc glibc-devel glibc-locale glitz glitz-devel gnome-filesystem gpm grep groff gtk2 gtk2-devel gzip indent info insserv iso_ent jadetex klogd latex-ucs less libacl libattr libcom_err libdrm libgcc libgssapi libjpeg libmudflap libnscd libpng libpng-devel libstdc++ libtool libxcrypt libxml2 libzio m4 make man mktemp module-init-tools ncurses ncurses-devel net-tools netcfg openjade openldap2-client openmotif-libs opensp openssl openssl-devel pam pam-modules pango pango-devel patch perl permissions pkgconfig popt post-build-checks procinfo procps psmisc pwdutils rcs readline readline-devel rpm sed sgml-skel strace sysvinit tar tcpd te_ams te_latex tetex texinfo timezone unzip update-desktop-files util-linux vim xorg-x11-devel xorg-x11-libs zlib zlib-devel


Name:           gftp
BuildRequires:  docbook-toys gtk2-devel indent openssl-devel readline-devel te_ams update-desktop-files
License:        GPL v2 or later
Group:          Productivity/Networking/Ftp/Clients
AutoReqProv:    on
Version:        2.0.18
Release:        25.20
Source0:        gftp-%{version}.tar.bz2
Url:            http://gftp.seul.org/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Multithreaded FTP Client for X11
Patch1:         gftp-show-busy-cursor.patch
Patch2:         %{name}-%{version}-overflow.patch
Patch3:         gedit-tmp-file-deletion.patch
Patch4:         gftp-hungarian-po.patch
Patch5:         tango-icon-2.0.18.patch

%description
GFTP is a multithreaded FTP client for X11 written using Gtk. It has
the following features: simultaneous downloads, resume of interrupted
file transfers, file transfer queues, download of entire directories,
ftp proxy support, remote directory caching, passive and nonpassive
file transfers, drag and drop support, a very nice connection manager,
and others.



Authors:
--------
    Brian Masney <masneyb@newwave.net>

%debug_package
%prep
%setup
%patch1
%patch2
%patch3
%patch4
%patch5 -p 1

%build
rename no nb po/no.*
sed "s/\(ALL_LINGUAS.*\) no /\1 nb /" configure > configure.tmp && \
        mv configure.tmp configure && chmod 755 configure
. /etc/profile.d/gnome-filesystem.sh
export CFLAGS="$RPM_OPT_FLAGS"
./configure \
  --prefix=/opt/gnome --mandir=/opt/gnome/share/man
make
cd docs
db2html gftp-faq.sgml
db2pdf gftp-faq.sgml
chmod og+rx gftp-faq

%install
make DESTDIR=$RPM_BUILD_ROOT install
rm $RPM_BUILD_ROOT/opt/gnome/share/gftp/COPYING
gzip -9nf $RPM_BUILD_ROOT/opt/gnome/share/man/man?/*.?
%suse_update_desktop_file -N "Gnome FTP" -G "File Transfer" -r %name Application FileManager

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc ChangeLog COPYING README README.html THANKS TODO docs/USERS-GUIDE docs/gftp-faq.pdf docs/gftp-faq
/opt/gnome/share/gftp
/opt/gnome/bin/*
%doc /opt/gnome/share/man/man*/*
/opt/gnome/share/applications/gftp.desktop
/opt/gnome/share/locale/*/LC_MESSAGES/*.mo
/opt/gnome/share/pixmaps/*.png

%changelog
* Thu Jan 17 2008 - mauro@suse.de
- Added tango-icon-2.0.18.patch, including the lastest gftp icon
  from bgo #370627, bnc #155435
* Tue Feb 20 2007 - jhargadon@suse.de
- added gftp-hungarian-po.patch (#244608)
* Thu May 18 2006 - sreeves@suse.de
- Fix for 6396 - delete tmp files
  Fix for 176373 - Poor application categories
* Fri May 05 2006 - sreeves@suse.de
- Fix for 167218 - change name
* Mon Feb 20 2006 - mmarek@suse.cz
- fix array subscript out of range in fsp implementation
  [#150399] (overflow.patch)
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Sep 29 2005 - sreeves@suse.de
- Fix Defect#9461 - now shows busy cursor on connection operations
* Thu Jun 16 2005 - sbrabec@suse.cz
- Build documentation (#6912).
- Build with SSL support.
* Mon Feb 07 2005 - sbrabec@suse.cz
- Updated to version 2.0.18.
* Thu Jan 20 2005 - sbrabec@suse.cz
- Fixed download path directory traversal bug (7a69Adv#17, #49572).
* Tue Nov 02 2004 - mmj@suse.de
- Locale rename no to nb
* Tue Aug 24 2004 - sbrabec@suse.cz
- Updated to version 2.0.17.
* Mon Aug 02 2004 - ro@suse.de
- recode desktop file to utf-8
* Tue Jun 22 2004 - hhetter@suse.de
- apply 64bit patches from CVS, make it work on x86_64
* Tue Mar 16 2004 - sbrabec@suse.cz
- FHS 2.3 fix (mandir, infodir, #35821).
* Thu Feb 05 2004 - sbrabec@suse.cz
- Updated to version 2.0.16.
* Sat Jan 10 2004 - adrian@suse.de
- build as user
* Sun Sep 07 2003 - adrian@suse.de
- add Categories
* Mon Aug 25 2003 - sbrabec@suse.cz
- Updated to version 2.0.15.
* Thu Aug 07 2003 - sbrabec@suse.cz
- Updated to version 2.0.15rc1.
* Mon Jul 14 2003 - sbrabec@suse.cz
- GNOME prefix change to /opt/gnome.
* Mon Feb 10 2003 - sbrabec@suse.cz
- Install fix - added missing RPM_BUILD_ROOT.
* Mon Feb 10 2003 - sbrabec@suse.cz
- Use GTK2 interface.
* Tue Dec 10 2002 - sbrabec@suse.cz
- Updated to version 2.0.14.
- Added buildroot install.
* Tue Sep 17 2002 - ro@suse.de
- removed bogus self-provides
* Tue Jul 23 2002 - uli@suse.de
- update -> 2.0.13 (improvements to the text port, ability to parse
  Cray FTP directory listings, many fixes, improved user interface)
* Mon Jun 10 2002 - uli@suse.de
- update -> 2.0.12 (fixed several memory leaks, HTTP proxy fixups,
  fixed bug with throttling of connections not working in some cases,
  fixed wrong time remaining for interrupted transfers, added option
  to only show selected files, cleanups to cache, fixed crash in
  view file, fixed crash in toolbar, updates to Compare Windows
  feature, password is no longer shown in the log window for HTTP
  protocol)
* Tue Apr 23 2002 - uli@suse.de
- update -> 2.0.11 (fixes bug #14271)
* Fri Dec 07 2001 - uli@suse.de
- update -> 2.0.9
* Wed May 09 2001 - mfabian@suse.de
- bzip2 sources
* Thu Apr 26 2001 - uli@suse.de
- update -> 2.0.8 (secfix)
* Thu Mar 08 2001 - uli@suse.de
- fixed filelist
* Mon Nov 06 2000 - ro@suse.de
- fixed neededforbuild
* Mon Sep 04 2000 - hhetter@suse.de
- removed requires : gncore
- added neededforbuild: gncore
* Fri Sep 01 2000 - hhetter@suse.de
- set %%prefix in specfile to /opt/gnome
- update to version 2.0.7b
- added requires : gncore
* Mon Jun 05 2000 - uli@suse.de
- moved docs to %%{_docdir}
* Tue Dec 14 1999 - uli@suse.de
- New version 2.0.6
* Fri Sep 17 1999 - kettner@suse.de
- Reinserted old # Commandline: line.
* Mon Sep 13 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Tue Jul 13 1999 - bs@suse.de
- use gtk and glib instead of gtkn and glibn
* Thu Jul 08 1999 - uli@suse.de
- New version 2.0.3
* Thu Jun 24 1999 - uli@suse.de
- Spec file created from gftp-2.0.1.tar.gz by autospec
openSUSE Build Service is sponsored by