# # spec file for package google-http-java-client # # 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-http-java-client Version: 1.45.1 Release: 0 Summary: Google HTTP Client Library for Java License: Apache-2.0 Group: Development/Libraries/Java URL: https://github.com/google/google-http-java-client/ Source0: https://github.com/google/google-http-java-client/archive/v%{version}/%{name}-v%{version}.tar.gz BuildRequires: fdupes BuildRequires: java-devel >= 1.8 BuildRequires: maven-local BuildRequires: protobuf-devel BuildRequires: mvn(com.fasterxml.jackson.core:jackson-core) BuildRequires: mvn(com.google.cloud:native-image-shared-config:pom:) BuildRequires: mvn(com.google.code.findbugs:jsr305) BuildRequires: mvn(com.google.code.gson:gson) BuildRequires: mvn(com.google.errorprone:error_prone_annotations) BuildRequires: mvn(com.google.guava:guava) BuildRequires: mvn(com.google.j2objc:j2objc-annotations) BuildRequires: mvn(com.google.protobuf:protobuf-java) BuildRequires: mvn(io.grpc:grpc-context) BuildRequires: mvn(io.opencensus:opencensus-api) BuildRequires: mvn(io.opencensus:opencensus-contrib-http-util) BuildRequires: mvn(junit:junit) BuildRequires: mvn(kr.motd.maven:os-maven-plugin) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.apache.httpcomponents.client5:httpclient5) BuildRequires: mvn(org.apache.httpcomponents.core5:httpcore5) BuildRequires: mvn(org.apache.httpcomponents:httpclient) BuildRequires: mvn(org.apache.httpcomponents:httpcore) BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) BuildRequires: mvn(org.xolstice.maven.plugins:protobuf-maven-plugin) BuildRequires: mvn(xpp3:xpp3) BuildArch: noarch %description Google HTTP Client Library for Java. Functionality that works on all supported Java platforms, including Java 5 (or higher) desktop (SE) and web (EE), Android, and Google App Engine. %package findbugs Summary: Google HTTP Client Findbugs plugin Group: Development/Libraries/Java %description findbugs Google APIs Client Library Findbugs custom plugin. %package gson Summary: Google HTTP Client GSON extensions Group: Development/Libraries/Java %description gson GSON extensions to the Google HTTP Client Library for Java. %package apache-v2 Summary: Google HTTP Client Apache HTTP transport v2 Group: Development/Libraries/Java %description apache-v2 Apache HTTP transport v2 for the Google HTTP Client Library for Java. %package apache-v5 Summary: Google HTTP Client Apache HTTP transport v5 Group: Development/Libraries/Java %description apache-v5 Apache HTTP transport v5 for the Google HTTP Client Library for Java. %package bom Summary: Google HTTP Client Library for Java BOM Group: Development/Libraries/Java %description bom BOM for Google HTTP Client Library for Java %package jackson Summary: Google HTTP Client Jackson extensions Group: Development/Libraries/Java %description jackson Jackson extensions to the Google HTTP Client Library for Java. %package jackson2 Summary: Google HTTP Client Jackson 2 extensions Group: Development/Libraries/Java %description jackson2 Jackson 2 extensions to the Google HTTP Client Library for Java. %package jdo Summary: Google HTTP Client JDO extensions Group: Development/Libraries/Java %description jdo JDO extensions to the Google HTTP Client Library for Java. %package parent Summary: Google HTTP Client Parent POM Group: Development/Libraries/Java %description parent Parent POM for the Google HTTP Client Library for Java. %package protobuf Summary: Google HTTP Client Protocol Buffer extensions Group: Development/Libraries/Java %description protobuf Protocol Buffer extensions to the Google HTTP Client Library for Java. %package test Summary: Google HTTP Client Test support Group: Development/Libraries/Java %description test Shared classes used for testing of artifacts in the Google HTTP Client Library for Java. %package xml Summary: Google HTTP Client XML extensions Group: Development/Libraries/Java %description xml XML extensions to the Google HTTP Client 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 org.codehaus.mojo:clirr-maven-plugin %pom_remove_plugin -r :animal-sniffer-maven-plugin %pom_remove_plugin :maven-checkstyle-plugin %pom_remove_plugin -r :maven-source-plugin %pom_remove_plugin -r :findbugs-maven-plugin %pom_remove_plugin -r :maven-deploy-plugin %pom_remove_plugin -r :nexus-staging-maven-plugin %pom_remove_plugin -r :maven-enforcer-plugin %pom_remove_plugin -r :maven-project-info-reports-plugin %pom_remove_plugin -r :fmt-maven-plugin %pom_remove_plugin -r :maven-javadoc-plugin %pom_remove_plugin -r :maven-site-plugin %pom_disable_module google-http-client-assembly %pom_disable_module google-http-client-appengine %pom_disable_module google-http-client-android %pom_disable_module google-http-client-findbugs %pom_disable_module samples/dailymotion-simple-cmdline-sample %pom_remove_dep :jackson-core-asl %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 -f .mfiles-google-http-client %doc README.md %license LICENSE %files apache-v2 -f .mfiles-google-http-client-apache-v2 %files apache-v5 -f .mfiles-google-http-client-apache-v5 %files bom -f .mfiles-google-http-client-bom %files gson -f .mfiles-google-http-client-gson %files jackson2 -f .mfiles-google-http-client-jackson2 %files parent -f .mfiles-google-http-client-parent %files protobuf -f .mfiles-google-http-client-protobuf %files test -f .mfiles-google-http-client-test %files xml -f .mfiles-google-http-client-xml %files javadoc -f .mfiles-javadoc %license LICENSE %changelog