d514c44d60
Install into %{_javadir}/httpcomponents. We will use it for client libs too.
112 lines
3.4 KiB
RPMSpec
112 lines
3.4 KiB
RPMSpec
%global basename httpcomponents
|
|
|
|
Name: httpcomponents-core
|
|
Summary: Set of low level Java HTTP transport components for HTTP services
|
|
Version: 4.1
|
|
Release: 4%{?dist}
|
|
Group: Development/Libraries
|
|
License: ASL 2.0
|
|
URL: http://hc.apache.org/
|
|
Source0: http://www.apache.org/dist/httpcomponents/httpcore/source/httpcomponents-core-%{version}-src.tar.gz
|
|
Patch0: 0001-Remove-unneeded-pom-dependencies.patch
|
|
Patch1: osgify.patch
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: httpcomponents-project
|
|
BuildRequires: java >= 1:1.6.0
|
|
BuildRequires: jpackage-utils
|
|
BuildRequires: maven-surefire-provider-junit4
|
|
|
|
Requires: java >= 1:1.6.0
|
|
Requires: jpackage-utils
|
|
|
|
Requires(post): jpackage-utils
|
|
Requires(postun): jpackage-utils
|
|
|
|
%description
|
|
HttpCore is a set of low level HTTP transport components that can be
|
|
used to build custom client and server side HTTP services with a
|
|
minimal footprint. HttpCore supports two I/O models: blocking I/O
|
|
model based on the classic Java I/O and non-blocking, event driven I/O
|
|
model based on Java NIO.
|
|
|
|
The blocking I/O model may be more appropriate for data intensive, low
|
|
latency scenarios, whereas the non-blocking model may be more
|
|
appropriate for high latency scenarios where raw data throughput is
|
|
less important than the ability to handle thousands of simultaneous
|
|
HTTP connections in a resource efficient manner.
|
|
|
|
%package javadoc
|
|
Summary: API documentation for %{name}
|
|
Group: Documentation
|
|
Requires: jpackage-utils
|
|
|
|
%description javadoc
|
|
%{summary}.
|
|
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1
|
|
%patch1
|
|
|
|
%build
|
|
# start using install again when bundle plugin is updated to 2.1.0
|
|
mvn-rpmbuild package javadoc:aggregate
|
|
|
|
%install
|
|
install -d %{buildroot}/%{_mavenpomdir}
|
|
install -d %{buildroot}/%{_javadir}/%{basename}
|
|
|
|
for m in httpcore httpcore-nio; do
|
|
# poms
|
|
install -m 0644 $m/pom.xml %{buildroot}/%{_mavenpomdir}/JPP.%{basename}-$m.pom
|
|
|
|
# jars - osgi doesn't have one
|
|
if [ -f $m/target/$m-%{version}.jar ];then
|
|
install -m 0644 $m/target/$m-%{version}.jar %{buildroot}%{_javadir}/%{basename}/$m.jar
|
|
fi
|
|
|
|
%add_to_maven_depmap org.apache.httpcomponents $m %{version} JPP/%{basename} $m
|
|
done
|
|
|
|
# parent
|
|
install -D -m 0644 pom.xml %{buildroot}/%{_mavenpomdir}/JPP.%{basename}-%{name}.pom
|
|
%add_to_maven_depmap org.apache.httpcomponents %{name} %{version} JPP/%{basename} %{name}
|
|
|
|
# javadocs
|
|
install -dm 755 %{buildroot}%{_javadocdir}/%{name}
|
|
cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
%post
|
|
%update_maven_depmap
|
|
|
|
%postun
|
|
%update_maven_depmap
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc README.txt LICENSE.txt RELEASE_NOTES.txt
|
|
%{_mavendepmapfragdir}/%{name}
|
|
%{_mavenpomdir}/JPP.%{basename}*.pom
|
|
%{_javadir}/%{basename}
|
|
|
|
%files javadoc
|
|
%doc LICENSE.txt
|
|
%defattr(-,root,root,-)
|
|
%doc %{_javadocdir}/*
|
|
|
|
%changelog
|
|
* Fri Feb 18 2011 Alexander Kurtakov <akurtako@redhat.com> 4.1-4
|
|
- Install into %{_javadir}/httpcomponents. We will use it for client libs too.
|
|
- Proper osgi info.
|
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Wed Dec 22 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.1-2
|
|
- Added license to javadoc subpackage
|
|
|
|
* Fri Dec 17 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.1-1
|
|
- Initial package
|