commit 9791a838dd3090f0ede61535af7f8e602983634d Author: Sergey Zhemoitel Date: Sun Jul 16 16:36:22 2017 +0300 Imported from SRPM diff --git a/.abf.yml b/.abf.yml new file mode 100644 index 0000000..316ee84 --- /dev/null +++ b/.abf.yml @@ -0,0 +1,2 @@ +sources: + dbeaver-4.1.0.tar.gz: 37bf9e50920b857f0d594dfbcba94c0719d77e01 diff --git a/dbeaver.rpmlintrc b/dbeaver.rpmlintrc new file mode 100644 index 0000000..1a60d9f --- /dev/null +++ b/dbeaver.rpmlintrc @@ -0,0 +1 @@ +addFilter("E: hardcoded-library-path") diff --git a/dbeaver.spec b/dbeaver.spec new file mode 100644 index 0000000..0bf89f1 --- /dev/null +++ b/dbeaver.spec @@ -0,0 +1,84 @@ +%define debug %nil +%define debug_package %nil +%define JAVA8 /usr/lib/jvm/java-1.8.0/ + +Name: dbeaver +Version: 4.1.0 +Release: 1 +Summary: Universal database manager and SQL client +URL: http://dbeaver.jkiss.org/ +Source0: %{name}-%{version}.tar.gz +Source100: %{name}.rpmlintrc +Group: Development/Databases +License: ASL 2.0 +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 + +%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} < %{buildroot}%{_datadir}/applications/%{name}.desktop <