File filezilla.spec of Package filezilla

#
# spec file for package filezilla
#
# Copyright (c) 2015 SUSE LINUX 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.12.0.2
Release:        0
Summary:        A GUI FTP and SFTP Client
License:        GPL-2.0+
Group:          Productivity/Networking/Ftp/Clients
Url:            http://filezilla-project.org/
Source0:        http://prdownloads.sourceforge.net/filezilla/FileZilla_%{version}_src.tar.bz2
Patch0:         putty-no_DATE_and_TIME_.patch
Patch1:         filezilla-3.5.3-buildinfo-no-date.patch
BuildRequires:  cppunit-devel
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  tinyxml-devel
BuildRequires:  update-desktop-files
%if 0%{suse_version} >= 1310
BuildRequires:  wxWidgets-3_0-devel >= 3.0.2
%else
BuildRequires:  wxWidgets-devel >= 3.0.2
%endif
BuildRequires:  xdg-utils
BuildRequires:  pkgconfig(dbus-1)
BuildRequires:  pkgconfig(gnutls) >= 3.1.12
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(libidn)
BuildRequires:  pkgconfig(sqlite3)
Requires(pre):  update-desktop-files
Recommends:     %{name}-lang = %{version}
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\
    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-static \
	--disable-manualupdatecheck \
	--disable-autoupdatecheck \
	--with-tinyxml=system \
	--with-dbus
make %{?_smp_mflags}

%check
make check %{?_smp_mflags}

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

%files
%defattr(-, root, root)
%doc README NEWS COPYING AUTHORS
%{_bindir}/%{name}
%{_bindir}/fzsftp
%{_bindir}/fzputtygen
%{_datadir}/%{name}
%dir %{_datadir}/appdata/
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/icons/hicolor/16x16/apps/%{name}.png
%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_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