dbeaver/dbeaver.spec

90 lines
2.3 KiB
RPMSpec
Raw Normal View History

2017-07-16 16:36:22 +03:00
%define debug %nil
%define debug_package %nil
%define JAVA8 /usr/lib/jvm/java-1.8.0/
Name: dbeaver
2019-10-23 18:28:58 +03:00
Version: 6.2.3
2019-10-23 19:25:58 +03:00
Release: 2
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
2017-07-16 16:36:22 +03:00
Source0: %{name}-%{version}.tar.gz
Source100: %{name}.rpmlintrc
Group: Development/Databases
License: ASL 2.0
2019-07-05 20:16:45 +03:00
ExcludeArch: x86 i386 i486 i586 i686
2017-07-16 16:36:22 +03:00
BuildRequires: maven >= 3
BuildRequires: java-devel >= 1.8
%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
JAVA_HOME=%{JAVA8} 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
2019-07-05 20:16:45 +03:00
#ifarch x86_64
2017-07-16 16:36:22 +03:00
pushd product/standalone/target/products/org.jkiss.dbeaver.core.product/linux/gtk/x86_64
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
2019-10-23 19:25:58 +03:00
%{_datadir}/%{name}/%{name}
#-vm %{JAVA8}/bin
2017-07-16 16:36:22 +03:00
EOF
chmod +x %{buildroot}%{_bindir}/%{name}
2017-07-16 16:36:22 +03:00
#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
2019-03-26 15:39:17 +03:00
Categories=Application;Development;IDE;X-JAVA;DataBases
2017-07-16 16:36:22 +03:00
EOF
%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