[filezilla] Add with_gtk3 conditionals

Nicolas Chauvet kwizart at fedoraproject.org
Tue Jul 29 09:28:31 UTC 2014


commit 477ef15cac92d7a8419a0c457c4e20be3276e077
Author: Nicolas Chauvet <kwizart at gmail.com>
Date:   Tue Jul 29 11:28:23 2014 +0200

    Add with_gtk3 conditionals

 filezilla.spec |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/filezilla.spec b/filezilla.spec
index 42c844d..f65b6bf 100644
--- a/filezilla.spec
+++ b/filezilla.spec
@@ -1,4 +1,7 @@
 %global fz_rc   rc2
+%if 0%{?fedora} >= 21
+%global _with_wxgtk3 1
+%endif
 
 Name:           filezilla
 Version:        3.9.0
@@ -29,8 +32,11 @@ BuildRequires:  sqlite-devel
 #http://sourceforge.net/p/tinyxml/patches/51/
 #BuildRequires:  tinyxml-devel >= 2.5.3
 Provides: bundled(tinyxml) = 2.6.2
-BuildRequires:  wxGTK3-devel
-
+%if 0%{_with_wxgtk3}
+BuildRequires:  wxGTK3-devel >= 3.0.1
+%else
+BuildRequires:  wxGTK-devel
+%endif
 
 
 %description
@@ -59,7 +65,9 @@ FileZilla is a FTP, FTPS and SFTP client for Linux with a lot of features.
   --enable-locales \
   --disable-manualupdatecheck \
   --with-tinyxml=builtin \
+%if 0%{_with_wxgtk3}
   --with-wx-config=wx-config-3.0 \
+%endif
   --disable-autoupdatecheck 
 
 ## Do not use --enable-buildtype=official 


More information about the scm-commits mailing list