summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2012-08-05 16:48:04 +0200
committerRemi Collet <fedora@famillecollet.com>2012-08-05 16:48:04 +0200
commit7fb3f0f18093561d6d9525759842549d4d986925 (patch)
treea2f288e233895a8eea29a2c4a801677da36457d6
parent7c7a913244e2bbeaab9b4cf881390bf3fe866f37 (diff)
mysql-workbench: some work to 5.2.41 (not working)
-rw-r--r--mysql-workbench-5.2.41-tinyxml.patch (renamed from mysql-workbench-5.2.36-tinyxml.patch)28
-rw-r--r--mysql-workbench-gpl-5.2.41.spec (renamed from mysql-workbench-gpl-5.2.40.spec)46
-rw-r--r--mysql-workbench.spec24
3 files changed, 61 insertions, 37 deletions
diff --git a/mysql-workbench-5.2.36-tinyxml.patch b/mysql-workbench-5.2.41-tinyxml.patch
index 85da580..508d6d7 100644
--- a/mysql-workbench-5.2.36-tinyxml.patch
+++ b/mysql-workbench-5.2.41-tinyxml.patch
@@ -1,6 +1,6 @@
-diff -up mysql-workbench-gpl-5.2.36-src/backend/wbprivate/Makefile.am.tinyxml mysql-workbench-gpl-5.2.36-src/backend/wbprivate/Makefile.am
---- mysql-workbench-gpl-5.2.36-src/backend/wbprivate/Makefile.am.tinyxml 2011-12-02 12:37:03.000000000 +0100
-+++ mysql-workbench-gpl-5.2.36-src/backend/wbprivate/Makefile.am 2011-12-10 07:49:14.230858719 +0100
+diff -up mysql-workbench-gpl-5.2.41-src/backend/wbprivate/Makefile.am.tinyxml mysql-workbench-gpl-5.2.41-src/backend/wbprivate/Makefile.am
+--- mysql-workbench-gpl-5.2.41-src/backend/wbprivate/Makefile.am.tinyxml 2012-07-25 05:07:37.000000000 +0200
++++ mysql-workbench-gpl-5.2.41-src/backend/wbprivate/Makefile.am 2012-08-05 16:19:08.160804046 +0200
@@ -13,8 +13,7 @@ INCLUDES=@GLIB_CFLAGS@ @SIGC_CFLAGS@ @GR
-I$(top_srcdir)/ext/cppconn/ -I$(top_srcdir)/library/dbc/src\
-I$(top_srcdir)/ext/scintilla/include\
@@ -11,7 +11,7 @@ diff -up mysql-workbench-gpl-5.2.36-src/backend/wbprivate/Makefile.am.tinyxml my
libwbprivate_a_SOURCES=\
model/canvas_floater.cpp\
-@@ -76,11 +75,7 @@ libwbprivate_a_SOURCES=\
+@@ -78,11 +77,7 @@ libwbprivate_a_SOURCES=\
$(top_srcdir)/frontend/common/grt_python_debugger.cpp\
$(top_srcdir)/frontend/common/plugin_manager_window.cpp\
$(top_srcdir)/frontend/common/plugin_install_window.cpp\
@@ -24,19 +24,19 @@ diff -up mysql-workbench-gpl-5.2.36-src/backend/wbprivate/Makefile.am.tinyxml my
#BUILT_SOURCES=stdafx.h.gch
#stdafx.h.gch: workbench/stdafx.h
-diff -up mysql-workbench-gpl-5.2.36-src/library/forms/Makefile.am.tinyxml mysql-workbench-gpl-5.2.36-src/library/forms/Makefile.am
---- mysql-workbench-gpl-5.2.36-src/library/forms/Makefile.am.tinyxml 2011-12-02 12:37:01.000000000 +0100
-+++ mysql-workbench-gpl-5.2.36-src/library/forms/Makefile.am 2011-12-10 07:49:59.540022494 +0100
-@@ -74,7 +74,7 @@ gtk/src/lf_menu.cpp\
- gtk/src/lf_menubar.cpp\
+diff -up mysql-workbench-gpl-5.2.41-src/library/forms/Makefile.am.tinyxml mysql-workbench-gpl-5.2.41-src/library/forms/Makefile.am
+--- mysql-workbench-gpl-5.2.41-src/library/forms/Makefile.am.tinyxml 2012-07-25 05:07:41.000000000 +0200
++++ mysql-workbench-gpl-5.2.41-src/library/forms/Makefile.am 2012-08-05 16:20:10.931998514 +0200
+@@ -79,7 +79,7 @@ gtk/src/lf_menubar.cpp\
+ gtk/src/lf_find_panel.cpp\
gtk/src/lf_hypertext.cpp
-libmforms_la_LIBADD=@GNOME_LIBS@ @GNOME_KEYRING_LIBS@
+libmforms_la_LIBADD=@GNOME_LIBS@ @GNOME_KEYRING_LIBS@ -ltinyxml
- INCLUDES=@GLIB_CFLAGS@ @GNOME_CFLAGS@ @SIGC_CFLAGS@ @CAIRO_CFLAGS@ @GNOME_KEYRING_CFLAGS@ @PCRE_CFLAGS@ \
+ INCLUDES=@GLIB_CFLAGS@ @GNOME_CFLAGS@ @SIGC_CFLAGS@ @CAIRO_CFLAGS@ @GNOME_KEYRING_CFLAGS@ @PCRE_CFLAGS@ -DSCI_NAMESPACE\
-I$(top_srcdir)/library/forms\
-@@ -86,7 +86,6 @@ INCLUDES=@GLIB_CFLAGS@ @GNOME_CFLAGS@ @S
+@@ -91,7 +91,6 @@ INCLUDES=@GLIB_CFLAGS@ @GNOME_CFLAGS@ @S
-I$(top_srcdir)/ext/vsqlite\
-I$(top_srcdir)/library/\
-I$(top_srcdir)/ext\
@@ -44,9 +44,9 @@ diff -up mysql-workbench-gpl-5.2.36-src/library/forms/Makefile.am.tinyxml mysql-
-I$(top_srcdir)/ext/scintilla/include
-diff -up mysql-workbench-gpl-5.2.36-src/modules/wb.mysql.import/Makefile.am.tinyxml mysql-workbench-gpl-5.2.36-src/modules/wb.mysql.import/Makefile.am
---- mysql-workbench-gpl-5.2.36-src/modules/wb.mysql.import/Makefile.am.tinyxml 2011-12-02 12:37:03.000000000 +0100
-+++ mysql-workbench-gpl-5.2.36-src/modules/wb.mysql.import/Makefile.am 2011-12-10 07:44:49.683838383 +0100
+diff -up mysql-workbench-gpl-5.2.41-src/modules/wb.mysql.import/Makefile.am.tinyxml mysql-workbench-gpl-5.2.41-src/modules/wb.mysql.import/Makefile.am
+--- mysql-workbench-gpl-5.2.41-src/modules/wb.mysql.import/Makefile.am.tinyxml 2012-07-25 05:07:39.000000000 +0200
++++ mysql-workbench-gpl-5.2.41-src/modules/wb.mysql.import/Makefile.am 2012-08-05 16:19:08.161804049 +0200
@@ -17,7 +17,6 @@ INCLUDES=\
-I$(top_srcdir)/library/sql-parser/source/linux\
-I$(top_srcdir)/ext/vsqlite\
diff --git a/mysql-workbench-gpl-5.2.40.spec b/mysql-workbench-gpl-5.2.41.spec
index f59aed1..a6bd7fe 100644
--- a/mysql-workbench-gpl-5.2.40.spec
+++ b/mysql-workbench-gpl-5.2.41.spec
@@ -1,11 +1,16 @@
%if !%{defined version}
-%define version 5.2.40
+%define version 5.2.41
%endif
%define release 1
%define edition gpl
+# whether at least Python 2.6 is available
%define have_python26 1
%include %{_rpmconfigdir}/macros.python
+# Directory where iodbc and pyodbc binaries are located. Build both using the build_iodbc.sh script
+# If using distribution provided ODBC manager lib and pyodbc, then comment out this
+%define odbc_home %{_builddir}/../odbc/usr
+
Summary: A MySQL visual database modeling, administration and querying tool.
Name: mysql-workbench-%{edition}
Version: %{version}
@@ -23,6 +28,7 @@ BuildRequires: libzip-devel libxml2-devel
BuildRequires: python-devel >= 2.5
BuildRequires: gnome-keyring-devel
BuildRequires: boost-devel
+#BuildRequires: libiodbc-devel
%if %_vendor == suse
BuildRequires: libmysqlclient-devel, libctemplate-devel
@@ -38,9 +44,9 @@ BuildRequires: sqlite-devel
%endif
%if %_vendor == suse
-Requires: python-paramiko python-pexpect
+Requires: python-paramiko python-pexpect
%else
-Requires: python-paramiko pexpect
+Requires: python-paramiko pexpect
%endif
%if %{defined fc13}
Requires: python-sqlite2
@@ -64,15 +70,19 @@ and execute SQL queries.
%build
-NOCONFIGURE=yes ./autogen.sh
-%if %{have_python26}
+%if %{defined have_python26}
+mysql_utilities_flags=--enable-mysql-utilities
+%endif
+
%if %targos == el6
-%configure --disable-debug --enable-mysql-utilities --disable-dependency-tracking --with-bundled-ctemplate
-%else
-%configure --disable-debug --enable-mysql-utilities --disable-dependency-tracking
+ctemplate_flags=--with-bundled-ctemplate
%endif
+
+NOCONFIGURE=yes ./autogen.sh
+%if %{defined odbc_home}
+%configure --disable-debug --disable-dependency-tracking $mysql_utilities_flags $ctemplate_flags --with-odbc-cflags=-I%{odbc_home}/include --with-odbc-libs="-L%{odbc_home}/lib -liodbc"
%else
-%configure --disable-debug --disable-dependency-tracking
+%configure --disable-debug --disable-dependency-tracking $mysql_utilities_flags $ctemplate_flags
%endif
make
@@ -87,11 +97,16 @@ make -C ext install-connector DESTDIR=%{buildroot}
find %{buildroot}%{_libdir}/mysql-workbench -name \*.a -exec rm {} \; -print
find %{buildroot}%{_libdir}/mysql-workbench -name \*.la -exec rm {} \; -print
-%if %{defined centos}
-for l in libpixman-1.so.0 libcairo.so.2 libatkmm-1.6.so.1 libcairomm-1.0.so.1 libgdkmm-2.4.so.1 libglibmm-2.4.so.1 libgtkmm-2.4.so.1 libpangomm-1.4.so.1 libzip.so.1 libsigc-2.0.so.0; do
-cp %{_libdir}/$l %{buildroot}/%{_libdir}/mysql-workbench
-/usr/sbin/prelink -u %{buildroot}/%{_libdir}/mysql-workbench/$l || true
+%if %{defined odbc_home}
+for l in %{odbc_home}/lib/libiodbc.so.* %{odbc_home}/lib/libiodbcinst.so.* %{odbc_home}/lib/libiodbcadm.so.*; do
+cp -a $l %{buildroot}%{_libdir}/mysql-workbench
+/usr/sbin/prelink -u %{buildroot}%{_libdir}/mysql-workbench/`basename $l` || true
done
+
+if [ %{odbc_home}/../pyodbc.so ]; then
+cp -a %{odbc_home}/../pyodbc.so %{buildroot}%{_libdir}/mysql-workbench/modules
+fi
+cp -a %{odbc_home}/bin/iodbcadm-gtk %{buildroot}%{_libdir}/mysql-workbench/
%endif
%post
@@ -131,6 +146,9 @@ rm -rf %{_builddir}/%{name}-%{version}-src
%defattr(0644, root, root, 0755)
%doc COPYING README
%attr(0755,root,root) %{_bindir}/mysql*
+%attr(0755,root,root) %{_bindir}/wbcopytables
+%attr(0755,root,root) %{_datadir}/mysql-workbench/python/mysql*
+%attr(0755,root,root) %{_datadir}/mysql-workbench/extras/*.sh
%dir %{_libdir}/mysql-workbench
%{_libdir}/mysql-workbench/*
%{_datadir}/icons/hicolor/*/mimetypes/*
@@ -141,5 +159,7 @@ rm -rf %{_builddir}/%{name}-%{version}-src
%dir %{_datadir}/mysql-workbench
%{_datadir}/mysql-workbench/*
+%attr(0755,root,root) %{_libdir}/mysql-workbench/iodbcadm-gtk
+
%changelog
diff --git a/mysql-workbench.spec b/mysql-workbench.spec
index f5782b5..7034343 100644
--- a/mysql-workbench.spec
+++ b/mysql-workbench.spec
@@ -1,9 +1,6 @@
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%global mw_version 5.2.40
-%global mw_release 1
-%global tarversion gpl-%{mw_version}-src
-%global srcversion gpl-%{mw_version}-src
+%global tarversion gpl-%{version}-src
# Use system cppconn if a compatible upstream version exists
#global cppconnver 1.1.0-0.3.bzr895
@@ -13,8 +10,8 @@
Summary: A MySQL visual database modeling, administration and querying tool
Name: mysql-workbench
-Version: %{mw_version}
-Release: %{mw_release}%{?dist}
+Version: 5.2.41
+Release: 1%{?dist}
Group: Applications/Databases
License: GPLv2 with exceptions
@@ -28,7 +25,7 @@ Source: http://gd.tuwien.ac.at/db/mysql/Downloads/MySQLGUITools/%{name}-%{tar
# !!! This patch use versioned soname (libmysqlcppconn.so.5) !!!
Patch1: %{name}-5.2.28-cppconn.patch
Patch2: %{name}-5.2.32-ctemplate.patch
-Patch3: %{name}-5.2.36-tinyxml.patch
+Patch3: %{name}-5.2.41-tinyxml.patch
# http://bugs.mysql.com/63898 - fix for automake >= 1.11.2
Patch8: %{name}-5.2.37-automake.patch
@@ -69,6 +66,7 @@ BuildRequires: desktop-file-utils
%if 0%{?fedora} >= 14 || 0%{?rhel} >= 6
BuildRequires: tinyxml-devel >= 2.6.0
%endif
+BuildRequires: libiodbc-devel
Requires: python-paramiko pexpect
%if 0%{?fedora} < 17
@@ -103,7 +101,7 @@ an integrated tools environment for:
%prep
-%setup -q -n %{name}-%{srcversion}
+%setup -q -n %{name}-%{tarversion}
%if 0%{?cppconnver:1}
%patch1 -p1 -b .cppconn
@@ -111,7 +109,7 @@ rm -rf ext/cppconn
%endif
%if 0%{?fedora} >= 12
-%patch2 -p1 -b .ctemplate
+#patch2 -p1 -b .ctemplate
rm -rf ext/ctemplate
%endif
@@ -120,7 +118,7 @@ rm -rf ext/ctemplate
rm -rf library/tinyxml
%endif
-%patch8 -p1 -b .automake
+#patch8 -p1 -b .automake
touch -r COPYING .timestamp4rpm
@@ -145,6 +143,8 @@ export CXXFLAGS="$RPM_OPT_FLAGS -fpermissive"
%if 0%{?fedora} < 12 && 0%{?rhel} < 7
--with-bundled-ctemplate \
%endif
+ --with-odbc-cflags="$(pkg-config --cflags libiodbc)" \
+ --with-odbc-libs="$(pkg-config --libs libiodbc)" \
--enable-mysql-utilities
make %{?_smp_mflags}
@@ -204,6 +204,10 @@ fi
%changelog
+* Sun Aug 05 2012 Remi Collet <remi@fedoraproject.org> 5.2.41-1
+- update to 5.2.41 Community (OSS) Edition (GPL)
+ http://dev.mysql.com/doc/workbench/en/wb-news-5-2-41.html
+
* Tue May 15 2012 Remi Collet <remi@fedoraproject.org> 5.2.40-1
- update to 5.2.40 Community (OSS) Edition (GPL)
http://dev.mysql.com/doc/workbench/en/wb-news-5-2-40.html