X-Git-Url: http://git.pld-linux.org/?p=packages%2FFileZilla.git;a=blobdiff_plain;f=FileZilla.spec;h=46c196b23d34e7d85cd30c915a2adc3156522a99;hp=ca119465f013ca8cc336df430f46523d7282795f;hb=HEAD;hpb=774cc049ec8e6428ff9005256e7c5aa3c8b2011f diff --git a/FileZilla.spec b/FileZilla.spec index ca11946..1554793 100644 --- a/FileZilla.spec +++ b/FileZilla.spec @@ -1,7 +1,6 @@ -# TODO -# - /usr/share/locale/ca_ES@valencia is needed by FileZilla-3.0.5.2-1.i686 -# (there is probably ca_ES@valencia locale in Debian glibc - merge it) -# Temporary removed locale... +%bcond_with storj # support for Storj decentralized cloud storage provider + +%define libfilezilla_ver 0.47.0 Summary: FTP client for X Window Summary(es.UTF-8): Cliente FTP para el X Window Summary(ja.UTF-8): X Window System 用マルチスレッド FTP クライアント @@ -10,32 +9,43 @@ Summary(pt_BR.UTF-8): Cliente FTP para o X Window Summary(ru.UTF-8): FTP клиент для X Window Summary(uk.UTF-8): FTP клієнт для X Window Name: FileZilla -Version: 3.13.1 +Version: 3.67.0 Release: 1 -License: GPL +License: GPL v2+ Group: X11/Applications/Networking -Source0: http://downloads.sourceforge.net/filezilla/%{name}_%{version}_src.tar.bz2 -# Source0-md5: 48e1e32813cfda37ec4688336fed7408 +Source0: https://download.filezilla-project.org/client/%{name}_%{version}_src.tar.xz +# Source0-md5: ddcf03519e2e55ada0bb77c2a6a73fba Patch0: %{name}-desktop.patch -URL: http://filezilla-project.org/ -BuildRequires: autoconf -BuildRequires: automake -BuildRequires: cppunit-devel -BuildRequires: dbus-devel -BuildRequires: gettext-tools -BuildRequires: gnutls-devel >= 2.8.3 -BuildRequires: gtk+2-devel +Patch1: disable-avx-on-i686.patch +URL: https://filezilla-project.org/ +BuildRequires: autoconf >= 2.50 +BuildRequires: automake >= 1.6 +BuildRequires: boost-devel >= 1.76 +BuildRequires: cppunit-devel >= 1.13.0 +BuildRequires: dbus-devel >= 1.2 +BuildRequires: gettext-tools >= 0.11.0 +BuildRequires: gtk+3-devel +BuildRequires: libfilezilla-devel >= %{libfilezilla_ver} BuildRequires: libidn-devel -BuildRequires: libtool >= 2:1.5 +# -std=c++17 +BuildRequires: libstdc++-devel >= 6:7 +BuildRequires: libtool >= 2:2 +BuildRequires: nettle-devel >= 3.1 BuildRequires: pkgconfig -BuildRequires: pugixml-devel >= 1.6-2 -BuildRequires: wxGTK2-unicode-devel >= 3.0.1 -BuildRequires: wxWidgets-devel >= 3.0.1 -BuildRequires: wxWidgets-utils >= 3.0.1 +BuildRequires: pugixml-devel >= 1.9 +BuildRequires: sqlite3-devel >= 3.7 +%{?with_storj:BuildRequires: storj-uplink-c-devel} +BuildRequires: wxGTK3-unicode-devel >= 3.0.4 +BuildRequires: wxWidgets-devel >= 3.0.4 +BuildRequires: wxWidgets-utils >= 3.0.4 BuildRequires: xdg-utils -Requires: wxWidgets >= 3.0.1 +Requires: dbus-libs >= 1.2 +Requires: libfilezilla >= %{libfilezilla_ver} +Requires: nettle >= 3.1 +Requires: pugixml >= 1.9 +Requires: wxGTK3-unicode >= 3.0.4 Provides: filezilla -Obsoletes: filezilla +Obsoletes: filezilla < 3.1 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -49,36 +59,35 @@ opcjami oraz intuicyjnym interfejsem. %prep %setup -q -n filezilla-%{version} %patch0 -p1 +%patch1 -p1 cd locales -mv bg{_BG,}.po -mv cs{_CZ,}.po -mv da{_DK,}.po -#mv et{_EE,}.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 km{_KH,}.po -mv ko{_KR,}.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 -# Temporary - FIXME: -rm -f ca@valencia.po +%{__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} km{_KH,}.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} @@ -87,7 +96,10 @@ rm -f ca@valencia.po %{__autoheader} %{__automake} %configure \ - --with-wx-config=wx-gtk2-unicode-config \ + xdgopen=/usr/bin/xdg-open \ + --disable-precomp \ + --with-wx-config=wx-gtk3-unicode-config \ + %{?with_storj:--enable-storj} \ --with-tinyxml=builtin %{__make} @@ -97,31 +109,42 @@ rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT -# Temporary - FIXME: -rm -rf \ - $RPM_BUILD_ROOT%{_datadir}/locale/{ca_ES@valencia,co,kab,lo_LA} +# API not exported +%{__rm} $RPM_BUILD_ROOT%{_libdir}/libfzclient-private.{la,so} +%{__rm} $RPM_BUILD_ROOT%{_libdir}/libfzclient-commonui-private.{la,so} + +# not supported by glibc (as of 2.32) +%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/co + +# Remove oversized icons +%{__rm} -r $RPM_BUILD_ROOT%{_iconsdir}/hicolor/480x480 %find_lang filezilla %clean rm -rf $RPM_BUILD_ROOT +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + %files -f filezilla.lang %defattr(644,root,root,755) -%doc AUTHORS NEWS README +%doc AUTHORS ChangeLog NEWS README %attr(755,root,root) %{_bindir}/filezilla -%attr(755,root,root) %{_bindir}/fzsftp %attr(755,root,root) %{_bindir}/fzputtygen +%attr(755,root,root) %{_bindir}/fzsftp +%if %{with storj} +%attr(755,root,root) %{_bindir}/fzstorj +%endif +%attr(755,root,root) %{_libdir}/libfzclient-commonui-private-%{version}.so +%attr(755,root,root) %{_libdir}/libfzclient-private-%{version}.so %{_datadir}/appdata/filezilla.appdata.xml %dir %{_datadir}/filezilla %dir %{_datadir}/filezilla/docs %{_datadir}/filezilla/docs/* %dir %{_datadir}/filezilla/resources -%{_datadir}/filezilla/resources/*.png %{_datadir}/filezilla/resources/*.wav %{_datadir}/filezilla/resources/*.xml -%dir %{_datadir}/filezilla/resources/xrc -%{_datadir}/filezilla/resources/xrc/*.xrc %dir %{_datadir}/filezilla/resources/16x16 %{_datadir}/filezilla/resources/16x16/*.gif %{_datadir}/filezilla/resources/16x16/*.png @@ -193,8 +216,21 @@ rm -rf $RPM_BUILD_ROOT %dir %{_datadir}/filezilla/resources/tango/48x48 %{_datadir}/filezilla/resources/tango/48x48/*.png %{_datadir}/filezilla/resources/tango/theme.xml -%{_iconsdir}/hicolor/*/apps/filezilla.png -%{_desktopdir}/*.desktop -%{_pixmapsdir}/*.png -%{_mandir}/man1/*.1* -%{_mandir}/man5/*.5* +%dir %{_datadir}/filezilla/resources/480x480 +%{_datadir}/filezilla/resources/480x480/*.png +%dir %{_datadir}/filezilla/resources/classic +%dir %{_datadir}/filezilla/resources/classic/16x16 +%{_datadir}/filezilla/resources/classic/16x16/*.png +%{_datadir}/filezilla/resources/classic/theme.xml +%dir %{_datadir}/filezilla/resources/default +%dir %{_datadir}/filezilla/resources/default/480x480 +%{_datadir}/filezilla/resources/default/480x480/*.png +%{_datadir}/filezilla/resources/default/theme.xml +%{_iconsdir}/hicolor/*x*/apps/filezilla.png +%{_iconsdir}/hicolor/scalable/apps/filezilla.svg +%{_desktopdir}/filezilla.desktop +%{_pixmapsdir}/filezilla.png +%{_mandir}/man1/filezilla.1* +%{_mandir}/man1/fzputtygen.1* +%{_mandir}/man1/fzsftp.1* +%{_mandir}/man5/fzdefaults.xml.5*