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