mirror of
https://abf.rosa.ru/djam/dbeaver.git
synced 2025-02-23 08:13:02 +00:00
108 lines
2.8 KiB
RPMSpec
108 lines
2.8 KiB
RPMSpec
%define debug %nil
|
|
%define debug_package %nil
|
|
#define _JAVA8 /usr/lib/jvm/java-1.8.0/
|
|
|
|
Name: dbeaver
|
|
Version: 24.0.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
|
|
Source100: %{name}.rpmlintrc
|
|
Group: Development/Databases
|
|
License: ASL 2.0
|
|
ExcludeArch: x86 i386 i486 i586 i686
|
|
BuildRequires: maven >= 3
|
|
#BuildRequires: java-devel >= 11
|
|
BuildRequires: jdk17
|
|
BuildRequires: imagemagick
|
|
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
|
|
|
|
%build
|
|
export JAVA_HOME=/opt/jdk17/bin
|
|
mvn clean install
|
|
|
|
%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/standalone/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} <<EOF
|
|
#!/bin/bash
|
|
|
|
%{_datadir}/%{name}/%{name}
|
|
#-vm %{_JAVA8}/bin
|
|
|
|
EOF
|
|
|
|
chmod +x %{buildroot}%{_bindir}/%{name}
|
|
|
|
#meny entry
|
|
# 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
|
|
Exec=%{name}
|
|
Icon=%{name}
|
|
Terminal=false
|
|
Type=Application
|
|
StartupNotify=true
|
|
Categories=Application;Development;IDE;X-DataBases
|
|
EOF
|
|
|
|
|
|
# install icons product/standalone/icons-sources
|
|
pushd product/standalone/icons-sources
|
|
|
|
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
|
|
|
|
%files
|
|
%doc README.md LICENSE.md
|
|
%{_bindir}
|
|
%{_datadir}/%{name}
|
|
%{_datadir}/applications/%{name}.desktop
|
|
%{_iconsdir}//hicolor/*/apps/%{name}.png
|