]> git.pld-linux.org Git - packages/libfilezilla.git/blobdiff - libfilezilla.spec
- updated to 0.18.2
[packages/libfilezilla.git] / libfilezilla.spec
index fae83c1c5cec587ddde78e342f459e130ee0677f..ac8c22a8afaa611ad56b0feadd6e4795555506ab 100644 (file)
@@ -7,24 +7,27 @@
 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.10.1
+Version:       0.18.2
 Release:       1
-License:       GPL v2
+License:       GPL v2+
 Group:         Libraries
-Source0:       http://download.filezilla-project.org/libfilezilla/%{name}-%{version}.tar.bz2
-# Source0-md5: 0ab3b56ca55e608d601ada68dd86d673
-URL:           http://lib.filezilla-project.org/
-%{?with_tests:BuildRequires:   cppunit-devel >= 1.10.2}
+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\.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)
 
@@ -60,7 +63,9 @@ Summary:      Header files for libfilezilla library
 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.
@@ -94,6 +99,33 @@ Dokumentacja API biblioteki %{name}.
 %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
@@ -122,13 +154,18 @@ rm -rf $RPM_BUILD_ROOT
 
 %{__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.*.*.*
This page took 0.062473 seconds and 4 git commands to generate.