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