%define debug %nil %define debug_package %nil %define _jdk_path /opt/jdk17/jdk/bin %define jdk_ver 17.0.11 %define liberica_rel 13 Name: dbeaver Version: 24.3.5 Release: 1 Summary: Universal database manager and SQL client URL: https://dbeaver.io Source0: https://github.com/dbeaver/dbeaver/archive/%{version}/%{name}-%{version}.tar.gz #Source1: https://github.com/bell-sw/Liberica/releases/download/%{jdk_ver}%2B%{liberica_rel}/bellsoft-jdk%{jdk_ver}+%{liberica_rel}-linux-amd64-crac.tar.gz Source1: https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.11%2B9/OpenJDK17U-jdk_x64_linux_hotspot_17.0.11_9.tar.gz Source100: %{name}.rpmlintrc Group: Development/Databases License: ASL 2.0 ExcludeArch: x86 i386 i486 i586 i686 BuildRequires: maven >= 3.9 #BuildRequires: java-devel >= 11 #BuildRequires: jdk17 BuildRequires: imagemagick BuildRequires: git-core BuildRequires: pkgconfig(openssl3.3) Requires: jdk17 %description Free multi-platform database tool for developers, SQL programmers, database administrators and analysts. Supports any database which has JDBC driver (which basically means - ANY database). EE version also supports non-JDBC datasources (WMI, MongoDB, Cassandra, Redis). Has a lot of features including metadata editor, SQL editor, rich data editor, ERD, data export/import/migration, SQL execution plans, etc. Based on Eclipse platform. Uses plugins architecture and provides additional functionality for the following databases: MySQL/MariaDB, PostgreSQL, Oracle, DB2 LUW, Exasol, SQL Server, SQLite, Firebird, H2, HSQLDB, Derby, Teradata, Vertica, Netezza, Informix. %prep %setup -q tar -xf %{SOURCE1} %build [ ! -d ../dbeaver-common ] && git clone https://github.com/dbeaver/dbeaver-common.git ../dbeaver-common [ ! -d ../dbeaver-jdbc-libsql ] && git clone https://github.com/dbeaver/dbeaver-jdbc-libsql.git ../dbeaver-jdbc-libsql cd product/aggregate JAVA_HOME=../../jdk-17.0.11+9/ mvn clean install -Pdesktop -T 1C cd ../.. %install install -d %{buildroot}%{_bindir} install -d %{buildroot}%{_datadir} install -d %{buildroot}%{_datadir}/applications install -d %{buildroot}%{_iconsdir}/hicolor/{16x16,24x24,32x32}/apps #ifarch x86_64 pushd product/community/target/products/org.jkiss.dbeaver.core.product/linux/gtk/x86_64/ cp -a %{name} %{buildroot}%{_datadir} popd #else #pushd product/standalone/target/products/org.jkiss.dbeaver.core.product/linux/gtk/x86 #cp -a %{name} %{buildroot}%{_datadir} #popd #endif #start script cat > %{buildroot}%{_bindir}/%{name} < %{buildroot}%{_datadir}/applications/%{name}.desktop <