Blame SPECS/httpcomponents-client.spec

2720ba
%{?scl:%scl_package httpcomponents-client}
2720ba
%{!?scl:%global pkg_name %{name}}
2720ba
2720ba
%bcond_without     memcached
2720ba
%bcond_without     ehcache
2720ba
2720ba
Name:              %{?scl_prefix}httpcomponents-client
2720ba
Summary:           HTTP agent implementation based on httpcomponents HttpCore
2720ba
Version:           4.5.3
2720ba
Release:           3.2%{?dist}
2720ba
License:           ASL 2.0
2720ba
URL:               http://hc.apache.org/
2720ba
Source0:           http://www.apache.org/dist/httpcomponents/httpclient/source/%{pkg_name}-%{version}-src.tar.gz
2720ba
2720ba
Patch0:            0001-Use-system-copy-of-effective_tld_names.dat.patch
2720ba
2720ba
BuildArch:         noarch
2720ba
2720ba
BuildRequires:     %{?scl_prefix}maven-local
2720ba
BuildRequires:     %{?scl_prefix}mvn(commons-codec:commons-codec)
2720ba
BuildRequires:     %{?scl_prefix}mvn(commons-logging:commons-logging)
2720ba
BuildRequires:     %{?scl_prefix}mvn(junit:junit)
2720ba
%if %{with ehcache}
2720ba
BuildRequires:     mvn(net.sf.ehcache:ehcache-core)
2720ba
%endif
2720ba
%if %{with memcached}
2720ba
BuildRequires:     mvn(net.spy:spymemcached)
2720ba
%endif
2720ba
BuildRequires:     %{?scl_prefix}mvn(org.apache.felix:maven-bundle-plugin)
2720ba
BuildRequires:     %{?scl_prefix}mvn(org.apache.httpcomponents:httpcore)
2720ba
BuildRequires:     %{?scl_prefix}mvn(org.apache.httpcomponents:project:pom:)
2720ba
BuildRequires:     %{?scl_prefix}mvn(org.codehaus.mojo:build-helper-maven-plugin)
2720ba
BuildRequires:     %{?scl_prefix}mvn(org.easymock:easymock)
2720ba
BuildRequires:     %{?scl_prefix}mvn(org.mockito:mockito-core)
2720ba
2720ba
BuildRequires:     %{?scl_prefix}publicsuffix-list
2720ba
Requires:          %{?scl_prefix}publicsuffix-list
2720ba
2720ba
2720ba
%description
2720ba
HttpClient is a HTTP/1.1 compliant HTTP agent implementation based on
2720ba
httpcomponents HttpCore. It also provides reusable components for
2720ba
client-side authentication, HTTP state management, and HTTP connection
2720ba
management. HttpComponents Client is a successor of and replacement
2720ba
for Commons HttpClient 3.x. Users of Commons HttpClient are strongly
2720ba
encouraged to upgrade.
2720ba
2720ba
%package        cache
2720ba
Summary:        Cache module for %{pkg_name}
2720ba
2720ba
%description    cache
2720ba
This package provides client side caching for %{pkg_name}.
2720ba
2720ba
%package        javadoc
2720ba
Summary:        API documentation for %{pkg_name}
2720ba
2720ba
%description    javadoc
2720ba
%{summary}.
2720ba
2720ba
%prep
2720ba
%setup -q -n %{pkg_name}-%{version}
2720ba
%patch0 -p1
2720ba
2720ba
%mvn_package :httpclient-cache cache
2720ba
2720ba
# Remove optional build deps not available in Fedora
2720ba
%pom_disable_module httpclient-osgi
2720ba
%pom_disable_module httpclient-win
2720ba
%pom_remove_plugin :docbkx-maven-plugin
2720ba
%pom_remove_plugin :clirr-maven-plugin
2720ba
%pom_remove_plugin :maven-checkstyle-plugin
2720ba
%pom_remove_plugin :apache-rat-plugin
2720ba
%pom_remove_plugin :maven-source-plugin
2720ba
%pom_remove_plugin :maven-javadoc-plugin
2720ba
2720ba
# Don't compile/run httpclient-cache tests - they are incompatible with EasyMock 3.3
2720ba
%pom_remove_plugin org.apache.maven.plugins:maven-jar-plugin httpclient-cache
2720ba
%pom_remove_dep org.easymock:easymockclassextension
2720ba
for dep in org.easymock:easymockclassextension org.slf4j:slf4j-jcl; do
2720ba
    %pom_remove_dep $dep httpclient-cache
2720ba
done
2720ba
rm -rf httpclient-cache/src/test
2720ba
2720ba
%pom_remove_plugin :download-maven-plugin httpclient
2720ba
2720ba
# Add proper Apache felix bundle plugin instructions
2720ba
# so that we get a reasonable OSGi manifest.
2720ba
for module in httpclient httpmime httpclient-cache fluent-hc; do
2720ba
    %pom_xpath_remove "pom:project/pom:packaging" $module
2720ba
    %pom_xpath_inject "pom:project" "<packaging>bundle</packaging>" $module
2720ba
done
2720ba
2720ba
# Make fluent-hc into bundle
2720ba
%pom_xpath_inject pom:build "
2720ba
<plugins>
2720ba
    <plugin>
2720ba
      <groupId>org.apache.felix</groupId>
2720ba
      <artifactId>maven-bundle-plugin</artifactId>
2720ba
      <extensions>true</extensions>
2720ba
    </plugin>
2720ba
</plugins>" fluent-hc
2720ba
2720ba
# Make httpmime into bundle
2720ba
%pom_xpath_inject pom:build/pom:plugins "
2720ba
    <plugin>
2720ba
      <groupId>org.apache.felix</groupId>
2720ba
      <artifactId>maven-bundle-plugin</artifactId>
2720ba
      <extensions>true</extensions>
2720ba
    </plugin>" httpmime
2720ba
2720ba
# Make httpclient into bundle
2720ba
%pom_xpath_inject pom:reporting/pom:plugins "
2720ba
    <plugin>
2720ba
      <groupId>org.apache.felix</groupId>
2720ba
      <artifactId>maven-bundle-plugin</artifactId>
2720ba
      <configuration>
2720ba
        <instructions>
2720ba
          <Export-Package>*</Export-Package>
2720ba
          <Private-Package></Private-Package>
2720ba
          <Import-Package>!org.apache.avalon.framework.logger,!org.apache.log,!org.apache.log4j,*</Import-Package>
2720ba
        </instructions>
2720ba
      </configuration>
2720ba
    </plugin>" httpclient
2720ba
%pom_xpath_inject pom:build/pom:plugins "
2720ba
    <plugin>
2720ba
      <groupId>org.apache.felix</groupId>
2720ba
      <artifactId>maven-bundle-plugin</artifactId>
2720ba
      <extensions>true</extensions>
2720ba
      <configuration>
2720ba
        <instructions>
2720ba
          <Export-Package>org.apache.http.*,!org.apache.http.param</Export-Package>
2720ba
          <Private-Package></Private-Package>
2720ba
          <_nouses>true</_nouses>
2720ba
          <Import-Package>!org.apache.avalon.framework.logger,!org.apache.log,!org.apache.log4j,*</Import-Package>
2720ba
        </instructions>
2720ba
        <excludeDependencies>true</excludeDependencies>
2720ba
      </configuration>
2720ba
    </plugin>" httpclient
2720ba
2720ba
# Make httpclient-cache into bundle
2720ba
%pom_xpath_inject pom:build/pom:plugins "
2720ba
    <plugin>
2720ba
      <groupId>org.apache.felix</groupId>
2720ba
      <artifactId>maven-bundle-plugin</artifactId>
2720ba
      <extensions>true</extensions>
2720ba
      <configuration>
2720ba
        <instructions>
2720ba
          <Export-Package>*</Export-Package>
2720ba
          <Import-Package>net.sf.ehcache;resolution:=optional,net.spy.memcached;resolution:=optional,*</Import-Package>
2720ba
          <Private-Package></Private-Package>
2720ba
          <_nouses>true</_nouses>
2720ba
        </instructions>
2720ba
        <excludeDependencies>true</excludeDependencies>
2720ba
      </configuration>
2720ba
    </plugin>" httpclient-cache
2720ba
2720ba
# requires network
2720ba
rm httpclient/src/test/java/org/apache/http/client/config/TestRequestConfig.java
2720ba
2720ba
%if %{without memcached}
2720ba
rm -r httpclient-cache/src/*/java/org/apache/http/impl/client/cache/memcached
2720ba
%pom_remove_dep :spymemcached httpclient-cache
2720ba
%endif
2720ba
%if %{without ehcache}
2720ba
rm -r httpclient-cache/src/*/java/org/apache/http/impl/client/cache/ehcache
2720ba
%pom_remove_dep :ehcache-core httpclient-cache
2720ba
%endif
2720ba
2720ba
%build
2720ba
%mvn_file ":{*}" httpcomponents/@1
2720ba
2720ba
%mvn_build
2720ba
2720ba
%install
2720ba
%mvn_install
2720ba
2720ba
%files -f .mfiles
2720ba
%doc LICENSE.txt NOTICE.txt README.txt RELEASE_NOTES.txt
2720ba
2720ba
%files cache -f .mfiles-cache
2720ba
2720ba
%files javadoc -f .mfiles-javadoc
2720ba
%doc LICENSE.txt NOTICE.txt
2720ba
2720ba
%changelog
2720ba
* Thu Jun 22 2017 Michael Simacek <msimacek@redhat.com> - 4.5.3-3.2
2720ba
- Mass rebuild 2017-06-22
2720ba
2720ba
* Wed Jun 21 2017 Java Maintainers <java-maint@redhat.com> - 4.5.3-3.1
2720ba
- Automated package import and SCL-ization
2720ba
2720ba
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.3-3
2720ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2720ba
2720ba
* Thu Feb 02 2017 Michael Simacek <msimacek@redhat.com> - 4.5.3-2
2720ba
- Add conditionals for memcached and ehcache
2720ba
2720ba
* Thu Jan 26 2017 Michael Simacek <msimacek@redhat.com> - 4.5.3-1
2720ba
- Update to upstream version 4.5.3
2720ba
2720ba
* Fri Jun 24 2016 Michael Simacek <msimacek@redhat.com> - 4.5.2-4
2720ba
- Fix build with httpcomponents-core-4.4.5
2720ba
2720ba
* Wed Jun 15 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.5.2-3
2720ba
- Add missing build-requires
2720ba
2720ba
* Wed Mar 16 2016 Sopot Cela <scela@redhat.com> - 4.5.2-2
2720ba
- Make the fluent API into a bundle
2720ba
2720ba
* Mon Feb 29 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.5.2-1
2720ba
- Update to upstream version 4.5.2
2720ba
2720ba
* Wed Feb 10 2016 Mat Booth <mat.booth@redhat.com> - 4.5.1-4
2720ba
- Enable the fluent API module
2720ba
2720ba
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.1-3
2720ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2720ba
2720ba
* Mon Jan 25 2016 Mat Booth <mat.booth@redhat.com> - 4.5.1-2
2720ba
- Make client cache jar into a OSGi bundle
2720ba
2720ba
* Wed Sep 16 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.5.1-1
2720ba
- Update to upstream version 4.5.1
2720ba
2720ba
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.5-2
2720ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2720ba
2720ba
* Thu Jun 04 2015 Michael Simacek <msimacek@redhat.com> - 4.5-1
2720ba
- Update to upstream version 4.5
2720ba
2720ba
* Tue Mar 31 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.4.1-1
2720ba
- Update to upstream version 4.4.1
2720ba
2720ba
* Wed Feb 18 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.4-1
2720ba
- Update to upstream version 4.4
2720ba
2720ba
* Thu Jan 22 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.4-0.3.beta1
2720ba
- Split httpclient-cache into subpackage
2720ba
2720ba
* Tue Jan 20 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.4-0.2.beta1
2720ba
- Unbundle publicsuffix-list
2720ba
- Resolves: rhbz#1183782
2720ba
2720ba
* Mon Jan 19 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.4-0.1.beta1
2720ba
- Update to upstream version 4.4 beta1
2720ba
- Remove tests subpackage
2720ba
2720ba
* Fri Jan  9 2015 Richard Fearn <richardfearn@gmail.com> - 4.3.5-3
2720ba
- Also build HttpClient Cache (bug #1180696)
2720ba
2720ba
* Tue Dec 02 2014 Michael Simacek <msimacek@redhat.com> - 4.3.5-2
2720ba
- Build and install tests artifact (needed by copr-java)
2720ba
2720ba
* Tue Aug  5 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.3.5-1
2720ba
- Update to upstream version 4.3.5
2720ba
2720ba
* Mon Aug  4 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.3.4-2
2720ba
- Fix build-requires on httpcomponents-project
2720ba
2720ba
* Fri Jun  6 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.3.4-1
2720ba
- Update to upstream version 4.3.4
2720ba
2720ba
* Fri Feb 28 2014 Michael Simacek <msimacek@redhat.com> - 4.3.3-1
2720ba
- Update to upstream version 4.3.3
2720ba
2720ba
* Mon Jan 20 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.3.2-1
2720ba
- Update to upstream version 4.3.2
2720ba
2720ba
* Mon Jan 06 2014 Michael Simacek <msimacek@redhat.com> - 4.3.1-1
2720ba
- Update to upstream version 4.3.1
2720ba
- Temporarily disable tests due to bug in mockito
2720ba
2720ba
* Thu Oct  3 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.3-2
2720ba
- Don't try to remove maven-notice-plugin from POM
2720ba
2720ba
* Fri Sep 13 2013 Michal Srb <msrb@redhat.com> - 4.3-1
2720ba
- Update to upstream version 4.3
2720ba
- Drop group tag
2720ba
2720ba
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.5-3
2720ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2720ba
2720ba
* Mon Jun 10 2013 Michal Srb <msrb@redhat.com> - 4.2.5-2
2720ba
- Enable tests on Fedora
2720ba
2720ba
* Thu Apr 25 2013 Michal Srb <msrb@redhat.com> - 4.2.5-1
2720ba
- Update to upstream version 4.2.5
2720ba
2720ba
* Thu Apr 11 2013 Michal Srb <msrb@redhat.com> - 4.2.4-1
2720ba
- Update to upstream version 4.2.4
2720ba
2720ba
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 4.2.3-3
2720ba
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
2720ba
- Replace maven BuildRequires with maven-local
2720ba
2720ba
* Fri Jan 25 2013 Michal Srb <msrb@redhat.com> - 4.2.3-2
2720ba
- Build with xmvn
2720ba
- Disable fluent-hc module
2720ba
2720ba
* Thu Jan 24 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.3-1
2720ba
- Update to upstream version 4.2.3
2720ba
2720ba
* Thu Oct 25 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.2-1
2720ba
- Update to upstream version 4.2.2
2720ba
2720ba
* Wed Aug  1 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.1-3
2720ba
- Fix OSGi manifest in httpmime
2720ba
2720ba
* Fri Jul 27 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.1-2
2720ba
- Install NOTICE.txt file
2720ba
- Fix javadir directory ownership
2720ba
- Fix directory permissions
2720ba
- Preserve timestamps
2720ba
- Replace add_to_maven_depmap with add_maven_depmap
2720ba
2720ba
* Fri Jul 27 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.1-1
2720ba
- Update to upstream version 4.2.1
2720ba
- Convert patches to POM macros
2720ba
2720ba
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.3-4
2720ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2720ba
2720ba
* Wed May 2 2012 Alexander Kurtakov <akurtako@redhat.com> 4.1.3-3
2720ba
- Do not export org.apache.http.param in osgi.
2720ba
2720ba
* Mon Mar 26 2012 Alexander Kurtakov <akurtako@redhat.com> 4.1.3-2
2720ba
- Do not export * but only org.apache.http.* .
2720ba
- Do not generate uses clauses in the manifest.
2720ba
2720ba
* Thu Mar  1 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> 4.1.3-1
2720ba
- Update to latest upstream bugfix
2720ba
2720ba
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.2-2
2720ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2720ba
2720ba
* Tue Aug 16 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.1.2-1
2720ba
- Update to latest upstream (4.1.2)
2720ba
- Minor tweaks according to guidelines
2720ba
2720ba
* Fri Jul 15 2011 Severin Gehwolf <sgehwolf@redhat.com> 4.1.1-3
2720ba
- Fix for RH Bz#718830. Add instructions so as to not
2720ba
  Import-Package optional dependencies.
2720ba
2720ba
* Thu Apr 7 2011 Severin Gehwolf <sgehwolf@redhat.com> 4.1.1-2
2720ba
- Add BR/R apache-commons-codec, since httpcomponents-client's
2720ba
  MANIFEST.MF has an Import-Package: org.apache.commons.codec
2720ba
  header.
2720ba
2720ba
* Tue Mar 29 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.1.1-1
2720ba
- New upstream bugfix version (4.1.1)
2720ba
2720ba
* Tue Mar 15 2011 Severin Gehwolf <sgehwolf@redhat.com> 4.1-6
2720ba
- Explicitly set PrivatePackage to the empty set, so as to
2720ba
  export all packages.
2720ba
2720ba
* Thu Mar 10 2011 Alexander Kurtakov <akurtako@redhat.com> 4.1-5
2720ba
- OSGi export more packages.
2720ba
2720ba
* Fri Feb 25 2011 Alexander Kurtakov <akurtako@redhat.com> 4.1-4
2720ba
- Build httpmime module.
2720ba
2720ba
* Fri Feb 18 2011 Alexander Kurtakov <akurtako@redhat.com> 4.1-3
2720ba
- Don't use basename as an identifier.
2720ba
2720ba
* Fri Feb 18 2011 Alexander Kurtakov <akurtako@redhat.com> 4.1-2
2720ba
- OSGify properly.
2720ba
- Install into %{_javadir}/%{basename}.
2720ba
2720ba
* Thu Feb 17 2011 Alexander Kurtakov <akurtako@redhat.com> 4.1-1
2720ba
- Update to latest upstream version.
2720ba
2720ba
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.3-3
2720ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2720ba
2720ba
* Wed Dec 22 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.0.3-2
2720ba
- Added license to javadoc subpackage
2720ba
2720ba
* Mon Dec 20 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.0.3-1
2720ba
- Initial version