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