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