A new user interface for you!

File dbeaver.spec of Package dbeaver

Name:           dbeaver
Version:        5.0.2
Release:        0
Summary:        Universal Database Manager
License:        GPL-2.0+
Group:          Productivity/Databases/Clients
URL:            https://dbeaver.jkiss.org
Source0:        https://github.com/serge-rider/dbeaver/releases/download/%{version}/dbeaver-ce-%{version}-linux.gtk.x86_64.tar.gz
Source1:        https://github.com/serge-rider/dbeaver/releases/download/%{version}/dbeaver-ce-%{version}-linux.gtk.x86.tar.gz
Source2:        dbeaver.desktop
Source99:       dbeaver-rpmlintrc
BuildRequires:  fastjar
BuildRequires:  fdupes
BuildRequires:  update-desktop-files
Requires:       java >= 1.6.0
ExclusiveArch:  %ix86 x86_64

DBeaver is free and open source (GPL) universal database tool for developers
and database administrators.

Usability is the main goal of this project, program UI is carefully designed
and implemented.

* It is freeware.
* It is multiplatform.
* It is based on opensource framework and allows writing of
  various extensions (plugins).
* It supports any database having a JDBC driver.
* It may handle any external datasource which may or may
  not have a JDBC driver.
* There is a set of plugins for certain databases (MySQL and Oracle in
  version 1.x) and different database management utilities (e.g. ERD).

%ifarch x86_64
%setup -q -T -b0 -n %{name}
%ifarch %{ix86}
%setup -q -T -b1 -n %{name}


install -d %{buildroot}/%{_bindir}
install -d %{buildroot}/%{_datadir}
install -d %{buildroot}/%{_datadir}/%{name}
install -d %{buildroot}/%{_datadir}/applications/
install -d %{buildroot}/%{_datadir}/pixmaps/
cp -r * %{buildroot}/%{_datadir}/%{name}
install -m 0644 icon.xpm %{buildroot}/%{_datadir}/pixmaps/dbeaver.xpm
install -m 0775 %{SOURCE2} %{buildroot}/%{_datadir}/applications/
ln -sf %{_datadir}/%{name}/dbeaver %{buildroot}/%{_bindir}/dbeaver
%suse_update_desktop_file -i dbeaver Development Building
%fdupes %{buildroot}%{_datadir}

%dir %{_datadir}/dbeaver