File dbeaver.spec of Package dbeaver
#
# spec file for package dbeaver
#
# Copyright (c) 2019 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: dbeaver
Version: 7.2.5
Release: 0
Summary: Universal Database Manager
License: GPL-2.0-or-later
Group: Productivity/Databases/Clients
URL: https://dbeaver.jkiss.org
Source0: https://github.com/%{name}/%{name}/releases/download/%{version}/%{name}-ce-%{version}-linux.gtk.x86_64.tar.gz
BuildRequires: fastjar
BuildRequires: fdupes
BuildRequires: update-desktop-files
Requires: java >= 1.6.0
ExclusiveArch: %{ix86} x86_64
%description
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).
%prep
%setup -q -T -b0 -n %{name}
%build
%install
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 dbeaver.desktop %{buildroot}/%{_datadir}/applications/
ln -sf %{_datadir}/%{name}/dbeaver %{buildroot}/%{_bindir}/dbeaver
%suse_update_desktop_file -i dbeaver Development Building
%fdupes %{buildroot}%{_datadir}
%files
%dir %{_datadir}/dbeaver
%{_bindir}/dbeaver
%{_datadir}/dbeaver/*
%config(noreplace) %{_datadir}/dbeaver/dbeaver.ini
%{_datadir}/pixmaps/dbeaver.xpm
%{_datadir}/applications/dbeaver.desktop
%changelog