Group :: Desenvolvimento/Banco de Dados
RPM: mysql-workbench-community
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Name: mysql-workbench-community
Version: 8.0.25
Release: alt5
Summary: A MySQL visual database modeling tool
License: GPL-2.0-or-later and LGPL-2.0-or-later and CC-BY-3.0 and MIT and Scintilla and Public-Domain
Group: Development/Databases
Url: http://wb.mysql.com
# Source-url: https://cdn.mysql.com/Downloads/MySQLGUITools/mysql-workbench-community-%version-src.tar.gz
Source0: %name-%version.tar
# TODO: build with external antlr4-runtime (>= 4.7.1)
Source1: antlr-4.9.1-complete.jar
# https://www.mysql.com/support/supportedplatforms/workbench.html
ExclusiveArch: %ix86 x86_64
Patch1: mysql-workbench-mariadb-build.patch
Patch2: mysql-workbench-mariadb-check.patch
Patch3: mysql-workbench-6.3.4-c++11.patch
Patch4: %name-6.3.4-alt-gcc6.patch
Patch5: mysql-workbench-community-6.3.10-32bit.patch
Patch7: mysql-workbench-8.0.17.suppress-unsupported.patch
Patch8: %name-8.0.20-alt-boost-1.73.0-compat.patch
Patch9: mysql-workbench-community-8.0.25-update_python_context_for_8.0.28.patch
Provides: mysql-workbench-oss = %version-%release
Obsoletes: mysql-workbench-oss < %version-%release
Provides: mysql-workbench-gpl = %version-%release
Obsoletes: mysql-workbench-gpl < %version-%release
Provides: mysql-administrator = %version-%release
Obsoletes: mysql-administrator < %version-%release
Provides: mysql-query-browser = %version-%release
Obsoletes: mysql-query-browser < %version-%release
# "_mforms" and "grt" are accessable from "MySQL Workbench GRT Shell" only.
%add_python3_req_skip _mforms grt mforms
# internal Workbench's libraries
%add_python3_req_skip wb workbench cairo_utils wb_common
# for p9 compatibility
%ifdef add_python_req_skip
%add_python_req_skip _mforms grt mforms
%add_python_req_skip wb workbench cairo_utils wb_common
%endif
BuildRequires(pre): rpm-build-python3
%add_python3_req_skip workbench.change_tracker workbench.client_utils workbench.db_driver
%add_python3_req_skip workbench.db_utils workbench.exceptions workbench.graphics.cairo_utils
%add_python3_req_skip workbench.graphics.canvas workbench.graphics.charting workbench.log
%add_python3_req_skip workbench.notifications workbench.os_utils workbench.plugins
%add_python3_req_skip workbench.tcp_utils workbench.template workbench.ui workbench.utils
# shell_snippets.py is not pure Python
%add_findreq_skiplist */mysql-workbench/shell_snippets.py
# rpm-build 4.0.4.181-alt1: "library not found" warnings to errors
%add_findreq_skiplist */mysql-workbench/*.so
%add_findreq_skiplist */mysql-workbench/*.so.*
%add_findreq_skiplist */bin/mysql-workbench-bin
%add_findreq_skiplist */bin/wbcopytables-bin
# templates only
%add_findreq_skiplist */mysql-workbench/script_templates/*
%add_findreq_skiplist */mysql-workbench/libraries/grt_python_debugger.py
%add_python3_path %_libdir/mysql-workbench/modules
%set_verify_elf_method unresolved=relaxed
Requires: mysql-client gnome-keyring
Requires: %name-data = %version
# due /usr/lib64/libSegFault.so
# see https://bugzilla.altlinux.org/35600
Requires: glibc-devel
BuildRequires(pre): unzip
BuildRequires(pre): rpm-build-xdg
# MySQL only
BuildRequires: libmysqlclient-devel
BuildConflicts: libmariadb-devel
BuildRequires: boost-devel gcc-c++
BuildRequires: liblua5-devel libpcre-devel libsqlite3-devel libxml2-devel libzip-devel
BuildRequires: boost-signals-devel
BuildRequires: libGL-devel
BuildRequires: libctemplate-devel
BuildRequires: libiodbc-devel
# 6.3.4
BuildRequires(pre): rpm-macros-cmake
BuildRequires: cmake
#BuildRequires: mysql-connector-c++-devel
BuildRequires: libXdmcp-devel libXdamage-devel libXxf86vm-devel
BuildRequires: swig libgdal-devel libpcrecpp-devel libpixman-devel libexpat-devel libvsqlite++-devel
BuildRequires: libgnome-keyring-devel libharfbuzz-devel libxshmfence-devel tinyxml-devel
# 6.3.8
BuildRequires: boost-locale-devel
# 6.3.10
BuildRequires: libgtk+3-devel wayland-protocols libxkbcommon-devel libgtkmm3-devel libproj-devel
BuildRequires: mysql-connector-c++-devel >= 1.1.9
# 6.3.10 antlr-3.4-complete.jar
BuildRequires: java-1.8.0-openjdk stringtemplate
# 8.0.15
BuildRequires: libdrm-devel libsecret-devel libssl-devel libfribidi-devel libmount-devel libblkid-devel
BuildRequires: libtiff-devel libpng-devel libepoxy-devel
#BuildRequires: libwayland-cursor-devel libwayland-egl-devel
#BuildRequires: libXinerama-devel libXi-devel libXrandr-devel libXcursor-devel libXcomposite-devel
#BuildRequires: libat-spi2-core-devel at-spi2-atk-devel
#BuildRequires: libssh-devel >= 0.8.5
# 8.0.19
BuildRequires: libthai-devel libdatrie-devel rapidjson
# 8.0.20
BuildRequires: libbrotli-devel libgcrypt-devel libuuid-devel
# 8.0.25
BuildRequires: libssh-devel >= 0.9.5
BuildRequires: libffi-devel bzlib-devel libselinux-devel
BuildRequires: libXinerama-devel libXi-devel libXrandr-devel libXcursor-devel
BuildRequires: libXcomposite-devel libwayland-cursor-devel libwayland-egl-devel
BuildRequires: at-spi2-atk-devel libdbus-devel libat-spi2-core-devel libXtst-devel
BuildRequires: python3-dev
BuildRequires: libantlr4-devel
%description
MySQL Workbench is modeling tool that allows you to
design and generate MySQL databases graphically.
Some parts of code have separate licenses.
Look to %_defaultdocdir/%name-%version/License.txt
%package data
Summary: Architecture independent files for %name
License: GPL-2.0-or-later and LGPL-2.0-or-later and CC-BY-3.0 and MIT and Scintilla and Public-Domain
Group: Development/Databases
BuildArch: noarch
Conflicts: %name < %version
Conflicts: mysql-workbench-gpl-data
%description data
Architecture independent files for %name
Some parts of code have separate licenses.
Look to %_defaultdocdir/%name-%version/License.txt
%prep
%setup
#patch1 -p1
#patch2 -p1
#patch3 -p1
#patch4 -p2
#ifarch %ix86
#patch5 -p1
#endif
%patch7 -p2
%patch8 -p2
%patch9 -p2
sed -i "s|pcre.h|pcre/pcre.h|" library/grt/src/grtpp_shell.cpp
sed -i "s|ldconfig|/sbin/ldconfig|" frontend/linux/workbench/mysql-workbench.in
#8.0.17: http://bugs.mysql.com/97116
sed -i "s/ -Werror//" CMakeLists.txt
#8.0.19: https://lists.altlinux.org/pipermail/devel/2020-March/210126.html
sed -i "s/ -Wno-deprecated-copy//g" CMakeLists.txt
%build
%ifarch %ix86
%add_optflags -Wno-error=format=
%endif
#8.0.17: wb_context_ui_home.cpp:59:10: fatal error: include <zip.h>
%add_optflags -I/usr/include/libzip
%cmake \
-DWITH_ANTLR_JAR=%SOURCE1 \
#
%cmake_build
%install
%cmake_install
mkdir -p %buildroot%_niconsdir
cp %_builddir/%name-%version/images/icons/MySQLWorkbench-32.png %buildroot%_niconsdir/mysql-workbench.png
mkdir -p %buildroot%_iconsdir/hicolor/32x32/mimetypes
cp %_builddir/%name-%version/images/icons/MySQLPlugin-32.png %buildroot%_iconsdir/hicolor/32x32/mimetypes/application-vnd.mysql-workbench-plugin.png
cp %_builddir/%name-%version/images/icons/MySQLWorkbenchDocIcon32x32.png %buildroot%_iconsdir/hicolor/32x32/mimetypes/application-vnd.mysql-workbench-model.png
%files
#exclude %_libdir/mysql-workbench/modules/*.py?
%exclude %_datadir/applications/*.desktop
%exclude %_datadir/mysql-workbench/*
%doc License.txt README.md AUTHORS
%exclude %_datadir/doc/mysql-workbench-community/License.txt
%exclude %_datadir/doc/mysql-workbench-community/README.md
%_bindir/mysql-workbench
%_bindir/mysql-workbench-bin
%_bindir/wbcopytables
%_bindir/wbcopytables-bin
%dir %_libdir/mysql-workbench
%_libdir/mysql-workbench/*
%files data
%_datadir/applications/*.desktop
%dir %_datadir/mysql-workbench
%_datadir/mysql-workbench/*
%_miconsdir/*
%_niconsdir/*
%_liconsdir/*
%_iconsdir/hicolor/128x128/apps/*
%_iconsdir/hicolor/16x16/mimetypes/*
%_iconsdir/hicolor/32x32/mimetypes/*
%_iconsdir/hicolor/48x48/mimetypes/*
%_iconsdir/hicolor/128x128/mimetypes/*
%_xdgmimedir/packages/*.xml
%_xdgdatadir/mime-info/*.mime
%changelog
…
Todas as alterações você pod ver aqui
Version: 8.0.25
Release: alt5
Summary: A MySQL visual database modeling tool
License: GPL-2.0-or-later and LGPL-2.0-or-later and CC-BY-3.0 and MIT and Scintilla and Public-Domain
Group: Development/Databases
Url: http://wb.mysql.com
# Source-url: https://cdn.mysql.com/Downloads/MySQLGUITools/mysql-workbench-community-%version-src.tar.gz
Source0: %name-%version.tar
# TODO: build with external antlr4-runtime (>= 4.7.1)
Source1: antlr-4.9.1-complete.jar
# https://www.mysql.com/support/supportedplatforms/workbench.html
ExclusiveArch: %ix86 x86_64
Patch1: mysql-workbench-mariadb-build.patch
Patch2: mysql-workbench-mariadb-check.patch
Patch3: mysql-workbench-6.3.4-c++11.patch
Patch4: %name-6.3.4-alt-gcc6.patch
Patch5: mysql-workbench-community-6.3.10-32bit.patch
Patch7: mysql-workbench-8.0.17.suppress-unsupported.patch
Patch8: %name-8.0.20-alt-boost-1.73.0-compat.patch
Patch9: mysql-workbench-community-8.0.25-update_python_context_for_8.0.28.patch
Provides: mysql-workbench-oss = %version-%release
Obsoletes: mysql-workbench-oss < %version-%release
Provides: mysql-workbench-gpl = %version-%release
Obsoletes: mysql-workbench-gpl < %version-%release
Provides: mysql-administrator = %version-%release
Obsoletes: mysql-administrator < %version-%release
Provides: mysql-query-browser = %version-%release
Obsoletes: mysql-query-browser < %version-%release
# "_mforms" and "grt" are accessable from "MySQL Workbench GRT Shell" only.
%add_python3_req_skip _mforms grt mforms
# internal Workbench's libraries
%add_python3_req_skip wb workbench cairo_utils wb_common
# for p9 compatibility
%ifdef add_python_req_skip
%add_python_req_skip _mforms grt mforms
%add_python_req_skip wb workbench cairo_utils wb_common
%endif
BuildRequires(pre): rpm-build-python3
%add_python3_req_skip workbench.change_tracker workbench.client_utils workbench.db_driver
%add_python3_req_skip workbench.db_utils workbench.exceptions workbench.graphics.cairo_utils
%add_python3_req_skip workbench.graphics.canvas workbench.graphics.charting workbench.log
%add_python3_req_skip workbench.notifications workbench.os_utils workbench.plugins
%add_python3_req_skip workbench.tcp_utils workbench.template workbench.ui workbench.utils
# shell_snippets.py is not pure Python
%add_findreq_skiplist */mysql-workbench/shell_snippets.py
# rpm-build 4.0.4.181-alt1: "library not found" warnings to errors
%add_findreq_skiplist */mysql-workbench/*.so
%add_findreq_skiplist */mysql-workbench/*.so.*
%add_findreq_skiplist */bin/mysql-workbench-bin
%add_findreq_skiplist */bin/wbcopytables-bin
# templates only
%add_findreq_skiplist */mysql-workbench/script_templates/*
%add_findreq_skiplist */mysql-workbench/libraries/grt_python_debugger.py
%add_python3_path %_libdir/mysql-workbench/modules
%set_verify_elf_method unresolved=relaxed
Requires: mysql-client gnome-keyring
Requires: %name-data = %version
# due /usr/lib64/libSegFault.so
# see https://bugzilla.altlinux.org/35600
Requires: glibc-devel
BuildRequires(pre): unzip
BuildRequires(pre): rpm-build-xdg
# MySQL only
BuildRequires: libmysqlclient-devel
BuildConflicts: libmariadb-devel
BuildRequires: boost-devel gcc-c++
BuildRequires: liblua5-devel libpcre-devel libsqlite3-devel libxml2-devel libzip-devel
BuildRequires: boost-signals-devel
BuildRequires: libGL-devel
BuildRequires: libctemplate-devel
BuildRequires: libiodbc-devel
# 6.3.4
BuildRequires(pre): rpm-macros-cmake
BuildRequires: cmake
#BuildRequires: mysql-connector-c++-devel
BuildRequires: libXdmcp-devel libXdamage-devel libXxf86vm-devel
BuildRequires: swig libgdal-devel libpcrecpp-devel libpixman-devel libexpat-devel libvsqlite++-devel
BuildRequires: libgnome-keyring-devel libharfbuzz-devel libxshmfence-devel tinyxml-devel
# 6.3.8
BuildRequires: boost-locale-devel
# 6.3.10
BuildRequires: libgtk+3-devel wayland-protocols libxkbcommon-devel libgtkmm3-devel libproj-devel
BuildRequires: mysql-connector-c++-devel >= 1.1.9
# 6.3.10 antlr-3.4-complete.jar
BuildRequires: java-1.8.0-openjdk stringtemplate
# 8.0.15
BuildRequires: libdrm-devel libsecret-devel libssl-devel libfribidi-devel libmount-devel libblkid-devel
BuildRequires: libtiff-devel libpng-devel libepoxy-devel
#BuildRequires: libwayland-cursor-devel libwayland-egl-devel
#BuildRequires: libXinerama-devel libXi-devel libXrandr-devel libXcursor-devel libXcomposite-devel
#BuildRequires: libat-spi2-core-devel at-spi2-atk-devel
#BuildRequires: libssh-devel >= 0.8.5
# 8.0.19
BuildRequires: libthai-devel libdatrie-devel rapidjson
# 8.0.20
BuildRequires: libbrotli-devel libgcrypt-devel libuuid-devel
# 8.0.25
BuildRequires: libssh-devel >= 0.9.5
BuildRequires: libffi-devel bzlib-devel libselinux-devel
BuildRequires: libXinerama-devel libXi-devel libXrandr-devel libXcursor-devel
BuildRequires: libXcomposite-devel libwayland-cursor-devel libwayland-egl-devel
BuildRequires: at-spi2-atk-devel libdbus-devel libat-spi2-core-devel libXtst-devel
BuildRequires: python3-dev
BuildRequires: libantlr4-devel
%description
MySQL Workbench is modeling tool that allows you to
design and generate MySQL databases graphically.
Some parts of code have separate licenses.
Look to %_defaultdocdir/%name-%version/License.txt
%package data
Summary: Architecture independent files for %name
License: GPL-2.0-or-later and LGPL-2.0-or-later and CC-BY-3.0 and MIT and Scintilla and Public-Domain
Group: Development/Databases
BuildArch: noarch
Conflicts: %name < %version
Conflicts: mysql-workbench-gpl-data
%description data
Architecture independent files for %name
Some parts of code have separate licenses.
Look to %_defaultdocdir/%name-%version/License.txt
%prep
%setup
#patch1 -p1
#patch2 -p1
#patch3 -p1
#patch4 -p2
#ifarch %ix86
#patch5 -p1
#endif
%patch7 -p2
%patch8 -p2
%patch9 -p2
sed -i "s|pcre.h|pcre/pcre.h|" library/grt/src/grtpp_shell.cpp
sed -i "s|ldconfig|/sbin/ldconfig|" frontend/linux/workbench/mysql-workbench.in
#8.0.17: http://bugs.mysql.com/97116
sed -i "s/ -Werror//" CMakeLists.txt
#8.0.19: https://lists.altlinux.org/pipermail/devel/2020-March/210126.html
sed -i "s/ -Wno-deprecated-copy//g" CMakeLists.txt
%build
%ifarch %ix86
%add_optflags -Wno-error=format=
%endif
#8.0.17: wb_context_ui_home.cpp:59:10: fatal error: include <zip.h>
%add_optflags -I/usr/include/libzip
%cmake \
-DWITH_ANTLR_JAR=%SOURCE1 \
#
%cmake_build
%install
%cmake_install
mkdir -p %buildroot%_niconsdir
cp %_builddir/%name-%version/images/icons/MySQLWorkbench-32.png %buildroot%_niconsdir/mysql-workbench.png
mkdir -p %buildroot%_iconsdir/hicolor/32x32/mimetypes
cp %_builddir/%name-%version/images/icons/MySQLPlugin-32.png %buildroot%_iconsdir/hicolor/32x32/mimetypes/application-vnd.mysql-workbench-plugin.png
cp %_builddir/%name-%version/images/icons/MySQLWorkbenchDocIcon32x32.png %buildroot%_iconsdir/hicolor/32x32/mimetypes/application-vnd.mysql-workbench-model.png
%files
#exclude %_libdir/mysql-workbench/modules/*.py?
%exclude %_datadir/applications/*.desktop
%exclude %_datadir/mysql-workbench/*
%doc License.txt README.md AUTHORS
%exclude %_datadir/doc/mysql-workbench-community/License.txt
%exclude %_datadir/doc/mysql-workbench-community/README.md
%_bindir/mysql-workbench
%_bindir/mysql-workbench-bin
%_bindir/wbcopytables
%_bindir/wbcopytables-bin
%dir %_libdir/mysql-workbench
%_libdir/mysql-workbench/*
%files data
%_datadir/applications/*.desktop
%dir %_datadir/mysql-workbench
%_datadir/mysql-workbench/*
%_miconsdir/*
%_niconsdir/*
%_liconsdir/*
%_iconsdir/hicolor/128x128/apps/*
%_iconsdir/hicolor/16x16/mimetypes/*
%_iconsdir/hicolor/32x32/mimetypes/*
%_iconsdir/hicolor/48x48/mimetypes/*
%_iconsdir/hicolor/128x128/mimetypes/*
%_xdgmimedir/packages/*.xml
%_xdgdatadir/mime-info/*.mime
%changelog
…
Todas as alterações você pod ver aqui