-Source0: http://downloads.sourceforge.net/filezilla/%{name}-%{version}.tar.bz2
-# Source0-md5: 57b9cfba8acc2874cb31cdbeffd5b9bb
-URL: http://lib.filezilla-project.org/
-BuildRequires: libstdc++-devel
+Source0: https://download.filezilla-project.org/libfilezilla/%{name}-%{version}.tar.bz2
+# Source0-md5: b72d406002aff5128651ab8d7a6666c4
+URL: https://lib.filezilla-project.org/
+%{?with_tests:BuildRequires: cppunit-devel >= 1.13.0}
+%{?with_apidocs:BuildRequires: doxygen}
+%if %{with tests} && %(locale -a | grep -q '^C\.utf8$'; echo $?)
+BuildRequires: glibc-localedb-all
+%endif
+BuildRequires: autoconf >= 2.50
+BuildRequires: automake
+BuildRequires: gettext-tools >= 0.11.0
+BuildRequires: gnutls-devel >= 3.5.7
+BuildRequires: libtool >= 2:2
+BuildRequires: nettle-devel >= 3.1
+BuildRequires: pkgconfig >= 1:0.7
+# -std=c++17
+BuildRequires: libstdc++-devel >= 6:7