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.14.1
Release:        0
Summary:        A GUI FTP and SFTP Client
License:        GPL-2.0+
Group:          Productivity/Networking/Ftp/Clients
Url:            https://filezilla-project.org/
Source0:        http://download.filezilla-project.org/client/FileZilla_%{version}_src.tar.bz2
# PATCH-FIX-OPENSUSE putty-no_DATE_and_TIME_.patch
Patch0:         putty-no_DATE_and_TIME_.patch
# PATCH-FIX-OPENSUSE filezilla-3.5.3-buildinfo-no-date.patch
Patch1:         filezilla-3.5.3-buildinfo-no-date.patch
# PATCH-FIX-UPSTREAM filezilla-3.14.1_wxstring.patch
Patch2:         filezilla-3.14.1_wxstring.patch
# PATCH-FIX-UPSTREAM filezilla-3.14.1_xml.patch
Patch3:         filezilla-3.14.1_xml.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  fdupes
BuildRequires:  hicolor-icon-theme
BuildRequires:  libtool
# needs long long support in pugixml
BuildRequires:  pugixml-devel >= 1.7
BuildRequires:  update-desktop-files
BuildRequires:  wxWidgets-3_0-devel >= 3.0.2
BuildRequires:  xdg-utils
BuildRequires:  pkgconfig(cppunit)
BuildRequires:  pkgconfig(dbus-1)
BuildRequires:  pkgconfig(gnutls) >= 3.1.12
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(libidn)
BuildRequires:  pkgconfig(sqlite3)
Recommends:     %{name}-lang
%if 0%{?suse_version} <= 1320
# FileZilla requires C++14 support.
BuildRequires:  gcc5-c++
%else
BuildRequires:  gcc-c++
%endif

%description
FileZilla is a modern and powerful FTP client.
FileZilla development focuses on high usability while also
supporting as many useful features as possible.

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
%patch2 -p1
%patch3 -p1

# Fix invalid translation locales:
find locales/ -maxdepth 1 -type f -regex '.+_[A-Z][A-Z].*\.po' | while read file; do
    mv -fv "$file" "${file/_[A-Z][A-Z]}"
done

%build
%if 0%{?suse_version} <= 1320
export CC="gcc-5"
export CXX="g++-5"
# Default ABI through G++4.9, thus the one wxWidgets uses.
export CXXFLAGS="%{optflags} -fabi-version=2 -fabi-compat-version=2"
%endif
autoreconf -fi
%configure \
  --disable-static            \
  --disable-manualupdatecheck \
  --disable-autoupdatecheck   \
  --with-dbus
make %{?_smp_mflags}

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

%check
make check %{?_smp_mflags}

%post
%desktop_database_post
%icon_theme_cache_post

%postun
%desktop_database_postun
%icon_theme_cache_postun

%files
%defattr(-,root,root)
%doc README NEWS
%{_bindir}/%{name}
%{_bindir}/fzsftp
%{_bindir}/fzputtygen
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_datadir}/pixmaps/%{name}.png
%dir %{_datadir}/appdata/
%{_datadir}/appdata/%{name}.appdata.xml
%{_mandir}/man1/filezilla.1%{?ext_man}
%{_mandir}/man1/fzputtygen.1%{?ext_man}
%{_mandir}/man1/fzsftp.1%{?ext_man}
%{_mandir}/man5/fzdefaults.xml.5%{?ext_man}

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

%changelog
openSUSE Build Service is sponsored by