2020-01-18 12:08:43 +03:00
|
|
|
%define debug %nil
|
2017-07-16 16:36:22 +03:00
|
|
|
%define debug_package %nil
|
2024-05-25 21:08:58 +00:00
|
|
|
%define _jdk_path /opt/jdk17/jdk/bin
|
|
|
|
%define jdk_ver 17.0.11
|
|
|
|
%define liberica_rel 13
|
2017-07-16 16:36:22 +03:00
|
|
|
|
|
|
|
Name: dbeaver
|
2025-02-18 08:21:52 +00:00
|
|
|
Version: 24.3.5
|
2024-06-23 19:22:55 +00:00
|
|
|
Release: 1
|
2017-07-16 16:36:22 +03:00
|
|
|
Summary: Universal database manager and SQL client
|
2018-10-24 15:18:41 +03:00
|
|
|
URL: https://dbeaver.io
|
2020-01-18 12:08:43 +03:00
|
|
|
Source0: https://github.com/dbeaver/dbeaver/archive/%{version}/%{name}-%{version}.tar.gz
|
2024-05-25 21:08:58 +00:00
|
|
|
#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
|
2017-07-16 16:36:22 +03:00
|
|
|
Source100: %{name}.rpmlintrc
|
|
|
|
Group: Development/Databases
|
|
|
|
License: ASL 2.0
|
2019-07-05 20:16:45 +03:00
|
|
|
ExcludeArch: x86 i386 i486 i586 i686
|
2024-05-25 21:08:58 +00:00
|
|
|
BuildRequires: maven >= 3.9
|
2024-05-22 08:26:22 +00:00
|
|
|
#BuildRequires: java-devel >= 11
|
2024-05-25 21:08:58 +00:00
|
|
|
#BuildRequires: jdk17
|
2020-01-18 12:08:43 +03:00
|
|
|
BuildRequires: imagemagick
|
2024-05-25 21:08:58 +00:00
|
|
|
BuildRequires: git-core
|
2025-02-18 22:35:25 +00:00
|
|
|
BuildRequires: %{_lib}xext6
|
2025-02-18 23:12:17 +00:00
|
|
|
BuildRequires: %{_lib}x11_6
|
2025-02-19 00:52:40 +00:00
|
|
|
BuildRequires: %{_lib}xcb1
|
2024-11-04 06:23:09 +00:00
|
|
|
BuildRequires: pkgconfig(openssl3.3)
|
2024-05-22 08:26:22 +00:00
|
|
|
Requires: jdk17
|
2017-07-16 16:36:22 +03:00
|
|
|
|
2024-05-25 21:08:58 +00:00
|
|
|
|
2017-07-16 16:36:22 +03:00
|
|
|
%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
|
|
|
|
|
2024-05-25 21:08:58 +00:00
|
|
|
tar -xf %{SOURCE1}
|
|
|
|
|
|
|
|
|
2017-07-16 16:36:22 +03:00
|
|
|
%build
|
2024-05-25 21:08:58 +00:00
|
|
|
[ ! -d ../dbeaver-common ] && git clone https://github.com/dbeaver/dbeaver-common.git ../dbeaver-common
|
2024-12-23 13:31:41 +00:00
|
|
|
[ ! -d ../dbeaver-jdbc-libsql ] && git clone https://github.com/dbeaver/dbeaver-jdbc-libsql.git ../dbeaver-jdbc-libsql
|
2024-05-25 21:08:58 +00:00
|
|
|
|
|
|
|
cd product/aggregate
|
2024-12-23 21:35:45 +00:00
|
|
|
JAVA_HOME=../../jdk-17.0.11+9/ mvn clean install -Pdesktop -T 1C
|
2024-05-25 21:08:58 +00:00
|
|
|
cd ../..
|
|
|
|
|
2017-07-16 16:36:22 +03:00
|
|
|
|
|
|
|
%install
|
|
|
|
install -d %{buildroot}%{_bindir}
|
|
|
|
install -d %{buildroot}%{_datadir}
|
|
|
|
install -d %{buildroot}%{_datadir}/applications
|
|
|
|
install -d %{buildroot}%{_iconsdir}/hicolor/{16x16,24x24,32x32}/apps
|
|
|
|
|
2019-07-05 20:16:45 +03:00
|
|
|
#ifarch x86_64
|
2024-05-25 21:08:58 +00:00
|
|
|
pushd product/community/target/products/org.jkiss.dbeaver.core.product/linux/gtk/x86_64/
|
2017-07-16 16:36:22 +03:00
|
|
|
cp -a %{name} %{buildroot}%{_datadir}
|
|
|
|
popd
|
2019-07-05 20:16:45 +03:00
|
|
|
#else
|
|
|
|
#pushd product/standalone/target/products/org.jkiss.dbeaver.core.product/linux/gtk/x86
|
|
|
|
#cp -a %{name} %{buildroot}%{_datadir}
|
|
|
|
#popd
|
|
|
|
#endif
|
2017-07-16 16:36:22 +03:00
|
|
|
|
|
|
|
#start script
|
|
|
|
cat > %{buildroot}%{_bindir}/%{name} <<EOF
|
|
|
|
#!/bin/bash
|
|
|
|
|
2024-05-26 08:54:13 +00:00
|
|
|
%{_datadir}/%{name}/%{name} -vm %{_jdk_path}
|
2017-07-16 16:36:22 +03:00
|
|
|
|
|
|
|
EOF
|
|
|
|
|
2017-07-16 20:56:40 +03:00
|
|
|
chmod +x %{buildroot}%{_bindir}/%{name}
|
|
|
|
|
2017-07-16 16:36:22 +03:00
|
|
|
# menu-entry
|
|
|
|
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
|
|
|
|
[Desktop Entry]
|
|
|
|
Name=DBeaver
|
|
|
|
Name[ru]=DBeaver
|
|
|
|
GenericName=DBeaver
|
|
|
|
GenericName[ru]=DBeaver
|
|
|
|
Comment=Free universal database manager and SQL client
|
|
|
|
Comment[ru]=Универсальный менеджер баз данных SQL
|
2024-05-26 08:54:13 +00:00
|
|
|
Exec=%{name}
|
2017-07-16 16:36:22 +03:00
|
|
|
Icon=%{name}
|
|
|
|
Terminal=false
|
|
|
|
Type=Application
|
|
|
|
StartupNotify=true
|
2020-01-18 12:08:43 +03:00
|
|
|
Categories=Application;Development;IDE;X-DataBases
|
2017-07-16 16:36:22 +03:00
|
|
|
EOF
|
|
|
|
|
2020-01-18 12:08:43 +03:00
|
|
|
|
|
|
|
# install icons product/standalone/icons-sources
|
2024-05-25 21:19:23 +00:00
|
|
|
pushd product/community/icons-sources
|
2020-01-18 12:08:43 +03:00
|
|
|
|
|
|
|
for i in 16 24 32 48 64 128 256 512; do
|
|
|
|
|
|
|
|
convert -resize "$i" icon_512x512.png %{name}.png
|
|
|
|
|
|
|
|
install -Dm0644 %{name}.png %{buildroot}%{_iconsdir}/hicolor/"$i"x"$i"/apps/%{name}.png
|
|
|
|
|
|
|
|
done
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
2024-05-25 21:37:08 +00:00
|
|
|
# fix error solaris libs
|
2024-08-18 20:53:38 +00:00
|
|
|
|
2024-12-23 14:50:24 +00:00
|
|
|
#pushd %{buildroot}%{_datadir}/dbeaver/plugins/com.sun.jna_5.14.0.v20231211-1200/com/sun/jna/
|
2024-12-23 19:27:15 +00:00
|
|
|
#find %{buildroot}%{_datadir}/dbeaver/plugins/com.sun.jna_5.14.0.*/com/sun/jna/ -type d -not -name "linux-x86-64" -exec rm -rf {} \;
|
2024-12-23 22:03:13 +00:00
|
|
|
#rm -rf $(ls --hide="linux-x86" --hide="linux-x86_64" --hide="internal" --hide="ptr" %{buildroot}%{_datadir}/dbeaver/plugins/com.sun.jna_5.14.0*/com/sun/jna/)
|
2024-12-23 15:29:07 +00:00
|
|
|
|
|
|
|
#/builddir/build/BUILDROOT/dbeaver-24.3.1-1-R11.x86_64-buildroot/usr/share/dbeaver/plugins/com.sun.jna_5.15.0.v20240915-2000/com/sun/jna/sunos-sparc/libjnidispatch.so'
|
2024-12-23 14:50:24 +00:00
|
|
|
#popd
|
2024-05-25 21:37:08 +00:00
|
|
|
|
2025-02-19 12:05:09 +00:00
|
|
|
#find '%{buildroot}%{_datadir}/dbeaver/plugins/com.sun.jna_[0-9.]*-v[0-9]*-com/sun/jna/' -type d \
|
|
|
|
# -name linux-x86 \
|
|
|
|
# -o -name linux-x86_64 \
|
|
|
|
# -o -name internal \
|
|
|
|
# -o -name ptr \
|
|
|
|
# -prune \
|
|
|
|
# -o -exec rm -rf {} \;
|
2024-12-23 21:35:45 +00:00
|
|
|
|
2025-02-19 13:38:08 +00:00
|
|
|
find %{buildroot}%{_datadir}/dbeaver/plugins/ -type f -name "*.so" -not -path "*linux-%{_arch}*" -delete
|
|
|
|
|
|
|
|
|
2017-07-16 16:36:22 +03:00
|
|
|
%files
|
2017-07-16 18:17:56 +03:00
|
|
|
%doc README.md LICENSE.md
|
2017-07-16 16:36:22 +03:00
|
|
|
%{_bindir}
|
2017-07-16 18:17:56 +03:00
|
|
|
%{_datadir}/%{name}
|
2018-10-09 16:37:00 +03:00
|
|
|
%{_datadir}/applications/%{name}.desktop
|
2020-02-03 15:02:49 +03:00
|
|
|
%{_iconsdir}//hicolor/*/apps/%{name}.png
|