summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2011-03-09 21:27:20 +0100
committerRemi Collet <fedora@famillecollet.com>2011-03-09 21:27:20 +0100
commitade9aa96e1f5d2b2d18c9f3df85e6c481708a373 (patch)
tree5c72aa2dac9b2d5d1214fee29cf35c8c6449f247
parent3d3141d0b5141ee8e818941104b7bb673cafd53a (diff)
mysql-workbench, fix fedora <= 13 build (system tinyxml is too old)
-rw-r--r--mysql-workbench.spec12
1 files changed, 9 insertions, 3 deletions
diff --git a/mysql-workbench.spec b/mysql-workbench.spec
index 9ab80c8..63785fe 100644
--- a/mysql-workbench.spec
+++ b/mysql-workbench.spec
@@ -3,6 +3,8 @@
%global postver -src
%global mw_version 5.2.32
%global tartype gpl
+
+# Use system cppconn if a compatible upstream version exists
#global cppconnver 1.1.0-0.3.bzr895
# "script_templates" (and some others) shouldn't be compiled
@@ -57,7 +59,9 @@ BuildRequires: sqlite-devel
BuildRequires: mysql-connector-c++-devel >= %{cppconnver}
%endif
BuildRequires: desktop-file-utils
-BuildRequires: tinyxml-devel
+%if 0%{?fedora} >= 14 || 0%{?rhel} >= 6
+BuildRequires: tinyxml-devel >= 2.6.0
+%endif
Requires: python-paramiko pexpect python-sqlite2
Requires: mysql-utilities
@@ -106,7 +110,6 @@ and administering MySQL servers.
%setup -q -n %{name}-%{tartype}-%{mw_version}%{?postver}
%if 0%{?cppconnver:1}
-# Use system cppconn if an upstream version
%patch1 -p1 -b .cppconn
rm -rf ext/cppconn
%endif
@@ -115,7 +118,10 @@ rm -rf ext/cppconn
%patch2 -p1 -b .ctemplate
%endif
+%if 0%{?fedora} >= 14 || 0%{?rhel} >= 6
%patch3 -p1 -b .tinyxml
+rm -rf library/tinyxml
+%endif
touch -r COPYING .timestamp4rpm
%{__sed} -i -e 's/\r//g' COPYING
@@ -129,7 +135,6 @@ rm -rf ext/yassl
%if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
rm -rf ext/ctemplate
%endif
-rm -rf library/tinyxml
# avoid "No such file" during configure
touch po/POTFILES.in
@@ -231,6 +236,7 @@ update-desktop-database &> /dev/null || :
- use bundled cppconn (which is a fork of svn version...)
- add mysql-utilities sub-package
- requires mysql-connector-python
+- use system tinyxml >= 2.6.0 when available
* Mon Nov 22 2010 Remi Collet <Fedora@famillecollet.com> 5.2.30-1
- update to 5.2.30 Community (OSS) Edition (GPL)