Name: http-builder Version: 0.7.2 Release: 7%{?dist} Summary: HTTP client framework for Groovy License: ASL 2.0 URL: https://github.com/jgritman/httpbuilder Source0: https://github.com/jgritman/httpbuilder/archive/%{name}-%{version}.tar.gz Source1: http://www.apache.org/licenses/LICENSE-2.0.txt BuildRequires: maven-local BuildRequires: mvn(commons-io:commons-io) BuildRequires: mvn(junit:junit) BuildRequires: mvn(log4j:log4j:1.2.17) BuildRequires: mvn(net.sf.json-lib:json-lib) BuildRequires: mvn(net.sourceforge.nekohtml:nekohtml) BuildRequires: mvn(oauth.signpost:signpost-commonshttp4) BuildRequires: mvn(oauth.signpost:signpost-core) BuildRequires: mvn(org.apache.httpcomponents:httpclient) BuildRequires: mvn(org.codehaus.gmavenplus:gmavenplus-plugin) BuildRequires: mvn(org.codehaus.groovy:groovy) BuildRequires: mvn(org.codehaus.groovy:groovy-json) BuildRequires: mvn(org.codehaus.groovy:groovy-xml) BuildRequires: mvn(xerces:xercesImpl) BuildRequires: mvn(xml-resolver:xml-resolver) BuildArch: noarch %description A builder-style HTTP client API, including authentication, and extensible handling of common content-types such as JSON and XML. It is built on top of Apache's HttpClient. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n httpbuilder-%{name}-%{version} find . -name "*.class" -print -delete find . -name "*.jar" -print -delete %pom_remove_plugin :cobertura-maven-plugin %pom_remove_plugin :gmaven-plugin %pom_add_plugin org.codehaus.gmavenplus:gmavenplus-plugin:1.5 . " testGenerateStubs " # Useless tasks %pom_remove_plugin :maven-assembly-plugin %pom_remove_plugin :maven-deploy-plugin %pom_remove_plugin :maven-release-plugin %pom_remove_plugin :maven-site-plugin %pom_remove_plugin :maven-surefire-report-plugin # Use system setting to avoid doclint errors %pom_remove_plugin :maven-javadoc-plugin # org.apache.maven.wagon:wagon-webdav-jackrabbit:1.0-beta-7 %pom_xpath_remove pom:build/pom:extensions %pom_change_dep log4j: ::1.2.17 # net.sf.json-lib:json-lib:2.3:jdk15: %pom_xpath_remove "pom:dependency[pom:artifactId = 'json-lib']/pom:classifier" # com.google.appengine:appengine-api-1.0-sdk:1.3.8 %pom_remove_dep :appengine-api-1.0-sdk rm -r src/main/java/groovyx/net/http/thirdparty \ src/test/groovy/groovyx/net/http/thirdparty cp -p %{SOURCE1} LICENSE sed -i 's/\r//' LICENSE # package groovy.... does not exist %pom_add_dep org.codehaus.groovy:groovy-xml %pom_add_dep org.codehaus.groovy:groovy-json %mvn_file org.codehaus.groovy.modules.%{name}:%{name} %{name} # AssertionError: Expected exception: java.lang.IllegalArgumentException rm src/test/groovy/groovyx/net/http/HTTPBuilderTest.groovy # AssertionError: Expected exception: java.net.SocketTimeoutException rm src/test/groovy/groovyx/net/http/HttpURLClientTest.groovy %build %mvn_build %install %mvn_install %files -f .mfiles # README file contains also project license %doc README %license LICENSE %files javadoc -f .mfiles-javadoc %license LICENSE %changelog * Thu Jul 25 2019 Fedora Release Engineering - 0.7.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Feb 01 2019 Fedora Release Engineering - 0.7.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 0.7.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Feb 07 2018 Fedora Release Engineering - 0.7.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 0.7.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 0.7.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sun Oct 30 2016 gil cattaneo 0.7.2-1 - initial rpm