|
|
cb28f5 |
%global base_name httpcomponents
|
|
|
cb28f5 |
|
|
|
cb28f5 |
Name: httpcomponents-client
|
|
|
cb28f5 |
Summary: HTTP agent implementation based on httpcomponents HttpCore
|
|
|
cb28f5 |
Version: 4.2.5
|
|
|
4d237e |
Release: 4%{?dist}
|
|
|
cb28f5 |
Group: Development/Libraries
|
|
|
cb28f5 |
License: ASL 2.0
|
|
|
cb28f5 |
URL: http://hc.apache.org/
|
|
|
cb28f5 |
Source0: http://archive.apache.org/dist/httpcomponents/httpclient/source/%{name}-%{version}-src.tar.gz
|
|
|
cb28f5 |
|
|
|
cb28f5 |
BuildArch: noarch
|
|
|
cb28f5 |
|
|
|
cb28f5 |
BuildRequires: maven-local
|
|
|
cb28f5 |
BuildRequires: mvn(commons-codec:commons-codec)
|
|
|
cb28f5 |
BuildRequires: mvn(commons-logging:commons-logging)
|
|
|
cb28f5 |
BuildRequires: mvn(org.apache.httpcomponents:httpcore)
|
|
|
cb28f5 |
BuildRequires: mvn(org.apache.httpcomponents:project)
|
|
|
cb28f5 |
%if 0%{?fedora}
|
|
|
cb28f5 |
# Test dependencies
|
|
|
cb28f5 |
BuildRequires: mvn(org.mockito:mockito-core)
|
|
|
cb28f5 |
BuildRequires: mvn(junit:junit)
|
|
|
cb28f5 |
%endif
|
|
|
cb28f5 |
|
|
|
cb28f5 |
%description
|
|
|
cb28f5 |
HttpClient is a HTTP/1.1 compliant HTTP agent implementation based on
|
|
|
cb28f5 |
httpcomponents HttpCore. It also provides reusable components for
|
|
|
cb28f5 |
client-side authentication, HTTP state management, and HTTP connection
|
|
|
cb28f5 |
management. HttpComponents Client is a successor of and replacement
|
|
|
cb28f5 |
for Commons HttpClient 3.x. Users of Commons HttpClient are strongly
|
|
|
cb28f5 |
encouraged to upgrade.
|
|
|
cb28f5 |
|
|
|
cb28f5 |
%package javadoc
|
|
|
cb28f5 |
Summary: API documentation for %{name}
|
|
|
cb28f5 |
Group: Documentation
|
|
|
cb28f5 |
|
|
|
cb28f5 |
%description javadoc
|
|
|
cb28f5 |
%{summary}.
|
|
|
cb28f5 |
|
|
|
cb28f5 |
|
|
|
cb28f5 |
%prep
|
|
|
cb28f5 |
%setup -q
|
|
|
cb28f5 |
|
|
|
cb28f5 |
# Remove optional build deps not available in Fedora
|
|
|
cb28f5 |
%pom_disable_module httpclient-cache
|
|
|
cb28f5 |
%pom_disable_module httpclient-osgi
|
|
|
cb28f5 |
%pom_disable_module fluent-hc
|
|
|
cb28f5 |
%pom_remove_plugin :maven-notice-plugin
|
|
|
cb28f5 |
%pom_remove_plugin :docbkx-maven-plugin
|
|
|
cb28f5 |
%pom_remove_plugin :clirr-maven-plugin
|
|
|
cb28f5 |
%pom_remove_plugin :maven-clover2-plugin httpclient
|
|
|
cb28f5 |
%if !0%{?fedora}
|
|
|
cb28f5 |
%pom_remove_dep :mockito-core httpclient
|
|
|
cb28f5 |
%endif
|
|
|
cb28f5 |
|
|
|
cb28f5 |
# Add proper Apache felix bundle plugin instructions
|
|
|
cb28f5 |
# so that we get a reasonable OSGi manifest.
|
|
|
cb28f5 |
for module in httpclient httpmime; do
|
|
|
cb28f5 |
%pom_xpath_remove "pom:project/pom:packaging" $module
|
|
|
cb28f5 |
%pom_xpath_inject "pom:project" "<packaging>bundle</packaging>" $module
|
|
|
cb28f5 |
done
|
|
|
cb28f5 |
|
|
|
cb28f5 |
# Make httpmime into bundle
|
|
|
cb28f5 |
%pom_xpath_inject pom:build/pom:plugins "
|
|
|
cb28f5 |
<plugin>
|
|
|
cb28f5 |
<groupId>org.apache.felix</groupId>
|
|
|
cb28f5 |
<artifactId>maven-bundle-plugin</artifactId>
|
|
|
cb28f5 |
<extensions>true</extensions>
|
|
|
cb28f5 |
</plugin>" httpmime
|
|
|
cb28f5 |
|
|
|
cb28f5 |
# Make httpclient into bundle
|
|
|
cb28f5 |
%pom_xpath_inject pom:reporting/pom:plugins "
|
|
|
cb28f5 |
<plugin>
|
|
|
cb28f5 |
<groupId>org.apache.felix</groupId>
|
|
|
cb28f5 |
<artifactId>maven-bundle-plugin</artifactId>
|
|
|
cb28f5 |
<configuration>
|
|
|
cb28f5 |
<instructions>
|
|
|
cb28f5 |
<Export-Package>*</Export-Package>
|
|
|
cb28f5 |
<Private-Package></Private-Package>
|
|
|
cb28f5 |
<Import-Package>!org.apache.avalon.framework.logger,!org.apache.log,!org.apache.log4j,*</Import-Package>
|
|
|
cb28f5 |
</instructions>
|
|
|
cb28f5 |
</configuration>
|
|
|
cb28f5 |
</plugin>" httpclient
|
|
|
cb28f5 |
%pom_xpath_inject pom:build/pom:plugins "
|
|
|
cb28f5 |
<plugin>
|
|
|
cb28f5 |
<groupId>org.apache.felix</groupId>
|
|
|
cb28f5 |
<artifactId>maven-bundle-plugin</artifactId>
|
|
|
cb28f5 |
<extensions>true</extensions>
|
|
|
cb28f5 |
<configuration>
|
|
|
cb28f5 |
<instructions>
|
|
|
cb28f5 |
<Export-Package>org.apache.http.*,!org.apache.http.param</Export-Package>
|
|
|
cb28f5 |
<Private-Package></Private-Package>
|
|
|
cb28f5 |
<_nouses>true</_nouses>
|
|
|
cb28f5 |
<Import-Package>!org.apache.avalon.framework.logger,!org.apache.log,!org.apache.log4j,*</Import-Package>
|
|
|
cb28f5 |
</instructions>
|
|
|
cb28f5 |
<excludeDependencies>true</excludeDependencies>
|
|
|
cb28f5 |
</configuration>
|
|
|
cb28f5 |
</plugin>" httpclient
|
|
|
cb28f5 |
|
|
|
cb28f5 |
|
|
|
cb28f5 |
|
|
|
cb28f5 |
%build
|
|
|
cb28f5 |
%mvn_file ":{*}" httpcomponents/@1
|
|
|
cb28f5 |
|
|
|
cb28f5 |
# Build with tests enabled on Fedora
|
|
|
cb28f5 |
%if 0%{?fedora}
|
|
|
cb28f5 |
%mvn_build
|
|
|
cb28f5 |
%else
|
|
|
cb28f5 |
%mvn_build -f
|
|
|
cb28f5 |
%endif
|
|
|
cb28f5 |
|
|
|
cb28f5 |
|
|
|
cb28f5 |
%install
|
|
|
cb28f5 |
%mvn_install
|
|
|
cb28f5 |
|
|
|
cb28f5 |
|
|
|
cb28f5 |
%files -f .mfiles
|
|
|
cb28f5 |
%doc LICENSE.txt NOTICE.txt
|
|
|
cb28f5 |
%doc README.txt RELEASE_NOTES.txt
|
|
|
cb28f5 |
|
|
|
cb28f5 |
%files javadoc -f .mfiles-javadoc
|
|
|
cb28f5 |
%doc LICENSE.txt NOTICE.txt
|
|
|
cb28f5 |
|
|
|
cb28f5 |
%changelog
|
|
|
4d237e |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 4.2.5-4
|
|
|
4d237e |
- Mass rebuild 2013-12-27
|
|
|
4d237e |
|
|
|
cb28f5 |
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.5-3
|
|
|
cb28f5 |
- Rebuild to regenerate API documentation
|
|
|
cb28f5 |
- Resolves: CVE-2013-1571
|
|
|
cb28f5 |
|
|
|
cb28f5 |
* Mon Jun 10 2013 Michal Srb <msrb@redhat.com> - 4.2.5-2
|
|
|
cb28f5 |
- Enable tests on Fedora
|
|
|
cb28f5 |
|
|
|
cb28f5 |
* Thu Apr 25 2013 Michal Srb <msrb@redhat.com> - 4.2.5-1
|
|
|
cb28f5 |
- Update to upstream version 4.2.5
|
|
|
cb28f5 |
|
|
|
cb28f5 |
* Thu Apr 11 2013 Michal Srb <msrb@redhat.com> - 4.2.4-1
|
|
|
cb28f5 |
- Update to upstream version 4.2.4
|
|
|
cb28f5 |
|
|
|
cb28f5 |
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 4.2.3-3
|
|
|
cb28f5 |
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
|
|
|
cb28f5 |
- Replace maven BuildRequires with maven-local
|
|
|
cb28f5 |
|
|
|
cb28f5 |
* Fri Jan 25 2013 Michal Srb <msrb@redhat.com> - 4.2.3-2
|
|
|
cb28f5 |
- Build with xmvn
|
|
|
cb28f5 |
- Disable fluent-hc module
|
|
|
cb28f5 |
|
|
|
cb28f5 |
* Thu Jan 24 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.3-1
|
|
|
cb28f5 |
- Update to upstream version 4.2.3
|
|
|
cb28f5 |
|
|
|
cb28f5 |
* Thu Oct 25 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.2-1
|
|
|
cb28f5 |
- Update to upstream version 4.2.2
|
|
|
cb28f5 |
|
|
|
cb28f5 |
* Wed Aug 1 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.1-3
|
|
|
cb28f5 |
- Fix OSGi manifest in httpmime
|
|
|
cb28f5 |
|
|
|
cb28f5 |
* Fri Jul 27 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.1-2
|
|
|
cb28f5 |
- Install NOTICE.txt file
|
|
|
cb28f5 |
- Fix javadir directory ownership
|
|
|
cb28f5 |
- Fix directory permissions
|
|
|
cb28f5 |
- Preserve timestamps
|
|
|
cb28f5 |
- Replace add_to_maven_depmap with add_maven_depmap
|
|
|
cb28f5 |
|
|
|
cb28f5 |
* Fri Jul 27 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.1-1
|
|
|
cb28f5 |
- Update to upstream version 4.2.1
|
|
|
cb28f5 |
- Convert patches to POM macros
|
|
|
cb28f5 |
|
|
|
cb28f5 |
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.3-4
|
|
|
cb28f5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
cb28f5 |
|
|
|
cb28f5 |
* Wed May 2 2012 Alexander Kurtakov <akurtako@redhat.com> 4.1.3-3
|
|
|
cb28f5 |
- Do not export org.apache.http.param in osgi.
|
|
|
cb28f5 |
|
|
|
cb28f5 |
* Mon Mar 26 2012 Alexander Kurtakov <akurtako@redhat.com> 4.1.3-2
|
|
|
cb28f5 |
- Do not export * but only org.apache.http.* .
|
|
|
cb28f5 |
- Do not generate uses clauses in the manifest.
|
|
|
cb28f5 |
|
|
|
cb28f5 |
* Thu Mar 1 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> 4.1.3-1
|
|
|
cb28f5 |
- Update to latest upstream bugfix
|
|
|
cb28f5 |
|
|
|
cb28f5 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.2-2
|
|
|
cb28f5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
cb28f5 |
|
|
|
cb28f5 |
* Tue Aug 16 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.1.2-1
|
|
|
cb28f5 |
- Update to latest upstream (4.1.2)
|
|
|
cb28f5 |
- Minor tweaks according to guidelines
|
|
|
cb28f5 |
|
|
|
cb28f5 |
* Fri Jul 15 2011 Severin Gehwolf <sgehwolf@redhat.com> 4.1.1-3
|
|
|
cb28f5 |
- Fix for RH Bz#718830. Add instructions so as to not
|
|
|
cb28f5 |
Import-Package optional dependencies.
|
|
|
cb28f5 |
|
|
|
cb28f5 |
* Thu Apr 7 2011 Severin Gehwolf <sgehwolf@redhat.com> 4.1.1-2
|
|
|
cb28f5 |
- Add BR/R apache-commons-codec, since httpcomponents-client's
|
|
|
cb28f5 |
MANIFEST.MF has an Import-Package: org.apache.commons.codec
|
|
|
cb28f5 |
header.
|
|
|
cb28f5 |
|
|
|
cb28f5 |
* Tue Mar 29 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.1.1-1
|
|
|
cb28f5 |
- New upstream bugfix version (4.1.1)
|
|
|
cb28f5 |
|
|
|
cb28f5 |
* Tue Mar 15 2011 Severin Gehwolf <sgehwolf@redhat.com> 4.1-6
|
|
|
cb28f5 |
- Explicitly set PrivatePackage to the empty set, so as to
|
|
|
cb28f5 |
export all packages.
|
|
|
cb28f5 |
|
|
|
cb28f5 |
* Thu Mar 10 2011 Alexander Kurtakov <akurtako@redhat.com> 4.1-5
|
|
|
cb28f5 |
- OSGi export more packages.
|
|
|
cb28f5 |
|
|
|
cb28f5 |
* Fri Feb 25 2011 Alexander Kurtakov <akurtako@redhat.com> 4.1-4
|
|
|
cb28f5 |
- Build httpmime module.
|
|
|
cb28f5 |
|
|
|
cb28f5 |
* Fri Feb 18 2011 Alexander Kurtakov <akurtako@redhat.com> 4.1-3
|
|
|
cb28f5 |
- Don't use basename as an identifier.
|
|
|
cb28f5 |
|
|
|
cb28f5 |
* Fri Feb 18 2011 Alexander Kurtakov <akurtako@redhat.com> 4.1-2
|
|
|
cb28f5 |
- OSGify properly.
|
|
|
cb28f5 |
- Install into %{_javadir}/%{basename}.
|
|
|
cb28f5 |
|
|
|
cb28f5 |
* Thu Feb 17 2011 Alexander Kurtakov <akurtako@redhat.com> 4.1-1
|
|
|
cb28f5 |
- Update to latest upstream version.
|
|
|
cb28f5 |
|
|
|
cb28f5 |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.3-3
|
|
|
cb28f5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
cb28f5 |
|
|
|
cb28f5 |
* Wed Dec 22 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.0.3-2
|
|
|
cb28f5 |
- Added license to javadoc subpackage
|
|
|
cb28f5 |
|
|
|
cb28f5 |
* Mon Dec 20 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.0.3-1
|
|
|
cb28f5 |
- Initial version
|