File filezilla.spec of Package filezilla

#
# spec file for package filezilla
#
# Copyright (c) 2011 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/
#



Name:           filezilla
Version:        3.5.1
Release:        0
License:        GPLv2+
Summary:        A GUI FTP and SFTP Client
Url:            http://filezilla-project.org/
Group:          Productivity/Networking/Ftp/Clients
Source0:        http://prdownloads.sourceforge.net/filezilla/FileZilla_%{version}_src.tar.bz2
BuildRequires:  cppunit
BuildRequires:  fdupes
#BuildRequires:  flac-devel
BuildRequires:  gcc-c++
#BuildRequires:  id3lib-devel
#BuildRequires:  libvorbis-devel
BuildRequires:  tinyxml-devel
BuildRequires:  update-desktop-files
BuildRequires:  wxWidgets-wxcontainer-devel
BuildRequires:  xdg-utils
BuildRequires:  pkgconfig(dbus-1)
BuildRequires:  pkgconfig(gnutls)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(libidn)
BuildRequires:  pkgconfig(sqlite3)
Requires(pre):  update-desktop-files
Patch0:         putty-no_DATE_and_TIME_.patch
Patch1:         filezilla-gnutls3-fix.patch
Recommends:     %{name}-lang = %{version}
Provides:       FileZilla = %{version}
Obsoletes:      FileZilla < %{version}
%define _use_internal_dependency_generator 0
%define __find_requires %wx_requires
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
FileZilla is a modern and powerful FTP client for Windows and Linux.
FileZilla development focuses on high usability while also supporting
as many useful features as possible. FileZilla is "Open Source" under
the GPL license.

Some of the main features are:
   * Continuing interrupted up-/downloads
   * Managing different FTP sites
   * Modifiable Commands
   * Keep-Alive-System
   * Timeout detection
   * Firewall support
   * SOCKS4/5 and HTTP 1.1 proxy support
   * SSL support (secure connections)
   * SFTP support
   * Upload/Download queue
   * Drag&Drop support

%lang_package
%prep
%setup -q
%patch0
%patch1
# Fix invalid translation locales:
cd locales
for LOC in\
    bg_BG\
    ca_ES@valencia\
    cs_CZ\
    da_DK\
    et_EE\
    eu_ES\
    fa_IR\
    fi_FI\
    gl_ES\
    he_IL\
    hu_HU\
    id_ID\
    ja_JP\
    km_KH\
    ko_KR\
    lt_LT\
    lv_LV\
    mk_MK\
    nb_NO\
    nn_NO\
    pl_PL\
    pt_PT\
    ro_RO\
    sl_SI\
    sk_SK\
    th_TH\
    uk_UA\
    vi_VN;
do
    mv -iv $LOC.po ${LOC/_??}.po
done

%build
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
%configure --disable-manualupdatecheck --disable-autoupdatecheck
make %{?_smp_mflags}

%check
make check

%install
%make_install
%suse_update_desktop_file %{name}
%fdupes %{buildroot}%{_datadir}
%{find_lang} %{name}

%clean
rm -rf %{buildroot}

%files
%defattr(-, root, root)
%doc README NEWS
%{_bindir}/%{name}
%{_bindir}/fzsftp
%{_bindir}/fzputtygen
%{_datadir}/%{name}
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/icons/hicolor/16x16/apps/%{name}.png
%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man1/filezilla.*
%{_mandir}/man1/fzputtygen.*
%{_mandir}/man1/fzsftp.*
%{_mandir}/man5/fzdefaults.xml.*

%files -f %{name}.lang lang
%defattr(-, root, root)

%changelog
openSUSE Build Service is sponsored by