diff options
author | Remi Collet <fedora@famillecollet.com> | 2011-03-09 20:09:40 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2011-03-09 20:09:40 +0100 |
commit | 3d3141d0b5141ee8e818941104b7bb673cafd53a (patch) | |
tree | 6947da0ef588b099a9aed61ac3cd3430074d7e8c | |
parent | 1bd97033f2253ff06b10044c3ddff5c09b2bb233 (diff) |
mysql-workbench 5.2.32
-rw-r--r-- | mysql-workbench-5.2.32-ctemplate.patch | 15 | ||||
-rw-r--r-- | mysql-workbench-5.2.32-tinyxml.patch | 64 | ||||
-rw-r--r-- | mysql-workbench.spec | 103 |
3 files changed, 172 insertions, 10 deletions
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..9ab80c8 100644 --- a/mysql-workbench.spec +++ b/mysql-workbench.spec @@ -1,13 +1,16 @@ +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + %global postver -src +%global mw_version 5.2.32 %global tartype gpl -%global cppconnver 1.1.0-0.3.bzr895 +#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 @@ -21,8 +24,8 @@ Source: http://gd.tuwien.ac.at/db/mysql/Downloads/MySQLGUITools/%{name}-%{tar # 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 @@ -50,14 +53,19 @@ BuildRequires: uuid-devel BuildRequires: gtkmm24-devel BuildRequires: libGL-devel BuildRequires: sqlite-devel +%if 0%{?cppconnver:1} BuildRequires: mysql-connector-c++-devel >= %{cppconnver} +%endif BuildRequires: desktop-file-utils BuildRequires: tinyxml-devel 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,13 +81,40 @@ 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%{?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}-%{tartype}-%{mw_version}%{?postver} +%if 0%{?cppconnver:1} +# Use system cppconn if an upstream version %patch1 -p1 -b .cppconn +rm -rf ext/cppconn +%endif + %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6 %patch2 -p1 -b .ctemplate %endif + %patch3 -p1 -b .tinyxml touch -r COPYING .timestamp4rpm @@ -91,7 +126,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 @@ -103,15 +137,32 @@ 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 +191,47 @@ 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 09 2011 Remi Collet <Fedora@famillecollet.com> 5.2.32-1 +- update to 5.2.32 Community (OSS) Edition (GPL) + http://dev.mysql.com/doc/workbench/en/wb-news-5-2-32.html +- use bundled cppconn (which is a fork of svn version...) +- add mysql-utilities sub-package +- requires mysql-connector-python + * Mon Nov 22 2010 Remi Collet <Fedora@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 |