2011-02-18 15:55:57 +00:00
|
|
|
%global base_name httpcomponents
|
2011-02-18 08:52:06 +00:00
|
|
|
|
2010-12-23 10:05:58 +00:00
|
|
|
Name: httpcomponents-core
|
|
|
|
Summary: Set of low level Java HTTP transport components for HTTP services
|
2012-03-23 13:27:46 +00:00
|
|
|
Version: 4.1.4
|
2012-07-19 13:15:29 +00:00
|
|
|
Release: 2%{?dist}
|
2010-12-23 10:05:58 +00:00
|
|
|
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
|
2011-07-01 11:18:03 +00:00
|
|
|
Patch1: 0002-Osgify-modules.patch
|
2010-12-23 10:05:58 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
BuildRequires: httpcomponents-project
|
|
|
|
BuildRequires: java >= 1:1.6.0
|
|
|
|
BuildRequires: jpackage-utils
|
2010-12-23 10:39:43 +00:00
|
|
|
BuildRequires: maven-surefire-provider-junit4
|
2010-12-23 10:05:58 +00:00
|
|
|
|
|
|
|
Requires: java >= 1:1.6.0
|
|
|
|
Requires: 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
|
2011-07-01 11:18:03 +00:00
|
|
|
%patch1 -p1
|
2010-12-23 10:05:58 +00:00
|
|
|
|
|
|
|
%build
|
2011-07-01 11:18:03 +00:00
|
|
|
mvn-rpmbuild install javadoc:aggregate
|
2010-12-23 10:05:58 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
install -d %{buildroot}/%{_mavenpomdir}
|
2011-02-18 15:55:57 +00:00
|
|
|
install -d %{buildroot}/%{_javadir}/%{base_name}
|
2010-12-23 10:05:58 +00:00
|
|
|
|
2011-02-18 08:52:06 +00:00
|
|
|
for m in httpcore httpcore-nio; do
|
2010-12-23 10:05:58 +00:00
|
|
|
# poms
|
2011-02-18 15:55:57 +00:00
|
|
|
install -m 0644 $m/pom.xml %{buildroot}/%{_mavenpomdir}/JPP.%{base_name}-$m.pom
|
2010-12-23 10:05:58 +00:00
|
|
|
|
|
|
|
# jars - osgi doesn't have one
|
|
|
|
if [ -f $m/target/$m-%{version}.jar ];then
|
2011-02-18 15:55:57 +00:00
|
|
|
install -m 0644 $m/target/$m-%{version}.jar %{buildroot}%{_javadir}/%{base_name}/$m.jar
|
2010-12-23 10:05:58 +00:00
|
|
|
fi
|
|
|
|
|
2011-07-04 12:56:36 +00:00
|
|
|
%add_maven_depmap JPP.%{base_name}-$m.pom %{base_name}/$m.jar
|
2010-12-23 10:05:58 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
# parent
|
2011-02-18 15:55:57 +00:00
|
|
|
install -D -m 0644 pom.xml %{buildroot}/%{_mavenpomdir}/JPP.%{base_name}-%{name}.pom
|
2011-07-01 11:18:03 +00:00
|
|
|
%add_maven_depmap JPP.%{base_name}-%{name}.pom
|
2010-12-23 10:05:58 +00:00
|
|
|
|
|
|
|
# javadocs
|
|
|
|
install -dm 755 %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README.txt LICENSE.txt RELEASE_NOTES.txt
|
|
|
|
%{_mavendepmapfragdir}/%{name}
|
2011-02-18 08:52:06 +00:00
|
|
|
%{_mavenpomdir}/JPP.%{basename}*.pom
|
|
|
|
%{_javadir}/%{basename}
|
2010-12-23 10:05:58 +00:00
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%doc LICENSE.txt
|
2011-07-01 11:18:03 +00:00
|
|
|
%doc %{_javadocdir}/%{name}
|
2010-12-23 10:05:58 +00:00
|
|
|
|
|
|
|
%changelog
|
2012-07-19 13:15:29 +00:00
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-03-23 13:27:46 +00:00
|
|
|
* Fri Mar 23 2012 Krzysztof Daniel <kdaniel@redhat.com> 4.1.4-1
|
|
|
|
- Update to latest upstream (4.1.4)
|
|
|
|
|
2012-01-13 05:01:20 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-08-16 12:04:19 +00:00
|
|
|
* Tue Aug 16 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.1.3-1
|
|
|
|
- Update to latest upstream (4.1.3)
|
|
|
|
|
2011-07-26 17:21:29 +00:00
|
|
|
* Tue Jul 26 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.1.2-1
|
|
|
|
- Update to latest upstream (4.1.2)
|
|
|
|
|
2011-07-04 12:56:36 +00:00
|
|
|
* Mon Jul 4 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.1.1-2
|
|
|
|
- Fix forgotten add_to_maven_depmap
|
|
|
|
|
2011-07-01 11:18:03 +00:00
|
|
|
* Fri Jul 1 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.1.1-1
|
|
|
|
- Update to latest upstream (4.1.1)
|
|
|
|
- Use new maven macros
|
|
|
|
- Tweaks according to new guidelines
|
|
|
|
- Enable tests again (seem to work OK even in koji now)
|
|
|
|
|
2011-03-15 14:31:03 +00:00
|
|
|
* Tue Mar 15 2011 Severin Gehwolf <sgehwolf@redhat.com> 4.1-6
|
|
|
|
- Explicitly set PrivatePackage to the empty set, so as to
|
|
|
|
export all packages.
|
|
|
|
|
2011-03-11 19:02:55 +00:00
|
|
|
* Fri Mar 11 2011 Alexander Kurtakov <akurtako@redhat.com> 4.1-5
|
|
|
|
- Bump release to fix my mistake with the release.
|
|
|
|
|
2011-03-10 19:21:04 +00:00
|
|
|
* Thu Mar 10 2011 Alexander Kurtakov <akurtako@redhat.com> 4.1-3
|
|
|
|
- Export all packages.
|
|
|
|
|
2011-02-18 15:55:57 +00:00
|
|
|
* Fri Feb 18 2011 Alexander Kurtakov <akurtako@redhat.com> 4.1-2
|
2011-07-01 11:18:03 +00:00
|
|
|
- Don't use basename it's part of coreutils.
|
2011-02-18 15:55:57 +00:00
|
|
|
|
2011-02-18 08:52:06 +00:00
|
|
|
* 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.
|
|
|
|
|
2011-02-09 09:33:47 +00:00
|
|
|
* 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
|
|
|
|
|
2010-12-23 10:05:58 +00:00
|
|
|
* 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
|