Changes of Revision 2
[-] | Added | mysql-workbench.changes |
1
2 +------------------------------------------------------------------- 3 +Fri Feb 3 13:19:31 UTC 2012 - cs@linux-administrator.com 4 + 5 +- initial import 6 + 7 |
||
[-] | Added | mysql-workbench.spec ^ |
164 1
2 +# 3 +# spec file for package mysql-workbench 4 +# 5 +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. 6 +# 7 +# All modifications and additions to the file contributed by third parties 8 +# remain the property of their copyright owners, unless otherwise agreed 9 +# upon. The license for this file, and modifications and additions to the 10 +# file, is the same license as for the pristine package itself (unless the 11 +# license for the pristine package is not an Open Source License, in which 12 +# case the license is the MIT License). An "Open Source License" is a 13 +# license that conforms to the Open Source Definition (Version 1.9) 14 +# published by the Open Source Initiative. 15 + 16 +# Please submit bugfixes or comments via http://bugs.opensuse.org/ 17 +# 18 + 19 + 20 +Name: mysql-workbench 21 +Summary: A MySQL visual modeling tool 22 +License: GPL-2.0+ 23 +Group: Productivity/Databases/Clients 24 +Version: 5.2.37 25 +Release: 0 26 +Url: http://dev.mysql.com/downloads/workbench 27 +Source: %{name}-gpl-%{version}-src.tar.bz2 28 +Source1: openSUSE_(Vendor_Package).xml 29 +Patch0: mysql-workbench-gpl-5.2.34-ctemplate-fix.patch 30 +Patch1: mysql-workbench-gpl-5.2.36-avoid-version.patch 31 +Summary: A MySQL visual modeling tool 32 +Group: Productivity/Databases/Clients 33 +BuildRoot: %{_tmppath}/%{name}-%{version}-build 34 +BuildRequires: Mesa 35 +BuildRequires: Mesa-devel 36 +BuildRequires: boost-devel 37 +BuildRequires: cairomm-devel 38 +BuildRequires: dos2unix 39 +BuildRequires: fdupes 40 +BuildRequires: gcc-c++ 41 +BuildRequires: glib2-devel 42 +BuildRequires: gtkmm24-devel 43 +BuildRequires: java-devel 44 +BuildRequires: libglade2-devel 45 +BuildRequires: libgnome-devel 46 +BuildRequires: libmysqlcppconn-devel 47 +BuildRequires: libsigc++2-devel 48 +BuildRequires: libtool 49 +BuildRequires: libxml2-devel 50 +BuildRequires: libzip-devel 51 +BuildRequires: lua-devel 52 +BuildRequires: mysql-devel 53 +BuildRequires: pcre-devel 54 +BuildRequires: php-devel 55 +BuildRequires: python-devel 56 +BuildRequires: readline-devel 57 +%if 0%{?suse_version} 58 +BuildRequires: FastCGI-devel 59 +BuildRequires: sqlite3-devel 60 +BuildRequires: update-desktop-files 61 +%endif 62 +%if 0%{?fedora} 63 +BuildRequires: fcgi-devel 64 +BuildRequires: java-1.6.0-openjdk-devel 65 +BuildRequires: sqlite-devel 66 +%if 0%{?fedora} > 11 67 +BuildRequires: libuuid-devel 68 +%else 69 +BuildRequires: PolicyKit-gnome 70 +%endif 71 +%endif 72 +BuildRequires: libctemplate-devel 73 +BuildRequires: cairo-devel >= 1.5.12 74 +Requires: python-paramiko python-pexpect 75 +Provides: mysql-gui-tools=%{version} 76 +Provides: mysql-administrator=%{version} 77 +Provides: mysql-querybrovser=%{version} 78 +Obsoletes: mysql-gui-tools<%{version} 79 +Obsoletes: mysql-administrator<%{version} 80 +Obsoletes: mysql-querybrovser<%{version} 81 + 82 +%description 83 +MySQL Workbench provides DBAs and developers an integrated tools environment 84 +for: 85 + * Database Design & Modeling 86 + * SQL Development (replacing MySQL Query Browser) 87 + * Database Administration (replacing MySQL Administrator) 88 + 89 +%prep 90 +%setup -q -n %{name}-gpl-%{version}-src 91 +%patch0 92 +%patch1 93 +rm -rf ext/ctemplate 94 + 95 +%build 96 +export SUSE_ASNEEDED=0 97 +export INCLUDES="-I/usr/include/SilverCity -I/usr/include" 98 +# dereferencing type-punned pointer will break strict-aliasing rules 99 +export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing ${INCLUDES}" 100 +export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing ${INCLUDES}" 101 +export NOCONFIGURE=y 102 +rm aclocal.m4 103 +sh ./autogen.sh --prefix=%{_prefix} --libdir=%{_libdir} 104 +echo autogen done 105 +%configure \ 106 + --disable-static \ 107 + --enable-i18n \ 108 + --with-gnu-ld \ 109 + --enable-mysql-utilities 110 +# Doesn't exist anymore 111 +# --enable-readline \ 112 + 113 +#FIX this is too much on obs Out of Memory make %{?jobs:-j%jobs} 114 +make %{?jobs:-j2} 115 + 116 +%install 117 +make DESTDIR=%{buildroot} install 118 +cp plugins/README README.plugins 119 +cp modules/README README.modules 120 +rm -f %{buildroot}%{_libdir}/%{name}{,/modules,/plugins}/*.la 121 +rm -f %{buildroot}%{_libdir}/%{name}/lib*.so 122 +install -D -m 0644 images/icons/MySQLWorkbench-48.png %{buildroot}%{_datadir}/pixmaps/%{name}.png 123 +install -D -m 0644 "%{S:1}" %{buildroot}%{_datadir}/%{name}/mysql.profiles 124 +rm -f "$RPM_SOURCE_DIR"/*.desktop 125 +sed -i 's/^Icon.*/Icon=%{name}.png/' "%{buildroot}%{_datadir}"/applications/MySQLWorkbench.desktop 126 +sed -i 's/;$//' "%{buildroot}%{_datadir}"/applications/MySQLWorkbench.desktop 127 +%if 0%{?suse_version} 128 +mv "%{buildroot}%{_datadir}"/applications/MySQLWorkbench.desktop "$RPM_SOURCE_DIR"/%{name}.desktop 129 +%suse_update_desktop_file -i -r -G "Database GUI Tool" %{name} "GTK;Development;Database;GUIDesigner;" 130 +%fdupes -s %{_datadir}/%{name}/images 131 +%else 132 +mv "%{buildroot}%{_datadir}"/applications/MySQLWorkbench.desktop "%{buildroot}%{_datadir}"/applications/%{name}.desktop 133 +%endif 134 +for i in ChangeLog README.plugins README README.modules COPYING; do 135 + dos2unix $i 136 +done 137 +rm -f "%{buildroot}%{_datadir}"/doc/%{name}/{COPYING,README} 138 +rmdir --ignore-fail-on-non-empty "%{buildroot}%{_datadir}"/doc/%{name} 139 +cd "%{buildroot}%{_libdir}/%{name}" 140 +for j in {modules,plugins}; do 141 +cd "$j" 142 +ls -1 *.{wbp,grt}.so | while read i; do 143 + [ -f "$i" ] && ln -s "$i" "`echo "$i" | sed 's|\.so$||'`" 144 +done 145 +cd .. 146 +done 147 + 148 +%clean 149 +rm -rf %{buildroot} 150 + 151 +%files 152 +%defattr(-,root,root) 153 +%doc COPYING ChangeLog README.plugins README.modules 154 +%{_bindir}/* 155 +%dir %{_libdir}/%{name} 156 +%{_libdir}/%{name}/* 157 +%dir %{_datadir}/%{name} 158 +%{_datadir}/%{name}/* 159 +%{_datadir}/applications/%{name}.desktop 160 +%{_datadir}/pixmaps/%{name}.png 161 + 162 +%changelog 163 + 164 |
||
Added | mysql-workbench-gpl-5.2.37-src.tar.bz2 ^ | |
[+] | Added | openSUSE_(Vendor_Package).xml ^ |
@@ -0,0 +1,18 @@ +<?xml version="1.0"?> + +<data> + <value type="dict"> + <value type="string" key="sys.config.path">/etc/my.cnf</value> + <value type="string" key="sys.config.section">mysqld</value> + + <value type="string" key="sys.mysqld.start">/usr/sbin/rcmysql start</value> + <value type="string" key="sys.mysqld.stop">/usr/sbin/rcmysql stop</value> + <value type="string" key="sys.mysqld.status">/usr/sbin/rcmysql status | grep running</value> + <value type="int" key="sys.usesudo">1</value> + <value type="int" key="sys.usesudostatus">0</value> + <value type="string" key="sys.sudo">/usr/bin/sudo -p EnterPasswordHere /bin/sh -c</value> + <value type="string" key="sys.system">Linux</value> + </value> +</data> + + |