[mysql-workbench/f13/master] update to 5.2.33b

Remi Collet remi at fedoraproject.org
Wed Mar 23 14:27:52 UTC 2011


commit fd8e51ea240f2839198db0fe1956dede6e40fa57
Author: remi <fedora at famillecollet.com>
Date:   Wed Mar 23 15:27:37 2011 +0100

    update to 5.2.33b

 .gitignore                             |    1 +
 mysql-workbench-5.2.27-ctemplate.patch |   34 ---
 mysql-workbench-5.2.28-tinyxml.patch   |  385 --------------------------------
 mysql-workbench-5.2.32-ctemplate.patch |   15 ++
 mysql-workbench-5.2.32-tinyxml.patch   |   64 ++++++
 mysql-workbench.spec                   |  125 +++++++++--
 sources                                |    2 +-
 7 files changed, 187 insertions(+), 439 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index f441947..e408461 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 /mysql-workbench-gpl-5.2.28-src.tar.gz
 /mysql-workbench-gpl-5.2.29-src.tar.gz
 /mysql-workbench-gpl-5.2.30-src.tar.gz
+/mysql-workbench-gpl-5.2.33b-src.tar.gz
diff --git a/mysql-workbench-5.2.32-ctemplate.patch b/mysql-workbench-5.2.32-ctemplate.patch
new file mode 100644
index 0000000..1106494
--- /dev/null
+++ b/mysql-workbench-5.2.32-ctemplate.patch
@@ -0,0 +1,15 @@
+diff -up mysql-workbench-gpl-5.2.32-src/ext/Makefile.am.ctemplate mysql-workbench-gpl-5.2.32-src/ext/Makefile.am
+--- mysql-workbench-gpl-5.2.32-src/ext/Makefile.am.ctemplate	2011-03-04 01:54:51.000000000 +0100
++++ mysql-workbench-gpl-5.2.32-src/ext/Makefile.am	2011-03-09 16:15:36.132686915 +0100
+@@ -1,10 +1,5 @@
+ 
+-if BUILD_CTEMPLATE
+-else
+-ctemplate_dirs=ctemplate 
+-endif
+-
+-SUBDIRS=scintilla/gtk cppconn vsqlite++ $(ctemplate_dirs)
++SUBDIRS=scintilla/gtk cppconn vsqlite++
+ 
+ if BUNDLE_UTILITIES
+ all-am:
diff --git a/mysql-workbench-5.2.32-tinyxml.patch b/mysql-workbench-5.2.32-tinyxml.patch
new file mode 100644
index 0000000..9479f01
--- /dev/null
+++ b/mysql-workbench-5.2.32-tinyxml.patch
@@ -0,0 +1,64 @@
+--- mysql-workbench-gpl-5.2.32-src/library/forms/Makefile.am.tinyxml	2011-03-09 17:29:40.830185016 +0100
++++ mysql-workbench-gpl-5.2.32-src/library/forms/Makefile.am	2011-03-09 17:29:58.392510545 +0100
+@@ -67,7 +67,7 @@
+ gtk/src/lf_menu.cpp\
+ gtk/src/lf_menubar.cpp
+ 
+-libmforms_la_LIBADD=@GNOME_LIBS@ @GNOME_KEYRING_LIBS@
++libmforms_la_LIBADD=@GNOME_LIBS@ @GNOME_KEYRING_LIBS@ -ltinyxml
+ 
+ INCLUDES=@GNOME_CFLAGS@ @SIGC_CFLAGS@ @CAIRO_CFLAGS@ @GNOME_KEYRING_CFLAGS@ \
+ -I$(top_srcdir)/library/forms\
+@@ -79,7 +79,6 @@
+ -I$(top_srcdir)/ext/vsqlite\
+ -I$(top_srcdir)/library/\
+ -I$(top_srcdir)/ext\
+--I$(top_srcdir)/ext/tinyxml\
+ -I$(top_srcdir)/ext/scintilla/include
+ 
+ 
+--- mysql-workbench-gpl-5.2.32-src/modules/wb.mysql.import/Makefile.am.tinyxml	2011-03-04 01:54:41.000000000 +0100
++++ mysql-workbench-gpl-5.2.32-src/modules/wb.mysql.import/Makefile.am	2011-03-09 17:21:41.863136166 +0100
+@@ -17,7 +17,6 @@
+ 	-I$(top_srcdir)/library/sql-parser/source/linux\
+ 	-I$(top_srcdir)/ext/vsqlite\
+ 	-I$(top_srcdir)/ext/vsqlite++/include\
+-	-I$(top_srcdir)/ext/tinyxml\
+ 	@MYSQL_INCLUDE@ @GRT_CFLAGS@ @GLIB_CFLAGS@ @SIGC_CFLAGS@
+ 
+ 
+@@ -26,8 +25,4 @@
+ 
+ wb_mysql_import_grt_la_SOURCES=\
+ 	src/wb_mysql_import.cpp\
+-	src/wb_mysql_import_dbd4.cpp\
+-	$(top_srcdir)/ext/tinyxml/tinyxmlparser.cpp\
+-	$(top_srcdir)/ext/tinyxml/tinyxml.cpp\
+-	$(top_srcdir)/ext/tinyxml/tinystr.cpp\
+-	$(top_srcdir)/ext/tinyxml/tinyxmlerror.cpp
++	src/wb_mysql_import_dbd4.cpp
+--- mysql-workbench-gpl-5.2.32-src/backend/wbprivate/Makefile.am.tinyxml	2011-03-04 01:54:50.000000000 +0100
++++ mysql-workbench-gpl-5.2.32-src/backend/wbprivate/Makefile.am	2011-03-09 17:21:41.860136279 +0100
+@@ -13,8 +13,7 @@
+   -I$(top_srcdir)/ext/cppconn/ -I$(top_srcdir)/library/dbc/src\
+   -I$(top_srcdir)/ext/scintilla/include\
+   -I$(top_srcdir)/ext/vsqlite++/include\
+-  -I$(top_srcdir)/ext/vsqlite\
+-  -I$(top_srcdir)/ext/tinyxml
++  -I$(top_srcdir)/ext/vsqlite
+ 
+ libwbprivate_a_SOURCES=\
+ 	model/canvas_floater.cpp\
+@@ -74,11 +73,7 @@
+   $(top_srcdir)/frontend/common/grt_shell_window.cpp\
+   $(top_srcdir)/frontend/common/grt_code_editor.cpp\
+   $(top_srcdir)/frontend/common/grt_python_debugger.cpp\
+-  $(top_srcdir)/frontend/common/plugin_manager_window.cpp\
+-  $(top_srcdir)/ext/tinyxml/tinyxmlparser.cpp\
+-  $(top_srcdir)/ext/tinyxml/tinyxml.cpp\
+-  $(top_srcdir)/ext/tinyxml/tinystr.cpp\
+-  $(top_srcdir)/ext/tinyxml/tinyxmlerror.cpp
++  $(top_srcdir)/frontend/common/plugin_manager_window.cpp
+ 
+ #BUILT_SOURCES=stdafx.h.gch
+ #stdafx.h.gch: workbench/stdafx.h
diff --git a/mysql-workbench.spec b/mysql-workbench.spec
index 80adaf8..bb9ea58 100644
--- a/mysql-workbench.spec
+++ b/mysql-workbench.spec
@@ -1,13 +1,18 @@
-%global postver -src
-%global tartype gpl
-%global cppconnver 1.1.0-0.3.bzr895
+%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+
+%global mw_version 5.2.33b
+%global tarversion gpl-5.2.33b-src
+%global srcversion gpl-5.2.33-src
+
+# 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
 %global _python_bytecompile_errors_terminate_build 0
 
 Summary:   A MySQL visual database modeling, administration and querying tool
 Name:      mysql-workbench
-Version:   5.2.30
+Version:   %{mw_version}
 Release:   1%{?dist}
 Group:     Applications/Databases
 License:   GPLv2 with exceptions
@@ -16,13 +21,13 @@ URL:       http://wb.mysql.com
 # Upstream has a mirror redirector for downloads, so the URL is hard to
 # represent statically.  You can get the tarball by following a link from
 # http://dev.mysql.com/downloads/workbench/
-Source:    http://gd.tuwien.ac.at/db/mysql/Downloads/MySQLGUITools/%{name}-%{tartype}-%{version}%{?postver}.tar.gz
+Source:    http://gd.tuwien.ac.at/db/mysql/Downloads/MySQLGUITools/%{name}-%{tarversion}.tar.gz
 
 # don't build extension, use system one
 # !!! This patch use versioned soname (libmysqlcppconn.so.5) !!!
 Patch1:    %{name}-5.2.28-cppconn.patch
-Patch2:    %{name}-5.2.27-ctemplate.patch
-Patch3:    %{name}-5.2.28-tinyxml.patch
+Patch2:    %{name}-5.2.32-ctemplate.patch
+Patch3:    %{name}-5.2.32-tinyxml.patch
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires: pcre-devel >= 3.9
@@ -47,17 +52,24 @@ BuildRequires: libuuid-devel
 %else
 BuildRequires: uuid-devel
 %endif
-BuildRequires: gtkmm24-devel
+BuildRequires: gtkmm24-devel >= 2.18
 BuildRequires: libGL-devel
 BuildRequires: sqlite-devel
+%if 0%{?cppconnver:1}
 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
 # requires mysql client pkg (for mysqldump and mysql cmdline client)
 Requires: mysql gnome-keyring
+%if 0%{?cppconnver:1}
 Requires: mysql-connector-c++ >= %{cppconnver}
+%endif
 # Official upstream builds (name changes quite often)
 Conflicts: mysql-workbench-oss
 Conflicts: mysql-workbench-ce
@@ -73,14 +85,44 @@ an integrated tools environment for:
 * Database Administration (replacing MySQL Administrator)
 
 
+%package -n mysql-utilities
+
+Summary:        Scripts for managing and administering MySQL servers
+# Not yet published (else will be package separatly)
+# see ext/mysql-utilities/CHANGES.txt
+Version:        1.0.0
+Release:        0.%{mw_version}%{?dist}
+
+BuildArch:      noarch
+BuildRequires:  python-devel >= 2.4
+%if 0%{?fedora} >= 14
+BuildRequires:  python-sphinx >= 1.0
+%endif
+
+Requires:       mysql-connector-python
+
+%description -n mysql-utilities
+MySQL Utilities contain a collection of scripts useful for managing
+and administering MySQL servers.
+
+
 %prep
-%setup -q -n %{name}-%{tartype}-%{version}%{?postver}
+%setup -q -n %{name}-%{srcversion}
 
+%if 0%{?cppconnver:1}
 %patch1 -p1 -b .cppconn
+rm -rf ext/cppconn
+%endif
+
 %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
 %patch2 -p1 -b .ctemplate
+rm -rf ext/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
@@ -91,11 +133,6 @@ rm -rf ext/boost
 rm -rf ext/curl
 rm -rf ext/libsigc++
 rm -rf ext/yassl
-rm -rf ext/cppconn
-%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
@@ -103,15 +140,31 @@ touch po/POTFILES.in
 
 %build
 NOCONFIGURE=yes ./autogen.sh
-%configure --disable-debug
+%configure --disable-debug --enable-mysql-utilities
 
 make %{?_smp_mflags}
 
+%if 0%{?fedora} >= 14
+pushd ext/mysql-utilities
+%{__python} setup.py build_man
+popd
+%endif
+
 
 %install
 rm -rf %{buildroot}
 make install DESTDIR=%{buildroot}
 
+pushd ext/mysql-utilities
+%{__install} --directory %{buildroot}%{_prefix}/man/man1
+%{__python} setup.py install --skip-profile --root %{buildroot}
+
+%if 0%{?fedora} >= 14
+%{__install} --directory %{buildroot}%{_mandir}
+%{__mv} %{buildroot}%{_prefix}/man/man1 %{buildroot}%{_mandir}/man1
+%endif
+popd
+
 # clean dev files
 echo Cleanup dev file
 find %{buildroot}%{_libdir}/%{name} -name \*.a  -exec rm {} \; -print
@@ -140,15 +193,49 @@ update-desktop-database &> /dev/null || :
 
 %files
 %defattr(-, root, root, -)
-%doc AUTHORS COPYING COPYING.LGPL README samples ChangeLog
-%attr(0755,root,root) %{_bindir}/%{name}
-%attr(0755,root,root) %{_bindir}/%{name}-bin
+# NEWS and ChangeLog are empty or outdated
+%doc AUTHORS COPYING COPYING.LGPL README samples
+%{_bindir}/%{name}
+%{_bindir}/%{name}-bin
 %{_datadir}/applications/MySQLWorkbench.desktop
 %{_libdir}/%{name}
 %{_datadir}/%{name}
+%exclude %{_datadir}/doc/%{name}
+
+
+%files -n mysql-utilities
+%defattr(-, root, root, -)
+%doc ext/mysql-utilities/*.txt
+%{_bindir}/mysqldbcopy
+%{_bindir}/mysqldbexport
+%{_bindir}/mysqldbimport
+%{_bindir}/mysqldiff
+%{_bindir}/mysqldiskusage
+%{_bindir}/mysqlindexcheck
+%{_bindir}/mysqlmetagrep
+%{_bindir}/mysqlprocgrep
+%{_bindir}/mysqlreplicate
+%{_bindir}/mysqlserverclone
+%{_bindir}/mysqluserclone
+%{python_sitelib}/mysql/utilities
+%{python_sitelib}/mysql_utilities*
+%if 0%{?fedora} >= 14
+%{_mandir}/man1/*
+%endif
+# empty file already provided by mysql-connector-python
+%exclude %{python_sitelib}/mysql/__init*
 
 
 %changelog
+* Wed Mar 23 2011 Remi Collet <Fedora at famillecollet.com> 5.2.33b-1
+- update to 5.2.33b Community (OSS) Edition (GPL)
+  http://dev.mysql.com/doc/workbench/en/wb-news-5-2-33b.html
+  http://wb.mysql.com/?page_id=49
+- 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 at famillecollet.com> 5.2.30-1
 - update to 5.2.30 Community (OSS) Edition (GPL)
   http://dev.mysql.com/doc/workbench/en/wb-news-5-2-30.html
diff --git a/sources b/sources
index 293616b..3cacd95 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-664bbc3bdb846f3ae696e4d65f3cb70f  mysql-workbench-gpl-5.2.30-src.tar.gz
+850e081eeaea87a88c408483817e4b1f  mysql-workbench-gpl-5.2.33b-src.tar.gz


More information about the scm-commits mailing list