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