eabff1
Name:              httpcomponents-client
eabff1
Summary:           HTTP agent implementation based on httpcomponents HttpCore
eabff1
Version:           4.5.10
1b0c51
Release:           4%{?dist}
eabff1
License:           ASL 2.0
eabff1
URL:               http://hc.apache.org/
eabff1
Source0:           http://www.apache.org/dist/httpcomponents/httpclient/source/%{name}-%{version}-src.tar.gz
eabff1
BuildArch:         noarch
eabff1
eabff1
Patch0:            0001-Use-system-copy-of-effective_tld_names.dat.patch
eabff1
Patch1:            0002-Port-to-mockito-2.patch
1b0c51
Patch2:            0003-Incorrect-handling-of-malformed-authority-component-.patch
eabff1
eabff1
BuildRequires:     maven-local-openjdk8
eabff1
BuildRequires:     %{?module_prefix}mvn(commons-codec:commons-codec)
eabff1
BuildRequires:     mvn(commons-logging:commons-logging)
eabff1
BuildRequires:     mvn(junit:junit)
eabff1
BuildRequires:     mvn(org.apache.felix:maven-bundle-plugin)
eabff1
BuildRequires:     mvn(org.apache.httpcomponents:httpcomponents-parent:pom:)
eabff1
BuildRequires:     %{?module_prefix}mvn(org.apache.httpcomponents:httpcore)
eabff1
BuildRequires:     mvn(org.codehaus.mojo:build-helper-maven-plugin)
eabff1
BuildRequires:     mvn(org.mockito:mockito-core)
eabff1
eabff1
%if 0%{?module_prefix:1}
eabff1
%package -n %{module_prefix}%{name}
eabff1
Summary: %{summary}
eabff1
%endif
eabff1
eabff1
BuildRequires:     publicsuffix-list
eabff1
Requires:          publicsuffix-list
eabff1
eabff1
%if 0%{?module_prefix:1}
eabff1
%description -n %{module_prefix}%{name}
eabff1
%{summary}.
eabff1
%endif
eabff1
eabff1
%description
eabff1
HttpClient is a HTTP/1.1 compliant HTTP agent implementation based on
eabff1
httpcomponents HttpCore. It also provides reusable components for
eabff1
client-side authentication, HTTP state management, and HTTP connection
eabff1
management. HttpComponents Client is a successor of and replacement
eabff1
for Commons HttpClient 3.x. Users of Commons HttpClient are strongly
eabff1
encouraged to upgrade.
eabff1
eabff1
%{?javadoc_package}
eabff1
eabff1
%prep
eabff1
%setup -q -n %{name}-%{version}
eabff1
%patch0 -p1
eabff1
%patch1 -p1
1b0c51
%patch2 -p1
eabff1
eabff1
%mvn_package :::tests: __noinstall
eabff1
eabff1
# Change scope of commons-logging to provided
eabff1
%pom_change_dep :commons-logging :::provided httpclient
eabff1
eabff1
# Remove optional build deps not available in Fedora
eabff1
%pom_disable_module httpclient-osgi
eabff1
%pom_disable_module httpclient-win
eabff1
%pom_disable_module fluent-hc
eabff1
%pom_disable_module httpmime
eabff1
%pom_disable_module httpclient-cache
eabff1
%pom_remove_plugin :docbkx-maven-plugin
eabff1
%pom_remove_plugin :clirr-maven-plugin
eabff1
%pom_remove_plugin :maven-checkstyle-plugin
eabff1
%pom_remove_plugin :apache-rat-plugin
eabff1
%pom_remove_plugin :maven-source-plugin
eabff1
%pom_remove_plugin :maven-javadoc-plugin
eabff1
%pom_remove_plugin :animal-sniffer-maven-plugin
eabff1
eabff1
# Fails due to strict crypto policy - uses DSA in test data
eabff1
rm httpclient/src/test/java/org/apache/http/conn/ssl/TestSSLSocketFactory.java
eabff1
eabff1
%pom_remove_plugin :download-maven-plugin httpclient
eabff1
eabff1
%pom_xpath_inject "pom:archive" "
eabff1
    <manifestFile>\${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>"
eabff1
eabff1
%pom_xpath_inject pom:build/pom:plugins "
eabff1
    <plugin>
eabff1
      <groupId>org.apache.felix</groupId>
eabff1
      <artifactId>maven-bundle-plugin</artifactId>
eabff1
      <executions>
eabff1
        <execution>
eabff1
          <id>bundle-manifest</id>
eabff1
          <phase>process-classes</phase>
eabff1
          <goals>
eabff1
            <goal>manifest</goal>
eabff1
          </goals>
eabff1
        </execution>
eabff1
      </executions>
eabff1
    </plugin>"
eabff1
eabff1
%pom_xpath_inject pom:build "
eabff1
<pluginManagement>
eabff1
  <plugins>
eabff1
    <plugin>
eabff1
      <groupId>org.apache.felix</groupId>
eabff1
      <artifactId>maven-bundle-plugin</artifactId>
eabff1
      <configuration>
eabff1
        <instructions>
eabff1
          <Export-Package>org.apache.http.*,!org.apache.http.param</Export-Package>
eabff1
          <Private-Package></Private-Package>
eabff1
          <_nouses>true</_nouses>
eabff1
          <Import-Package>!org.apache.avalon.framework.logger,!org.apache.log,!org.apache.log4j,*</Import-Package>
eabff1
        </instructions>
eabff1
        <excludeDependencies>true</excludeDependencies>
eabff1
      </configuration>
eabff1
    </plugin>
eabff1
  </plugins>
eabff1
</pluginManagement>
eabff1
" httpclient
eabff1
eabff1
# requires network
eabff1
rm httpclient/src/test/java/org/apache/http/client/config/TestRequestConfig.java
eabff1
eabff1
%build
eabff1
%mvn_file ":{*}" httpcomponents/@1
eabff1
eabff1
%mvn_build
eabff1
eabff1
%install
eabff1
%mvn_install
eabff1
eabff1
%files -n %{?module_prefix}%{name} -f .mfiles
eabff1
%license LICENSE.txt NOTICE.txt
eabff1
%doc README.txt RELEASE_NOTES.txt
eabff1
eabff1
%changelog
1b0c51
* Sat Sep 25 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.5.10-4
1b0c51
- Fix incorrect handling of malformed authority component in request URIs
1b0c51
- Resolves: CVE-2020-13956
1b0c51
eabff1
* Sat Jan 25 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.5.10-3
eabff1
- Build with OpenJDK 8
eabff1
eabff1
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.5.10-2
eabff1
- Mass rebuild for javapackages-tools 201902
eabff1
eabff1
* Mon Sep 16 2019 Marian Koncek <mkoncek@redhat.com> - 4.5.10-1
eabff1
- Update to upstream version 4.5.10
eabff1
eabff1
* Mon Jul 29 2019 Marian Koncek <mkoncek@redhat.com> - 4.5.9-1
eabff1
- Update to upstream version 4.5.9
eabff1
eabff1
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.5.8-2
eabff1
- Mass rebuild for javapackages-tools 201901
eabff1
eabff1
* Mon May 13 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.5.8-1
eabff1
- Update to upstream version 4.5.8
eabff1
eabff1
* Mon Feb 04 2019 Marian Koncek <mkoncek@redhat.com> - 4.5.7-1
eabff1
- Update to upstream version 4.5.7
eabff1
- Fixes: RHBZ #1669148
eabff1
eabff1
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.6-3
eabff1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
eabff1
eabff1
* Fri Dec 07 2018 Mat Booth <mat.booth@redhat.com> - 4.5.6-2
eabff1
- Add a patch to allow building with mockito 2
eabff1
- Don't package tests jars, the tests jars have the same OSGi metadata as the
eabff1
  main jars, which can cause tycho to resolve the wrong one when building
eabff1
  eclipse plugins
eabff1
eabff1
* Mon Oct  8 2018 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.5.6-1
eabff1
- Update to upstream version 4.5.6
eabff1
eabff1
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.5-5
eabff1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
eabff1
eabff1
* Mon Mar 19 2018 Michael Simacek <msimacek@redhat.com> - 4.5.5-4
eabff1
- Fix FTBFS (weak crypto in test data)
eabff1
eabff1
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.5.5-3
eabff1
- Escape macros in %%changelog
eabff1
eabff1
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.5-2
eabff1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
eabff1
eabff1
* Mon Jan 22 2018 Michael Simacek <msimacek@redhat.com> - 4.5.5-1
eabff1
- Update to upstream version 4.5.5
eabff1
eabff1
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.3-4
eabff1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
eabff1
eabff1
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.3-3
eabff1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
eabff1
eabff1
* Thu Feb 02 2017 Michael Simacek <msimacek@redhat.com> - 4.5.3-2
eabff1
- Add conditionals for memcached and ehcache
eabff1
eabff1
* Thu Jan 26 2017 Michael Simacek <msimacek@redhat.com> - 4.5.3-1
eabff1
- Update to upstream version 4.5.3
eabff1
eabff1
* Fri Jun 24 2016 Michael Simacek <msimacek@redhat.com> - 4.5.2-4
eabff1
- Fix build with httpcomponents-core-4.4.5
eabff1
eabff1
* Wed Jun 15 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.5.2-3
eabff1
- Add missing build-requires
eabff1
eabff1
* Wed Mar 16 2016 Sopot Cela <scela@redhat.com> - 4.5.2-2
eabff1
- Make the fluent API into a bundle
eabff1
eabff1
* Mon Feb 29 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.5.2-1
eabff1
- Update to upstream version 4.5.2
eabff1
eabff1
* Wed Feb 10 2016 Mat Booth <mat.booth@redhat.com> - 4.5.1-4
eabff1
- Enable the fluent API module
eabff1
eabff1
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.1-3
eabff1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
eabff1
eabff1
* Mon Jan 25 2016 Mat Booth <mat.booth@redhat.com> - 4.5.1-2
eabff1
- Make client cache jar into a OSGi bundle
eabff1
eabff1
* Wed Sep 16 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.5.1-1
eabff1
- Update to upstream version 4.5.1
eabff1
eabff1
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.5-2
eabff1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
eabff1
eabff1
* Thu Jun 04 2015 Michael Simacek <msimacek@redhat.com> - 4.5-1
eabff1
- Update to upstream version 4.5
eabff1
eabff1
* Tue Mar 31 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.4.1-1
eabff1
- Update to upstream version 4.4.1
eabff1
eabff1
* Wed Feb 18 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.4-1
eabff1
- Update to upstream version 4.4
eabff1
eabff1
* Thu Jan 22 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.4-0.3.beta1
eabff1
- Split httpclient-cache into subpackage
eabff1
eabff1
* Tue Jan 20 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.4-0.2.beta1
eabff1
- Unbundle publicsuffix-list
eabff1
- Resolves: rhbz#1183782
eabff1
eabff1
* Mon Jan 19 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.4-0.1.beta1
eabff1
- Update to upstream version 4.4 beta1
eabff1
- Remove tests subpackage
eabff1
eabff1
* Fri Jan  9 2015 Richard Fearn <richardfearn@gmail.com> - 4.3.5-3
eabff1
- Also build HttpClient Cache (bug #1180696)
eabff1
eabff1
* Tue Dec 02 2014 Michael Simacek <msimacek@redhat.com> - 4.3.5-2
eabff1
- Build and install tests artifact (needed by copr-java)
eabff1
eabff1
* Tue Aug  5 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.3.5-1
eabff1
- Update to upstream version 4.3.5
eabff1
eabff1
* Mon Aug  4 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.3.4-2
eabff1
- Fix build-requires on httpcomponents-project
eabff1
eabff1
* Fri Jun  6 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.3.4-1
eabff1
- Update to upstream version 4.3.4
eabff1
eabff1
* Fri Feb 28 2014 Michael Simacek <msimacek@redhat.com> - 4.3.3-1
eabff1
- Update to upstream version 4.3.3
eabff1
eabff1
* Mon Jan 20 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.3.2-1
eabff1
- Update to upstream version 4.3.2
eabff1
eabff1
* Mon Jan 06 2014 Michael Simacek <msimacek@redhat.com> - 4.3.1-1
eabff1
- Update to upstream version 4.3.1
eabff1
- Temporarily disable tests due to bug in mockito
eabff1
eabff1
* Thu Oct  3 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.3-2
eabff1
- Don't try to remove maven-notice-plugin from POM
eabff1
eabff1
* Fri Sep 13 2013 Michal Srb <msrb@redhat.com> - 4.3-1
eabff1
- Update to upstream version 4.3
eabff1
- Drop group tag
eabff1
eabff1
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.5-3
eabff1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
eabff1
eabff1
* Mon Jun 10 2013 Michal Srb <msrb@redhat.com> - 4.2.5-2
eabff1
- Enable tests on Fedora
eabff1
eabff1
* Thu Apr 25 2013 Michal Srb <msrb@redhat.com> - 4.2.5-1
eabff1
- Update to upstream version 4.2.5
eabff1
eabff1
* Thu Apr 11 2013 Michal Srb <msrb@redhat.com> - 4.2.4-1
eabff1
- Update to upstream version 4.2.4
eabff1
eabff1
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 4.2.3-3
eabff1
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
eabff1
- Replace maven BuildRequires with maven-local
eabff1
eabff1
* Fri Jan 25 2013 Michal Srb <msrb@redhat.com> - 4.2.3-2
eabff1
- Build with xmvn
eabff1
- Disable fluent-hc module
eabff1
eabff1
* Thu Jan 24 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.3-1
eabff1
- Update to upstream version 4.2.3
eabff1
eabff1
* Thu Oct 25 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.2-1
eabff1
- Update to upstream version 4.2.2
eabff1
eabff1
* Wed Aug  1 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.1-3
eabff1
- Fix OSGi manifest in httpmime
eabff1
eabff1
* Fri Jul 27 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.1-2
eabff1
- Install NOTICE.txt file
eabff1
- Fix javadir directory ownership
eabff1
- Fix directory permissions
eabff1
- Preserve timestamps
eabff1
- Replace add_to_maven_depmap with add_maven_depmap
eabff1
eabff1
* Fri Jul 27 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.1-1
eabff1
- Update to upstream version 4.2.1
eabff1
- Convert patches to POM macros
eabff1
eabff1
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.3-4
eabff1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
eabff1
eabff1
* Wed May 2 2012 Alexander Kurtakov <akurtako@redhat.com> 4.1.3-3
eabff1
- Do not export org.apache.http.param in osgi.
eabff1
eabff1
* Mon Mar 26 2012 Alexander Kurtakov <akurtako@redhat.com> 4.1.3-2
eabff1
- Do not export * but only org.apache.http.* .
eabff1
- Do not generate uses clauses in the manifest.
eabff1
eabff1
* Thu Mar  1 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> 4.1.3-1
eabff1
- Update to latest upstream bugfix
eabff1
eabff1
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.2-2
eabff1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
eabff1
eabff1
* Tue Aug 16 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.1.2-1
eabff1
- Update to latest upstream (4.1.2)
eabff1
- Minor tweaks according to guidelines
eabff1
eabff1
* Fri Jul 15 2011 Severin Gehwolf <sgehwolf@redhat.com> 4.1.1-3
eabff1
- Fix for RH Bz#718830. Add instructions so as to not
eabff1
  Import-Package optional dependencies.
eabff1
eabff1
* Thu Apr 7 2011 Severin Gehwolf <sgehwolf@redhat.com> 4.1.1-2
eabff1
- Add BR/R apache-commons-codec, since httpcomponents-client's
eabff1
  MANIFEST.MF has an Import-Package: org.apache.commons.codec
eabff1
  header.
eabff1
eabff1
* Tue Mar 29 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.1.1-1
eabff1
- New upstream bugfix version (4.1.1)
eabff1
eabff1
* Tue Mar 15 2011 Severin Gehwolf <sgehwolf@redhat.com> 4.1-6
eabff1
- Explicitly set PrivatePackage to the empty set, so as to
eabff1
  export all packages.
eabff1
eabff1
* Thu Mar 10 2011 Alexander Kurtakov <akurtako@redhat.com> 4.1-5
eabff1
- OSGi export more packages.
eabff1
eabff1
* Fri Feb 25 2011 Alexander Kurtakov <akurtako@redhat.com> 4.1-4
eabff1
- Build httpmime module.
eabff1
eabff1
* Fri Feb 18 2011 Alexander Kurtakov <akurtako@redhat.com> 4.1-3
eabff1
- Don't use basename as an identifier.
eabff1
eabff1
* Fri Feb 18 2011 Alexander Kurtakov <akurtako@redhat.com> 4.1-2
eabff1
- OSGify properly.
eabff1
- Install into %%{_javadir}/%%{basename}.
eabff1
eabff1
* Thu Feb 17 2011 Alexander Kurtakov <akurtako@redhat.com> 4.1-1
eabff1
- Update to latest upstream version.
eabff1
eabff1
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.3-3
eabff1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
eabff1
eabff1
* Wed Dec 22 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.0.3-2
eabff1
- Added license to javadoc subpackage
eabff1
eabff1
* Mon Dec 20 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.0.3-1
eabff1
- Initial version