Update to upstream version 4.5.6

This commit is contained in:
Mikolaj Izdebski 2018-10-08 13:41:15 +00:00
parent 298b3ee9c2
commit a18ebc6248
3 changed files with 36 additions and 46 deletions

1
.gitignore vendored
View File

@ -21,3 +21,4 @@ httpcomponents-client-4.1-src.tar.gz
/httpcomponents-client-4.5.2-src.tar.gz /httpcomponents-client-4.5.2-src.tar.gz
/httpcomponents-client-4.5.3-src.tar.gz /httpcomponents-client-4.5.3-src.tar.gz
/httpcomponents-client-4.5.5-src.tar.gz /httpcomponents-client-4.5.5-src.tar.gz
/httpcomponents-client-4.5.6-src.tar.gz

View File

@ -3,8 +3,8 @@
Name: httpcomponents-client Name: httpcomponents-client
Summary: HTTP agent implementation based on httpcomponents HttpCore Summary: HTTP agent implementation based on httpcomponents HttpCore
Version: 4.5.5 Version: 4.5.6
Release: 5%{?dist} Release: 1%{?dist}
License: ASL 2.0 License: ASL 2.0
URL: http://hc.apache.org/ URL: http://hc.apache.org/
Source0: http://www.apache.org/dist/httpcomponents/httpclient/source/%{name}-%{version}-src.tar.gz Source0: http://www.apache.org/dist/httpcomponents/httpclient/source/%{name}-%{version}-src.tar.gz
@ -75,7 +75,6 @@ Summary: API documentation for %{name}
rm httpclient/src/test/java/org/apache/http/conn/ssl/TestSSLSocketFactory.java rm httpclient/src/test/java/org/apache/http/conn/ssl/TestSSLSocketFactory.java
# Don't compile/run httpclient-cache tests - they are incompatible with EasyMock 3.3 # Don't compile/run httpclient-cache tests - they are incompatible with EasyMock 3.3
%pom_remove_plugin org.apache.maven.plugins:maven-jar-plugin httpclient-cache
%pom_remove_dep org.easymock:easymockclassextension %pom_remove_dep org.easymock:easymockclassextension
for dep in org.easymock:easymockclassextension org.slf4j:slf4j-jcl; do for dep in org.easymock:easymockclassextension org.slf4j:slf4j-jcl; do
%pom_remove_dep $dep httpclient-cache %pom_remove_dep $dep httpclient-cache
@ -84,49 +83,30 @@ rm -rf httpclient-cache/src/test
%pom_remove_plugin :download-maven-plugin httpclient %pom_remove_plugin :download-maven-plugin httpclient
# Add proper Apache felix bundle plugin instructions %pom_xpath_inject "pom:archive" "
# so that we get a reasonable OSGi manifest. <manifestFile>\${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>"
for module in httpclient httpmime httpclient-cache fluent-hc; do
%pom_xpath_remove "pom:project/pom:packaging" $module %pom_xpath_inject pom:build/pom:plugins "
%pom_xpath_inject "pom:project" "<packaging>bundle</packaging>" $module <plugin>
done <groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
</plugin>"
# Make fluent-hc into bundle
%pom_xpath_inject pom:build " %pom_xpath_inject pom:build "
<plugins> <pluginManagement>
<plugins>
<plugin> <plugin>
<groupId>org.apache.felix</groupId> <groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId> <artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
</plugin>
</plugins>" fluent-hc
# Make httpmime into bundle
%pom_xpath_inject pom:build/pom:plugins "
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
</plugin>" httpmime
# Make httpclient into bundle
%pom_xpath_inject pom:reporting/pom:plugins "
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<configuration>
<instructions>
<Export-Package>*</Export-Package>
<Private-Package></Private-Package>
<Import-Package>!org.apache.avalon.framework.logger,!org.apache.log,!org.apache.log4j,*</Import-Package>
</instructions>
</configuration>
</plugin>" httpclient
%pom_xpath_inject pom:build/pom:plugins "
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration> <configuration>
<instructions> <instructions>
<Export-Package>org.apache.http.*,!org.apache.http.param</Export-Package> <Export-Package>org.apache.http.*,!org.apache.http.param</Export-Package>
@ -136,10 +116,14 @@ done
</instructions> </instructions>
<excludeDependencies>true</excludeDependencies> <excludeDependencies>true</excludeDependencies>
</configuration> </configuration>
</plugin>" httpclient </plugin>
</plugins>
</pluginManagement>
" httpclient
# Make httpclient-cache into bundle %pom_xpath_inject pom:build "
%pom_xpath_inject pom:build/pom:plugins " <pluginManagement>
<plugins>
<plugin> <plugin>
<groupId>org.apache.felix</groupId> <groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId> <artifactId>maven-bundle-plugin</artifactId>
@ -153,7 +137,9 @@ done
</instructions> </instructions>
<excludeDependencies>true</excludeDependencies> <excludeDependencies>true</excludeDependencies>
</configuration> </configuration>
</plugin>" httpclient-cache </plugin>
</plugins>
</pluginManagement>" httpclient-cache
# requires network # requires network
rm httpclient/src/test/java/org/apache/http/client/config/TestRequestConfig.java rm httpclient/src/test/java/org/apache/http/client/config/TestRequestConfig.java
@ -185,6 +171,9 @@ rm -r httpclient-cache/src/*/java/org/apache/http/impl/client/cache/ehcache
%doc LICENSE.txt NOTICE.txt %doc LICENSE.txt NOTICE.txt
%changelog %changelog
* Mon Oct 8 2018 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.5.6-1
- Update to upstream version 4.5.6
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.5-5 * Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.5-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

View File

@ -1 +1 @@
SHA512 (httpcomponents-client-4.5.5-src.tar.gz) = 8cfe5879f043c8a1dc7291567363a101c2ea653e99cbc640a18f1a498fc68b60e5321f953bd6765af61b551d45e1e635544328a363e01f13a1d8bd1dfe063e00 SHA512 (httpcomponents-client-4.5.6-src.tar.gz) = c674ccc464eedc5a10c76d49bb87c6f0faf8abe6bf8209ade76af82e3efab8b9ed6cf2967b5f880f486d60de4876be26278b77e99a414aff3400346b57891c82