495738
%global base_name httpcomponents
495738
495738
Name:              httpcomponents-core
495738
Summary:           Set of low level Java HTTP transport components for HTTP services
495738
Version:           4.2.4
495738
Release:           6%{?dist}
495738
Group:             Development/Libraries
495738
# The project is licensed under ASL 2.0, but it contains annotations
495738
# in the package org.apache.http.annotation which are derived
495738
# from JCIP-ANNOTATIONS project (CC-BY licensed)
495738
License:           ASL 2.0 and CC-BY
495738
URL:               http://hc.apache.org/
495738
Source0:           http://www.apache.org/dist/httpcomponents/httpcore/source/httpcomponents-core-%{version}-src.tar.gz
495738
BuildArch:         noarch
495738
495738
BuildRequires:     maven-local
495738
BuildRequires:     httpcomponents-project
495738
BuildRequires:     java >= 1:1.6.0
495738
BuildRequires:     jpackage-utils
495738
BuildRequires:     maven-surefire-provider-junit4
495738
BuildRequires:     apache-commons-logging
495738
BuildRequires:     junit
495738
%if 0%{?rhel} <= 0
495738
BuildRequires:     mockito
495738
%endif
495738
495738
%description
495738
HttpCore is a set of low level HTTP transport components that can be
495738
used to build custom client and server side HTTP services with a
495738
minimal footprint. HttpCore supports two I/O models: blocking I/O
495738
model based on the classic Java I/O and non-blocking, event driven I/O
495738
model based on Java NIO.
495738
495738
The blocking I/O model may be more appropriate for data intensive, low
495738
latency scenarios, whereas the non-blocking model may be more
495738
appropriate for high latency scenarios where raw data throughput is
495738
less important than the ability to handle thousands of simultaneous
495738
HTTP connections in a resource efficient manner.
495738
495738
%package        javadoc
495738
Summary:        API documentation for %{name}
495738
Group:          Documentation
495738
495738
%description    javadoc
495738
%{summary}.
495738
495738
495738
%prep
495738
%setup -q
495738
495738
%pom_remove_plugin :maven-clover2-plugin httpcore-nio
495738
%pom_remove_plugin :maven-clover2-plugin httpcore
495738
%pom_remove_plugin :maven-notice-plugin
495738
%pom_remove_plugin :docbkx-maven-plugin
495738
495738
# we don't need these artifacts right now
495738
%pom_disable_module httpcore-osgi
495738
%pom_disable_module httpcore-ab
495738
495738
# OSGify modules
495738
for module in httpcore httpcore-nio; do
495738
    %pom_xpath_remove "pom:project/pom:packaging" $module
495738
    %pom_xpath_inject "pom:project" "<packaging>bundle</packaging>" $module
495738
    %pom_xpath_inject "pom:build/pom:plugins" "
495738
        <plugin>
495738
          <groupId>org.apache.felix</groupId>
495738
          <artifactId>maven-bundle-plugin</artifactId>
495738
          <extensions>true</extensions>
495738
          <configuration>
495738
            <instructions>
495738
              <Export-Package>*</Export-Package>
495738
              <Private-Package></Private-Package>
495738
              <_nouses>true</_nouses>
495738
            </instructions>
495738
          </configuration>
495738
        </plugin>" $module
495738
done
495738
495738
# install JARs to httpcomponents/ for compatibility reasons
495738
# several other packages expect to find the JARs there
495738
%mvn_file ":{*}" httpcomponents/@1
495738
495738
%build
495738
%mvn_build \
495738
%if 0%{?rhel}
495738
    -f
495738
%endif
495738
495738
495738
%install
495738
%mvn_install
495738
495738
%files -f .mfiles
495738
%dir %{_javadir}/httpcomponents
495738
%doc LICENSE.txt NOTICE.txt
495738
%doc README.txt RELEASE_NOTES.txt
495738
495738
%files javadoc -f .mfiles-javadoc
495738
%doc LICENSE.txt NOTICE.txt
495738
495738
%changelog
495738
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 4.2.4-6
495738
- Mass rebuild 2013-12-27
495738
495738
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.4-5
495738
- Rebuild to regenerate API documentation
495738
- Resolves: CVE-2013-1571
495738
495738
* Mon Jun 10 2013 Michal Srb <msrb@redhat.com> - 4.2.4-4
495738
- Fix license tag (CC-BY added)
495738
495738
* Fri May 17 2013 Alexander Kurtakov <akurtako@redhat.com> 4.2.4-3
495738
- Fix bundle plugin configuration to produce sane manifest.
495738
- Do not duplicate javadoc files list.
495738
495738
* Mon Mar 25 2013 Michal Srb <msrb@redhat.com> - 4.2.4-2
495738
- Build with xmvn
495738
495738
* Mon Mar 25 2013 Michal Srb <msrb@redhat.com> - 4.2.4-1
495738
- Update to upstream version 4.2.4
495738
495738
* Mon Feb 25 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.3-3
495738
- Add missing BR: maven-local
495738
495738
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.3-2
495738
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
495738
495738
* Mon Dec  3 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.3-1
495738
- Update to upstream version 4.2.3
495738
495738
* Fri Oct  5 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.2-1
495738
- Update to upstream version 4.2.2
495738
495738
* Mon Aug 27 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.2.1-3
495738
- Remove mockito from Requires (not needed really)
495738
- BR on mockito is now conditional on Fedora
495738
495738
* Fri Jul 27 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.1-2
495738
- Install NOTICE.txt file
495738
- Fix javadir directory ownership
495738
- Preserve timestamps
495738
495738
* Mon Jul 23 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.1-1
495738
- Update to upstream version 4.2.1
495738
- Convert patches to POM macros
495738
495738
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.4-2
495738
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
495738
495738
* Fri Mar 23 2012 Krzysztof Daniel <kdaniel@redhat.com> 4.1.4-1
495738
- Update to latest upstream (4.1.4)
495738
495738
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.3-2
495738
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
495738
495738
* Tue Aug 16 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.1.3-1
495738
- Update to latest upstream (4.1.3)
495738
495738
* Tue Jul 26 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.1.2-1
495738
- Update to latest upstream (4.1.2)
495738
495738
* Mon Jul  4 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.1.1-2
495738
- Fix forgotten add_to_maven_depmap
495738
495738
* Fri Jul  1 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.1.1-1
495738
- Update to latest upstream (4.1.1)
495738
- Use new maven macros
495738
- Tweaks according to new guidelines
495738
- Enable tests again (seem to work OK even in koji now)
495738
495738
* Tue Mar 15 2011 Severin Gehwolf <sgehwolf@redhat.com> 4.1-6
495738
- Explicitly set PrivatePackage to the empty set, so as to
495738
  export all packages.
495738
495738
* Fri Mar 11 2011 Alexander Kurtakov <akurtako@redhat.com> 4.1-5
495738
- Bump release to fix my mistake with the release.
495738
495738
* Thu Mar 10 2011 Alexander Kurtakov <akurtako@redhat.com> 4.1-3
495738
- Export all packages.
495738
495738
* Fri Feb 18 2011 Alexander Kurtakov <akurtako@redhat.com> 4.1-2
495738
- Don't use basename it's part of coreutils.
495738
495738
* Fri Feb 18 2011 Alexander Kurtakov <akurtako@redhat.com> 4.1-4
495738
- Install into %{_javadir}/httpcomponents. We will use it for client libs too.
495738
- Proper osgi info.
495738
495738
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1-3
495738
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
495738
495738
* Wed Dec 22 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.1-2
495738
- Added license to javadoc subpackage
495738
495738
* Fri Dec 17 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.1-1
495738
- Initial package