From e6ed709d6170e6823b4be132f86c288d6136f1e6 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 15 2016 08:24:23 +0000 Subject: import rh-java-common-httpcomponents-client-4.3.6-1.4.el7 --- diff --git a/SPECS/httpcomponents-client.spec b/SPECS/httpcomponents-client.spec index 42c86d5..52ecaaf 100644 --- a/SPECS/httpcomponents-client.spec +++ b/SPECS/httpcomponents-client.spec @@ -7,7 +7,7 @@ Name: %{?scl_prefix}%{pkg_name} Summary: HTTP agent implementation based on httpcomponents HttpCore Version: 4.3.6 -Release: 1.2%{?dist} +Release: 1.4%{?dist} License: ASL 2.0 URL: http://hc.apache.org/ Source0: http://archive.apache.org/dist/httpcomponents/httpclient/source/%{pkg_name}-%{version}-src.tar.gz @@ -33,6 +33,12 @@ management. HttpComponents Client is a successor of and replacement for Commons HttpClient 3.x. Users of Commons HttpClient are strongly encouraged to upgrade. +%package cache +Summary: Cache module for %{name} + +%description cache +This package provides client side caching for %{name}. + %package javadoc Summary: API documentation for %{pkg_name} @@ -45,10 +51,14 @@ Summary: API documentation for %{pkg_name} %{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"} set -e -x +# disable ehcache and memcached cache backends - we don't have the deps +rm -r httpclient-cache/src/{main,test}/java/org/apache/http/impl/client/cache/{memcached,ehcache} +%pom_remove_dep :spymemcached httpclient-cache +%pom_remove_dep :ehcache-core httpclient-cache +%pom_remove_dep :slf4j-jcl httpclient-cache + # Remove optional build deps not available in Fedora -%pom_disable_module httpclient-cache %pom_disable_module httpclient-osgi -%pom_disable_module fluent-hc %pom_remove_plugin :maven-checkstyle-plugin %if !0%{?fedora} %pom_remove_dep :mockito-core httpclient @@ -56,11 +66,21 @@ set -e -x # Add proper Apache felix bundle plugin instructions # so that we get a reasonable OSGi manifest. -for module in httpclient httpmime; do +for module in httpclient httpmime httpclient-cache fluent-hc; do %pom_xpath_remove "pom:project/pom:packaging" $module %pom_xpath_inject "pom:project" "bundle" $module done +# Make fluent-hc into bundle +%pom_xpath_inject pom:build " + + + org.apache.felix + maven-bundle-plugin + true + +" fluent-hc + # Make httpmime into bundle %pom_xpath_inject pom:build/pom:plugins " @@ -97,6 +117,25 @@ done true " httpclient + +# Make httpclient-cache into bundle +# would need the following if ehcache or memcached backends are enabled: +# net.sf.ehcache;resolution:=optional,net.spy.memcached;resolution:=optional,* +%pom_xpath_inject pom:build/pom:plugins " + + org.apache.felix + maven-bundle-plugin + true + + + * + + <_nouses>true + + true + + " httpclient-cache + %{?scl:EOF} @@ -106,6 +145,8 @@ done set -e -x %mvn_file ":{*}" httpcomponents/@1 +%mvn_package :httpclient-cache cache + # Build with tests enabled on Fedora %if 0%{?fedora} %mvn_build @@ -126,10 +167,20 @@ set -e -x %doc LICENSE.txt NOTICE.txt %doc README.txt RELEASE_NOTES.txt +%files cache -f .mfiles-cache + %files javadoc -f .mfiles-javadoc %doc LICENSE.txt NOTICE.txt %changelog +* Wed Nov 02 2016 Michael Simacek - 4.3.6-1.4 +- Enable httpclient-cache module +- Resolves: rhbz#1390760 + +* Mon Aug 01 2016 Mat Booth - 4.3.6-1.3 +- Enable the fluent API module +- Resolves: rhbz#1362261 + * Tue Jan 13 2015 Michael Simacek - 4.3.6-1.2 - Mass rebuild 2015-01-13