File java-shared-config.spec of Package java-shared-config

#
# spec file for package java-shared-config
#
# 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:           java-shared-config
Version:        1.7.4
Release:        0
Summary:        Java Shared Config
License:        Apache-2.0
Group:          Development/Libraries/Java
URL:            https://github.com/googleapis/%{name}
Source0:        https://github.com/googleapis/%{name}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.maven.plugins:maven-failsafe-plugin)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:  mvn(org.codehaus.mojo:exec-maven-plugin)
BuildArch:      noarch

%description
Shared build configuration for Google Cloud Java libraries.

%package -n google-cloud-shared-config
Summary:        Native Image Shared Config

%description -n google-cloud-shared-config
Shared build configuration for Google Cloud Java libraries.

%package -n native-image-shared-config
Summary:        Native Image Shared Config

%description -n native-image-shared-config
Native Image build configuration for Google Cloud Java libraries.

%prep
%setup -q

%pom_remove_plugin -r :animal-sniffer-maven-plugin
%pom_remove_plugin -r :clirr-maven-plugin
%pom_remove_plugin -r :jacoco-maven-plugin
%pom_remove_plugin -r :maven-checkstyle-plugin
%pom_remove_plugin -r :maven-enforcer-plugin
%pom_remove_plugin -r :maven-site-plugin
%pom_remove_plugin -r :nexus-staging-maven-plugin

%{mvn_package} :google-cloud-shared-config-parent __noinstall

%build
%{mvn_build} -fs

%install
%mvn_install

%files -n google-cloud-shared-config -f .mfiles-google-cloud-shared-config
%license LICENSE

%files -n native-image-shared-config -f .mfiles-native-image-shared-config
%license LICENSE

%changelog
openSUSE Build Service is sponsored by