a0eba7
%bcond_with bootstrap
a0eba7
a0eba7
Name:           httpcomponents-core
a0eba7
Summary:        Set of low level Java HTTP transport components for HTTP services
a0eba7
Version:        4.4.13
a0eba7
Release:        7%{?dist}
a0eba7
License:        ASL 2.0
a0eba7
URL:            http://hc.apache.org/
a0eba7
Source0:        https://www.apache.org/dist/httpcomponents/httpcore/source/httpcomponents-core-%{version}-src.tar.gz
a0eba7
Patch0:         0001-Port-to-mockito-2.patch
a0eba7
a0eba7
BuildArch:      noarch
a0eba7
ExclusiveArch:  %{java_arches} noarch
a0eba7
a0eba7
%if %{with bootstrap}
a0eba7
BuildRequires:  javapackages-bootstrap-openjdk8
a0eba7
%else
a0eba7
BuildRequires:  maven-local-openjdk8
a0eba7
BuildRequires:  mvn(commons-logging:commons-logging)
a0eba7
BuildRequires:  mvn(junit:junit)
a0eba7
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
a0eba7
BuildRequires:  mvn(org.apache.httpcomponents:httpcomponents-parent:pom:)
a0eba7
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
a0eba7
BuildRequires:  mvn(org.mockito:mockito-core)
a0eba7
%endif
a0eba7
a0eba7
%description
a0eba7
HttpCore is a set of low level HTTP transport components that can be
a0eba7
used to build custom client and server side HTTP services with a
a0eba7
minimal footprint. HttpCore supports two I/O models: blocking I/O
a0eba7
model based on the classic Java I/O and non-blocking, event driven I/O
a0eba7
model based on Java NIO.
a0eba7
a0eba7
The blocking I/O model may be more appropriate for data intensive, low
a0eba7
latency scenarios, whereas the non-blocking model may be more
a0eba7
appropriate for high latency scenarios where raw data throughput is
a0eba7
less important than the ability to handle thousands of simultaneous
a0eba7
HTTP connections in a resource efficient manner.
a0eba7
a0eba7
%{?javadoc_package}
a0eba7
a0eba7
%prep
a0eba7
%setup -q
a0eba7
%patch0 -p1
a0eba7
a0eba7
# Random test failures on ARM -- 100 ms sleep is not eneough on this
a0eba7
# very performant arch, lets make it 2 s
a0eba7
sed -i '/Thread.sleep/s/100/2000/' httpcore-nio/src/test/java/org/apache/http/nio/integration/TestHttpAsyncHandlers.java
a0eba7
a0eba7
%pom_remove_plugin :maven-checkstyle-plugin
a0eba7
%pom_remove_plugin :apache-rat-plugin
a0eba7
%pom_remove_plugin :maven-source-plugin
a0eba7
%pom_remove_plugin :maven-javadoc-plugin
a0eba7
a0eba7
# We don't have conscrypt for testing
a0eba7
%pom_remove_dep :conscrypt-openjdk-uber httpcore-nio
a0eba7
rm httpcore-nio/src/test/java/org/apache/http/nio/integration/TestJSSEProviderIntegration.java
a0eba7
a0eba7
# we don't need these artifacts right now
a0eba7
%pom_disable_module httpcore-osgi
a0eba7
%pom_disable_module httpcore-ab
a0eba7
a0eba7
# OSGify modules
a0eba7
for module in httpcore httpcore-nio; do
a0eba7
    %pom_xpath_remove "pom:project/pom:packaging" $module
a0eba7
    %pom_xpath_inject "pom:project" "<packaging>bundle</packaging>" $module
a0eba7
    %pom_remove_plugin :maven-jar-plugin $module
a0eba7
    %pom_xpath_inject "pom:build/pom:plugins" "
a0eba7
        <plugin>
a0eba7
          <groupId>org.apache.felix</groupId>
a0eba7
          <artifactId>maven-bundle-plugin</artifactId>
a0eba7
          <extensions>true</extensions>
a0eba7
          <configuration>
a0eba7
            <instructions>
a0eba7
              <Export-Package>*</Export-Package>
a0eba7
              <Private-Package></Private-Package>
a0eba7
              <Automatic-Module-Name>org.apache.httpcomponents.$module</Automatic-Module-Name>
a0eba7
              <_nouses>true</_nouses>
a0eba7
            </instructions>
a0eba7
          </configuration>
a0eba7
        </plugin>" $module
a0eba7
done
a0eba7
a0eba7
# install JARs to httpcomponents/ for compatibility reasons
a0eba7
# several other packages expect to find the JARs there
a0eba7
%mvn_file ":{*}" httpcomponents/@1
a0eba7
a0eba7
%build
a0eba7
%mvn_build
a0eba7
a0eba7
%install
a0eba7
%mvn_install
a0eba7
a0eba7
%files -f .mfiles
a0eba7
%license LICENSE.txt NOTICE.txt
a0eba7
%doc README.txt RELEASE_NOTES.txt
a0eba7
a0eba7
%changelog
a0eba7
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.13-7
a0eba7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
a0eba7
a0eba7
* Sat Feb 05 2022 Jiri Vanek <jvanek@redhat.com> - 4.4.13-6
a0eba7
- Rebuilt for java-17-openjdk as system jdk
a0eba7
a0eba7
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.13-5
a0eba7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
a0eba7
a0eba7
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.13-4
a0eba7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
a0eba7
a0eba7
* Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.4.13-3
a0eba7
- Bootstrap build
a0eba7
- Non-bootstrap build
a0eba7
a0eba7
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.12-5
a0eba7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
a0eba7
a0eba7
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.12-4
a0eba7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
a0eba7
a0eba7
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 4.4.12-3
a0eba7
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
a0eba7
a0eba7
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.12-2
a0eba7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
a0eba7
a0eba7
* Sat Jan 25 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.4.13-2
a0eba7
- Build with OpenJDK 8
a0eba7
a0eba7
* Wed Jan 22 2020 Marian Koncek <mkoncek@redhat.com> - 4.4.13-1
a0eba7
- Update to upstream version 4.4.13
a0eba7
a0eba7
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.4.12-2
a0eba7
- Mass rebuild for javapackages-tools 201902
a0eba7
a0eba7
* Mon Sep 16 2019 Marian Koncek <mkoncek@redhat.com> - 4.4.12-1
a0eba7
- Update to upstream version 4.4.12
a0eba7
a0eba7
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.4.11-2
a0eba7
- Mass rebuild for javapackages-tools 201901
a0eba7
a0eba7
* Mon May 13 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.4.11-1
a0eba7
- Update to upstream version 4.4.11
a0eba7
a0eba7
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.10-5
a0eba7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
a0eba7
a0eba7
* Fri Dec 07 2018 Mat Booth <mat.booth@redhat.com> - 4.4.10-4
a0eba7
- Add patch to allow building with mockito 2
a0eba7
a0eba7
* Mon Jul 23 2018 Michael Simacek <msimacek@redhat.com> - 4.4.10-3
a0eba7
- Fix failing tests
a0eba7
a0eba7
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.10-2
a0eba7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
a0eba7
a0eba7
* Mon Jul 02 2018 Michael Simacek <msimacek@redhat.com> - 4.4.10-1
a0eba7
- Update to upstream version 4.4.10
a0eba7
a0eba7
* Mon Mar 19 2018 Michael Simacek <msimacek@redhat.com> - 4.4.9-4
a0eba7
- Fix FTBFS (weak encryption in tests)
a0eba7
a0eba7
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.4.9-3
a0eba7
- Escape macros in %%changelog
a0eba7
a0eba7
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.9-2
a0eba7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a0eba7
a0eba7
* Tue Jan 16 2018 Michael Simacek <msimacek@redhat.com> - 4.4.9-1
a0eba7
- Update to upstream version 4.4.9
a0eba7
a0eba7
* Sun Oct 22 2017 Michael Simacek <msimacek@redhat.com> - 4.4.8-1
a0eba7
- Update to upstream version 4.4.8
a0eba7
a0eba7
* Tue Sep 19 2017 Michael Simacek <msimacek@redhat.com> - 4.4.7-1
a0eba7
- Update to upstream version 4.4.7
a0eba7
a0eba7
* Fri Sep 15 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.4.6-5
a0eba7
- Try to workaround test failures on ARM
a0eba7
a0eba7
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.6-4
a0eba7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a0eba7
a0eba7
* Thu Feb 23 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.4.6-3
a0eba7
- Remove unneeded maven-javadoc-plugin invocation
a0eba7
a0eba7
* Tue Feb 07 2017 Michael Simacek <msimacek@redhat.com> - 4.4.6-2
a0eba7
- Remove useless plugins
a0eba7
a0eba7
* Thu Jan 12 2017 Michael Simacek <msimacek@redhat.com> - 4.4.6-1
a0eba7
- Update to upstream version 4.4.6
a0eba7
a0eba7
* Fri Jun 24 2016 Michael Simacek <msimacek@redhat.com> - 4.4.5-2
a0eba7
- Change license to just ASL 2.0
a0eba7
a0eba7
* Thu Jun 23 2016 Michael Simacek <msimacek@redhat.com> - 4.4.5-1
a0eba7
- Update to upstream version 4.4.5
a0eba7
a0eba7
* Wed Jun 15 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.4.4-3
a0eba7
- Regenerate build-requires
a0eba7
a0eba7
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.4-2
a0eba7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
a0eba7
a0eba7
* Mon Nov  2 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.4.4-1
a0eba7
- Update to upstream version 4.4.4
a0eba7
a0eba7
* Wed Sep  9 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.4.3-1
a0eba7
- Update to upstream version 4.4.3
a0eba7
a0eba7
* Mon Sep 07 2015 Michael Simacek <msimacek@redhat.com> - 4.4.2-1
a0eba7
- Update to upstream version 4.4.2
a0eba7
a0eba7
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.4.1-2
a0eba7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
a0eba7
a0eba7
* Thu Mar 19 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.4.1-1
a0eba7
- Update to upstream version 4.4.1
a0eba7
a0eba7
* Mon Jan 19 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.4-1
a0eba7
- Update to upstream version 4.4
a0eba7
a0eba7
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.2-3
a0eba7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a0eba7
a0eba7
* Mon May 26 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.3.2-2
a0eba7
- Remove BuildRequires on maven-surefire-provider-junit4
a0eba7
a0eba7
* Mon May 12 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.3.2-1
a0eba7
- Update to upstream version 4.3.2
a0eba7
a0eba7
* Tue Sep 03 2013 Michal Srb <msrb@redhat.com> - 4.3-1
a0eba7
- Update to upstream version 4.3
a0eba7
a0eba7
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.4-5
a0eba7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
a0eba7
a0eba7
* Mon Jun 10 2013 Michal Srb <msrb@redhat.com> - 4.2.4-4
a0eba7
- Fix license tag (CC-BY added)
a0eba7
a0eba7
* Fri May 17 2013 Alexander Kurtakov <akurtako@redhat.com> 4.2.4-3
a0eba7
- Fix bundle plugin configuration to produce sane manifest.
a0eba7
- Do not duplicate javadoc files list.
a0eba7
a0eba7
* Mon Mar 25 2013 Michal Srb <msrb@redhat.com> - 4.2.4-2
a0eba7
- Build with xmvn
a0eba7
a0eba7
* Mon Mar 25 2013 Michal Srb <msrb@redhat.com> - 4.2.4-1
a0eba7
- Update to upstream version 4.2.4
a0eba7
a0eba7
* Mon Feb 25 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.3-3
a0eba7
- Add missing BR: maven-local
a0eba7
a0eba7
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.3-2
a0eba7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a0eba7
a0eba7
* Mon Dec  3 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.3-1
a0eba7
- Update to upstream version 4.2.3
a0eba7
a0eba7
* Fri Oct  5 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.2-1
a0eba7
- Update to upstream version 4.2.2
a0eba7
a0eba7
* Mon Aug 27 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.2.1-3
a0eba7
- Remove mockito from Requires (not needed really)
a0eba7
- BR on mockito is now conditional on Fedora
a0eba7
a0eba7
* Fri Jul 27 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.1-2
a0eba7
- Install NOTICE.txt file
a0eba7
- Fix javadir directory ownership
a0eba7
- Preserve timestamps
a0eba7
a0eba7
* Mon Jul 23 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.1-1
a0eba7
- Update to upstream version 4.2.1
a0eba7
- Convert patches to POM macros
a0eba7
a0eba7
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.4-2
a0eba7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a0eba7
a0eba7
* Fri Mar 23 2012 Krzysztof Daniel <kdaniel@redhat.com> 4.1.4-1
a0eba7
- Update to latest upstream (4.1.4)
a0eba7
a0eba7
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.3-2
a0eba7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a0eba7
a0eba7
* Tue Aug 16 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.1.3-1
a0eba7
- Update to latest upstream (4.1.3)
a0eba7
a0eba7
* Tue Jul 26 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.1.2-1
a0eba7
- Update to latest upstream (4.1.2)
a0eba7
a0eba7
* Mon Jul  4 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.1.1-2
a0eba7
- Fix forgotten add_to_maven_depmap
a0eba7
a0eba7
* Fri Jul  1 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.1.1-1
a0eba7
- Update to latest upstream (4.1.1)
a0eba7
- Use new maven macros
a0eba7
- Tweaks according to new guidelines
a0eba7
- Enable tests again (seem to work OK even in koji now)
a0eba7
a0eba7
* Tue Mar 15 2011 Severin Gehwolf <sgehwolf@redhat.com> 4.1-6
a0eba7
- Explicitly set PrivatePackage to the empty set, so as to
a0eba7
  export all packages.
a0eba7
a0eba7
* Fri Mar 11 2011 Alexander Kurtakov <akurtako@redhat.com> 4.1-5
a0eba7
- Bump release to fix my mistake with the release.
a0eba7
a0eba7
* Thu Mar 10 2011 Alexander Kurtakov <akurtako@redhat.com> 4.1-3
a0eba7
- Export all packages.
a0eba7
a0eba7
* Fri Feb 18 2011 Alexander Kurtakov <akurtako@redhat.com> 4.1-2
a0eba7
- Don't use basename it's part of coreutils.
a0eba7
a0eba7
* Fri Feb 18 2011 Alexander Kurtakov <akurtako@redhat.com> 4.1-4
a0eba7
- Install into %%{_javadir}/httpcomponents. We will use it for client libs too.
a0eba7
- Proper osgi info.
a0eba7
a0eba7
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1-3
a0eba7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a0eba7
a0eba7
* Wed Dec 22 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.1-2
a0eba7
- Added license to javadoc subpackage
a0eba7
a0eba7
* Fri Dec 17 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.1-1
a0eba7
- Initial package