Files
google-java-shared-config/google-java-shared-config.spec

80 lines
2.5 KiB
RPMSpec

#
# spec file for package google-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/
#
%global base_name java-shared-config
Name: google-%{base_name}
Version: 1.11.3
Release: 0
Summary: Google Cloud Shared Build Configs
License: Apache-2.0
Group: Development/Libraries/Java
URL: https://github.com/googleapis/java-shared-config
Source0: %{base_name}-%{version}.tar.xz
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 Maven build configuration for Google Cloud Java client
libraries.
%package -n google-cloud-shared-config
Summary: Google Cloud Shared Config
Group: Development/Libraries/Java
%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
Group: Development/Libraries/Java
%description -n native-image-shared-config
Native Image build configuration for Google Cloud Java libraries.
%prep
%setup -q -n %{base_name}-%{version}
%pom_remove_plugin -r :maven-enforcer-plugin
%pom_remove_plugin -r :maven-checkstyle-plugin
%pom_remove_plugin -r :nexus-staging-maven-plugin
%pom_remove_plugin -r :jacoco-maven-plugin
%pom_remove_plugin -r :clirr-maven-plugin
%pom_remove_plugin -r :animal-sniffer-maven-plugin
%pom_remove_plugin -r :maven-site-plugin
%{mvn_package} :{*}-parent __noinstall
%{mvn_package} :{*} @1
%{mvn_file} :{*} @1
%build
%{mvn_build} -f
%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