|
|
00cd86 |
%{?scl:%scl_package httpcomponents-core}
|
|
|
00cd86 |
%{!?scl:%global pkg_name %{name}}
|
|
|
00cd86 |
%{!?maven_scl:%global maven_scl_prefix %{nil}}
|
|
|
00cd86 |
|
|
|
00cd86 |
%global base_name httpcomponents
|
|
|
00cd86 |
|
|
|
00cd86 |
Name: %{?scl_prefix}httpcomponents-core
|
|
|
00cd86 |
Summary: Set of low level Java HTTP transport components for HTTP services
|
|
|
00cd86 |
Version: 4.3.2
|
|
|
00cd86 |
Release: 1%{?dist}
|
|
|
00cd86 |
# The project is licensed under ASL 2.0, but it contains annotations
|
|
|
00cd86 |
# in the package org.apache.http.annotation which are derived
|
|
|
00cd86 |
# from JCIP-ANNOTATIONS project (CC-BY licensed)
|
|
|
00cd86 |
License: ASL 2.0 and CC-BY
|
|
|
00cd86 |
URL: http://hc.apache.org/
|
|
|
00cd86 |
Source0: http://www.apache.org/dist/httpcomponents/httpcore/source/httpcomponents-core-%{version}-src.tar.gz
|
|
|
00cd86 |
BuildArch: noarch
|
|
|
00cd86 |
|
|
|
00cd86 |
BuildRequires: %{maven_scl_prefix}maven-local
|
|
|
00cd86 |
BuildRequires: %{maven_scl_prefix}httpcomponents-project
|
|
|
00cd86 |
BuildRequires: java >= 1.6.0
|
|
|
00cd86 |
BuildRequires: jpackage-utils
|
|
|
00cd86 |
BuildRequires: %{maven_scl_prefix}maven-surefire-provider-junit
|
|
|
00cd86 |
BuildRequires: apache-commons-logging
|
|
|
00cd86 |
BuildRequires: %{maven_scl_prefix}junit
|
|
|
00cd86 |
BuildRequires: %{maven_scl_prefix}maven-plugin-build-helper
|
|
|
00cd86 |
%if 0%{?rhel} <= 0
|
|
|
00cd86 |
BuildRequires: mockito
|
|
|
00cd86 |
%endif
|
|
|
00cd86 |
|
|
|
00cd86 |
Requires: java >= 1.6.0
|
|
|
00cd86 |
Requires: jpackage-utils
|
|
|
00cd86 |
%{?scl:Requires: %scl_runtime}
|
|
|
00cd86 |
|
|
|
00cd86 |
%description
|
|
|
00cd86 |
HttpCore is a set of low level HTTP transport components that can be
|
|
|
00cd86 |
used to build custom client and server side HTTP services with a
|
|
|
00cd86 |
minimal footprint. HttpCore supports two I/O models: blocking I/O
|
|
|
00cd86 |
model based on the classic Java I/O and non-blocking, event driven I/O
|
|
|
00cd86 |
model based on Java NIO.
|
|
|
00cd86 |
|
|
|
00cd86 |
The blocking I/O model may be more appropriate for data intensive, low
|
|
|
00cd86 |
latency scenarios, whereas the non-blocking model may be more
|
|
|
00cd86 |
appropriate for high latency scenarios where raw data throughput is
|
|
|
00cd86 |
less important than the ability to handle thousands of simultaneous
|
|
|
00cd86 |
HTTP connections in a resource efficient manner.
|
|
|
00cd86 |
|
|
|
00cd86 |
%package javadoc
|
|
|
00cd86 |
Summary: API documentation for %{pkg_name}
|
|
|
00cd86 |
Group: Documentation
|
|
|
00cd86 |
Requires: jpackage-utils
|
|
|
00cd86 |
|
|
|
00cd86 |
%description javadoc
|
|
|
00cd86 |
%{summary}.
|
|
|
00cd86 |
|
|
|
00cd86 |
|
|
|
00cd86 |
%prep
|
|
|
00cd86 |
%setup -q -n %{pkg_name}-%{version}
|
|
|
00cd86 |
|
|
|
00cd86 |
%pom_remove_plugin :maven-checkstyle-plugin
|
|
|
00cd86 |
|
|
|
00cd86 |
# we don't need these artifacts right now
|
|
|
00cd86 |
%pom_disable_module httpcore-osgi
|
|
|
00cd86 |
%pom_disable_module httpcore-ab
|
|
|
00cd86 |
|
|
|
00cd86 |
%pom_remove_dep :mockito-core httpcore
|
|
|
00cd86 |
|
|
|
00cd86 |
# OSGify modules
|
|
|
00cd86 |
for module in httpcore httpcore-nio; do
|
|
|
00cd86 |
%pom_xpath_remove "pom:project/pom:packaging" $module
|
|
|
00cd86 |
%pom_xpath_inject "pom:project" "<packaging>bundle</packaging>" $module
|
|
|
00cd86 |
%pom_xpath_inject "pom:build/pom:plugins" "
|
|
|
00cd86 |
<plugin>
|
|
|
00cd86 |
<groupId>org.apache.felix</groupId>
|
|
|
00cd86 |
<artifactId>maven-bundle-plugin</artifactId>
|
|
|
00cd86 |
<extensions>true</extensions>
|
|
|
00cd86 |
<configuration>
|
|
|
00cd86 |
<instructions>
|
|
|
00cd86 |
<Export-Package>*</Export-Package>
|
|
|
00cd86 |
<Private-Package></Private-Package>
|
|
|
00cd86 |
<_nouses>true</_nouses>
|
|
|
00cd86 |
</instructions>
|
|
|
00cd86 |
</configuration>
|
|
|
00cd86 |
</plugin>" $module
|
|
|
00cd86 |
done
|
|
|
00cd86 |
|
|
|
00cd86 |
# install JARs to httpcomponents/ for compatibility reasons
|
|
|
00cd86 |
# several other packages expect to find the JARs there
|
|
|
00cd86 |
scl enable %{scl} - <
|
|
|
00cd86 |
%mvn_file ":{*}" httpcomponents/@1
|
|
|
00cd86 |
EOF
|
|
|
00cd86 |
|
|
|
00cd86 |
%build
|
|
|
00cd86 |
scl enable %{scl} - <
|
|
|
00cd86 |
%mvn_build -f
|
|
|
00cd86 |
EOF
|
|
|
00cd86 |
|
|
|
00cd86 |
%install
|
|
|
00cd86 |
jdir=target/site/apidocs
|
|
|
00cd86 |
|
|
|
00cd86 |
scl enable %{scl} - <
|
|
|
00cd86 |
%mvn_install -J $jdir
|
|
|
00cd86 |
EOF
|
|
|
00cd86 |
|
|
|
00cd86 |
if [%rhel -eq 6]; then
|
|
|
00cd86 |
echo "Executing RHEL 6 stuff"
|
|
|
00cd86 |
install -dm755 %{buildroot}%{_javadocdir}/%{pkg_name}
|
|
|
00cd86 |
ls $jdir
|
|
|
00cd86 |
for f in `ls $jdir | grep -E "html|css"`; do
|
|
|
00cd86 |
cp $jdir/$f %{buildroot}%{_javadocdir}/%{pkg_name}/;
|
|
|
00cd86 |
echo %{_javadocdir}/%{pkg_name}/$f >> %{_builddir}/%{pkg_name}-%{version}/.mfiles-javadoc;
|
|
|
00cd86 |
done
|
|
|
00cd86 |
fi
|
|
|
00cd86 |
|
|
|
00cd86 |
%files -f .mfiles
|
|
|
00cd86 |
%dir %{_javadir}/httpcomponents
|
|
|
00cd86 |
%doc LICENSE.txt NOTICE.txt README.txt RELEASE_NOTES.txt
|
|
|
00cd86 |
|
|
|
00cd86 |
%files javadoc -f .mfiles-javadoc
|
|
|
00cd86 |
%doc LICENSE.txt NOTICE.txt
|
|
|
00cd86 |
|
|
|
00cd86 |
%changelog
|
|
|
00cd86 |
* Mon May 19 2014 Sami Wagiaalla <swagiaal@redhat.com> 4.3.2-1
|
|
|
00cd86 |
- Build for DTS 3.
|
|
|
00cd86 |
- Import latest spec file and sources from RAWHIDE.
|
|
|
00cd86 |
- Install javadoc manually.
|
|
|
00cd86 |
|
|
|
00cd86 |
* Fri Mar 29 2013 Krzysztof Daniel <kdaniel@redhat.com> 4.2.3-3
|
|
|
00cd86 |
- Build for java 1.6
|
|
|
00cd86 |
|
|
|
00cd86 |
* Mon Feb 18 2013 Krzysztof Daniel <kdaniel@redhat.com> 4.2.3-2
|
|
|
00cd86 |
- Initial contribution to SCL.
|
|
|
00cd86 |
|
|
|
00cd86 |
* Mon Dec 3 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.3-1
|
|
|
00cd86 |
- Update to upstream version 4.2.3
|
|
|
00cd86 |
|
|
|
00cd86 |
* Fri Oct 5 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.2-1
|
|
|
00cd86 |
- Update to upstream version 4.2.2
|
|
|
00cd86 |
|
|
|
00cd86 |
* Mon Aug 27 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.2.1-3
|
|
|
00cd86 |
- Remove mockito from Requires (not needed really)
|
|
|
00cd86 |
- BR on mockito is now conditional on Fedora
|
|
|
00cd86 |
|
|
|
00cd86 |
* Fri Jul 27 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.1-2
|
|
|
00cd86 |
- Install NOTICE.txt file
|
|
|
00cd86 |
- Fix javadir directory ownership
|
|
|
00cd86 |
- Preserve timestamps
|
|
|
00cd86 |
|
|
|
00cd86 |
* Mon Jul 23 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.1-1
|
|
|
00cd86 |
- Update to upstream version 4.2.1
|
|
|
00cd86 |
- Convert patches to POM macros
|
|
|
00cd86 |
|
|
|
00cd86 |
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.4-2
|
|
|
00cd86 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
00cd86 |
|
|
|
00cd86 |
* Fri Mar 23 2012 Krzysztof Daniel <kdaniel@redhat.com> 4.1.4-1
|
|
|
00cd86 |
- Update to latest upstream (4.1.4)
|
|
|
00cd86 |
|
|
|
00cd86 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.3-2
|
|
|
00cd86 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
00cd86 |
|
|
|
00cd86 |
* Tue Aug 16 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.1.3-1
|
|
|
00cd86 |
- Update to latest upstream (4.1.3)
|
|
|
00cd86 |
|
|
|
00cd86 |
* Tue Jul 26 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.1.2-1
|
|
|
00cd86 |
- Update to latest upstream (4.1.2)
|
|
|
00cd86 |
|
|
|
00cd86 |
* Mon Jul 4 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.1.1-2
|
|
|
00cd86 |
- Fix forgotten add_to_maven_depmap
|
|
|
00cd86 |
|
|
|
00cd86 |
* Fri Jul 1 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.1.1-1
|
|
|
00cd86 |
- Update to latest upstream (4.1.1)
|
|
|
00cd86 |
- Use new maven macros
|
|
|
00cd86 |
- Tweaks according to new guidelines
|
|
|
00cd86 |
- Enable tests again (seem to work OK even in koji now)
|
|
|
00cd86 |
|
|
|
00cd86 |
* Tue Mar 15 2011 Severin Gehwolf <sgehwolf@redhat.com> 4.1-6
|
|
|
00cd86 |
- Explicitly set PrivatePackage to the empty set, so as to
|
|
|
00cd86 |
export all packages.
|
|
|
00cd86 |
|
|
|
00cd86 |
* Fri Mar 11 2011 Alexander Kurtakov <akurtako@redhat.com> 4.1-5
|
|
|
00cd86 |
- Bump release to fix my mistake with the release.
|
|
|
00cd86 |
|
|
|
00cd86 |
* Thu Mar 10 2011 Alexander Kurtakov <akurtako@redhat.com> 4.1-3
|
|
|
00cd86 |
- Export all packages.
|
|
|
00cd86 |
|
|
|
00cd86 |
* Fri Feb 18 2011 Alexander Kurtakov <akurtako@redhat.com> 4.1-2
|
|
|
00cd86 |
- Don't use basename it's part of coreutils.
|
|
|
00cd86 |
|
|
|
00cd86 |
* Fri Feb 18 2011 Alexander Kurtakov <akurtako@redhat.com> 4.1-4
|
|
|
00cd86 |
- Install into %{_javadir}/httpcomponents. We will use it for client libs too.
|
|
|
00cd86 |
- Proper osgi info.
|
|
|
00cd86 |
|
|
|
00cd86 |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1-3
|
|
|
00cd86 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
00cd86 |
|
|
|
00cd86 |
* Wed Dec 22 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.1-2
|
|
|
00cd86 |
- Added license to javadoc subpackage
|
|
|
00cd86 |
|
|
|
00cd86 |
* Fri Dec 17 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.1-1
|
|
|
00cd86 |
- Initial package
|