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