File postgresql-jdbc.spec of Package postgresql-jdbc

# spec file for package postgresql-jdbc
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2000-2005, JPackage Project
# 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

Name:           postgresql-jdbc
Version:        42.2.16
Release:        0
Summary:        JDBC driver for PostgreSQL
License:        BSD-2-Clause
BuildRequires:  fdupes
BuildRequires:  maven-local
BuildRequires:  mvn(com.ongres.scram:client)
BuildArch:      noarch

PostgreSQL is an advanced Object-Relational database management
system. The postgresql-jdbc package includes the .jar files needed for
Java programs to access a PostgreSQL database.

%package javadoc
Summary:        API docs for %{name}

%description javadoc
This package contains the API Documentation for %{name}.

%setup -q -n postgresql-%{version}-jdbc-src

# Build parent POMs in the same Maven call.
%pom_xpath_remove "pom:plugin[pom:artifactId = 'maven-shade-plugin']"

%{mvn_file} org.postgresql:postgresql %{name}/postgresql %{name}

# For compat reasons, make Maven artifact available under older coordinates.
%{mvn_alias} org.postgresql:postgresql postgresql:postgresql

%{mvn_build} -f -- -Dsource=8

%fdupes -s %{buildroot}%{_javadocdir}

%files -f .mfiles
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE

openSUSE Build Service is sponsored by