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