Summary: Library for high-performing platform-independent programs
Summary(pl.UTF-8): Biblioteka do wydajnych programów niezależnych od platformy
Name: libfilezilla
-Version: 0.15.1
+Version: 0.18.2
Release: 1
-License: GPL v2
+License: GPL v2+
Group: Libraries
Source0: https://download.filezilla-project.org/libfilezilla/%{name}-%{version}.tar.bz2
-# Source0-md5: a8c6f02999c635c506830a3d512ddf14
+# 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\.UTF-8$'; echo $?)
+%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++14
-BuildRequires: libstdc++-devel >= 6:5
+# -std=c++17
+BuildRequires: libstdc++-devel >= 6:7
BuildRequires: rpmbuild(macros) >= 1.583
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libfilezilla
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
-Requires: libstdc++-devel >= 6:5
+Requires: libstdc++-devel >= 6:7
+Requires: gnutls-devel >= 3.5.7
+Requires: nettle-devel >= 3.1
%description devel
Header files for libfilezilla library.
%prep
%setup -q
+cd locales
+%{__mv} bg{_BG,}.po
+%{__mv} ca{_ES,}@valencia.po
+%{__mv} cs{_CZ,}.po
+%{__mv} fa{_IR,}.po
+%{__mv} fi{_FI,}.po
+%{__mv} gl{_ES,}.po
+%{__mv} he{_IL,}.po
+%{__mv} hu{_HU,}.po
+%{__mv} id{_ID,}.po
+%{__mv} ja{_JP,}.po
+%{__mv} ko{_KR,}.po
+%{__mv} lo{_LA,}.po
+%{__mv} lt{_LT,}.po
+%{__mv} lv{_LV,}.po
+%{__mv} mk{_MK,}.po
+%{__mv} nb{_NO,}.po
+%{__mv} nn{_NO,}.po
+%{__mv} pl{_PL,}.po
+%{__mv} pt{_PT,}.po
+%{__mv} ro{_RO,}.po
+%{__mv} sk{_SK,}.po
+%{__mv} sl{_SI,}.po
+%{__mv} th{_TH,}.po
+%{__mv} uk{_UA,}.po
+%{__mv} vi{_VN,}.po
+
%build
%{__libtoolize}
%{__aclocal} -I m4
%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
+# not supported by glibc (as of 2.25)
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/co
+
+%find_lang %{name}
+
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
-%files
+%files -f %{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README
%attr(755,root,root) %{_libdir}/libfilezilla.so.*.*.*