new package OBS-URL: https://build.opensuse.org/request/show/1224420 OBS-URL: https://build.opensuse.org/package/show/Java:packages/google-auth-library-java?expand=0&rev=1
133 lines
4.0 KiB
RPMSpec
133 lines
4.0 KiB
RPMSpec
#
|
|
# spec file for package google-auth-library-java
|
|
#
|
|
# Copyright (c) 2024 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: google-auth-library-java
|
|
Version: 1.30.0
|
|
Release: 0
|
|
Summary: Google Auth Library for Java
|
|
License: Apache-2.0
|
|
Group: Development/Libraries/Java
|
|
URL: https://github.com/googleapis/google-auth-library-java
|
|
Source0: https://github.com/googleapis/%{name}/archive/refs/tags/v%{version}.tar.gz
|
|
BuildRequires: fdupes
|
|
BuildRequires: java-devel >= 1.8
|
|
BuildRequires: maven-local
|
|
BuildRequires: mvn(com.google.auto.service:auto-service-annotations)
|
|
BuildRequires: mvn(com.google.auto.value:auto-value)
|
|
BuildRequires: mvn(com.google.auto.value:auto-value-annotations)
|
|
BuildRequires: mvn(com.google.cloud:google-cloud-shared-config:pom:)
|
|
BuildRequires: mvn(com.google.code.findbugs:jsr305)
|
|
BuildRequires: mvn(com.google.errorprone:error_prone_annotations)
|
|
BuildRequires: mvn(com.google.guava:guava)
|
|
BuildRequires: mvn(com.google.http-client:google-http-client)
|
|
BuildRequires: mvn(com.google.http-client:google-http-client-bom:pom:)
|
|
BuildRequires: mvn(com.google.http-client:google-http-client-gson)
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
Client libraries providing authentication and
|
|
authorization to enable calling Google APIs.
|
|
|
|
%package credentials
|
|
Summary: Google Auth Library for Java - Credentials
|
|
Group: Development/Libraries/Java
|
|
|
|
%description credentials
|
|
Client libraries providing authentication and
|
|
authorization to enable calling Google APIs.
|
|
|
|
Google Auth Library for Java - Credentials.
|
|
|
|
%package parent
|
|
Summary: Google Auth Library for Java
|
|
Group: Development/Libraries/Java
|
|
|
|
%description parent
|
|
Client libraries providing authentication and
|
|
authorization to enable calling Google APIs.
|
|
|
|
%package oauth2-http
|
|
Summary: Google Auth Library for Java - OAuth2 HTTP
|
|
Group: Development/Libraries/Java
|
|
|
|
%description oauth2-http
|
|
Client libraries providing authentication and
|
|
authorization to enable calling Google APIs.
|
|
|
|
Google Auth Library for Java - OAuth2 HTTP.
|
|
|
|
%package bom
|
|
Summary: Google Auth Library for Java BOM
|
|
Group: Development/Libraries/Java
|
|
|
|
%description bom
|
|
Client libraries providing authentication and
|
|
authorization to enable calling Google APIs.
|
|
|
|
BOM for Google Auth Library for Java.
|
|
|
|
%package javadoc
|
|
Summary: Javadoc for %{name}
|
|
Group: Documentation/HTML
|
|
|
|
%description javadoc
|
|
This package contains javadoc for %{name}.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%pom_remove_plugin -r :nexus-staging-maven-plugin
|
|
%pom_remove_plugin -r :maven-source-plugin
|
|
%pom_remove_plugin -r :jacoco-maven-plugin
|
|
%pom_remove_plugin -r :clirr-maven-plugin
|
|
%pom_remove_plugin -r :maven-checkstyle-plugin
|
|
%pom_remove_plugin -r :maven-javadoc-plugin
|
|
%pom_remove_plugin -r :maven-site-plugin
|
|
%pom_remove_plugin -r :fmt-maven-plugin
|
|
|
|
%pom_remove_dep -r :surefire-junit47
|
|
|
|
%pom_disable_module appengine
|
|
|
|
%build
|
|
|
|
%{mvn_build} -s -f -- \
|
|
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
|
|
-Dmaven.compiler.release=8 \
|
|
%endif
|
|
-Dsource=8
|
|
|
|
%install
|
|
%mvn_install
|
|
%fdupes -s %{buildroot}%{_javadocdir}
|
|
|
|
%files bom -f .mfiles-google-auth-library-bom
|
|
|
|
%files parent -f .mfiles-google-auth-library-parent
|
|
%doc README.md
|
|
%license LICENSE
|
|
|
|
%files credentials -f .mfiles-google-auth-library-credentials
|
|
|
|
%files oauth2-http -f .mfiles-google-auth-library-oauth2-http
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
%license LICENSE
|
|
|
|
%changelog
|