X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;ds=sidebyside;f=FileZilla.spec;h=670b427b531a748544120c45ef56f207502991ea;hb=9ae3d50eacb5387aaf2bfd1f3d5a3fb736f3b781;hp=e8b1db6c19b35af0519cc590ac843387347a5f82;hpb=4a040b72db8027f42b91bd389387125696eca9b8;p=packages%2FFileZilla.git diff --git a/FileZilla.spec b/FileZilla.spec index e8b1db6..670b427 100644 --- a/FileZilla.spec +++ b/FileZilla.spec @@ -1,7 +1,8 @@ -# 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... +# +# Conditional build: +%bcond_with storj # support for Storj decentralized cloud storage provider + +%define libfilezilla_ver 0.25.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,33 +11,39 @@ 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.20.0 +Version: 3.51.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: 91c548a361e188bf21984246b5eba482 +Source0: https://download.filezilla-project.org/client/%{name}_%{version}_src.tar.bz2 +# Source0-md5: d8e9abde7a0b0a64d6896b6e6732ef96 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 >= 3.4.0 -BuildRequires: gtk+2-devel -BuildRequires: libfilezilla-devel >= 0.6.1 +URL: https://filezilla-project.org/ +BuildRequires: autoconf >= 2.50 +BuildRequires: automake >= 1.6 +BuildRequires: cppunit-devel >= 1.13.0 +BuildRequires: dbus-devel >= 1.2 +BuildRequires: gettext-tools >= 0.11.0 +BuildRequires: gtk+2-devel >= 1:2.0 +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: systemd-devel -BuildRequires: wxGTK2-unicode-devel >= 3.0.1 -BuildRequires: wxWidgets-devel >= 3.0.1 -BuildRequires: wxWidgets-utils >= 3.0.1 +BuildRequires: sqlite3-devel >= 3.7 +%{?with_storj:BuildRequires: storj-uplink-c-devel} +BuildRequires: wxGTK2-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.6-2 +Requires: wxGTK2-unicode >= 3.0.4 Provides: filezilla Obsoletes: filezilla BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -54,34 +61,32 @@ opcjami oraz intuicyjnym interfejsem. %patch0 -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} @@ -90,7 +95,10 @@ rm -f ca@valencia.po %{__autoheader} %{__automake} %configure \ + xdgopen=/usr/bin/xdg-open \ + --disable-precomp \ --with-wx-config=wx-gtk2-unicode-config \ + %{?with_storj:--enable-storj} \ --with-tinyxml=builtin %{__make} @@ -100,27 +108,38 @@ 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} + +# 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-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 @@ -196,8 +215,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*