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