Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:p_conrad:java
apache-httpcomponents
apache-httpcomponents.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File apache-httpcomponents.spec of Package apache-httpcomponents
# # spec file for package apache-httpcomponents # # Copyright (c) 2013 Peter Conrad <obs@quisquis.de> # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ %define vcore 4.3.1 %define vclient 4.3.2 Name: apache-httpcomponents Version: 4.3 Release: 1 License: Apache-2.0 Summary: HTTP transport library in Java Url: http://hc.apache.org/ Group: Development/Libraries/Java Source: http://ftp.fau.de/apache//httpcomponents/httpcore/source/httpcomponents-core-%{vcore}-src.tar.gz Source1: http://ftp.fau.de/apache//httpcomponents/httpclient/source/httpcomponents-client-%{vclient}-src.tar.gz BuildRequires: java-devel apache-commons-logging apache-commons-codec fdupes BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %if 0%{?fedora} > 0 BuildRequires: java-1.5.0-gcj-devel %endif %description The Hyper-Text Transfer Protocol (HTTP) is perhaps the most significant protocol used on the Internet today. Web services, network-enabled appliances and the growth of network computing continue to expand the role of the HTTP protocol beyond user-driven web browsers, while increasing the number of applications that require HTTP support. Designed for extension while providing robust support for the base HTTP protocol, the HttpComponents may be of interest to anyone building HTTP-aware client and server applications such as web browsers, web spiders, HTTP proxies, web service transport libraries, or systems that leverage or extend the HTTP protocol for distributed communication. %package core Summary: Low-level HTTP transport components Group: Development/Libraries/Java Version: %{vcore} %description core 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 core-javadoc Summary: Javadoc for %name-core Group: Development/Libraries/Java Version: %{vcore} %description core-javadoc This package contains the documentation for %{name}-core. %package client Summary: HTTP/1.1 client library Group: Development/Libraries/Java Requires: %{name}-core Version: %{vclient} %description client HttpClient is a HTTP/1.1 compliant HTTP agent implementation based on HttpCore. It also provides reusable components for client-side authentication, HTTP state management, and HTTP connection management. %package client-javadoc Summary: Javadoc for %name-client Group: Development/Libraries/Java Version: %{vclient} %description client-javadoc This package contains the documentation for %{name}-client. %prep %setup -q -a 1 -n httpcomponents-core-%{vcore} %build LINK= for i in httpcore{,-nio}; do %__mkdir_p $i/build/classes javac -cp $CLASSPATH -g -d $i/build/classes \ $(find $i/src/main/java* -name \*.java) jar cf $i.jar -C $i/build/classes . %__ln_s ../$i.jar httpcomponents-client-*/ CLASSPATH="$i.jar:$CLASSPATH" %__mkdir_p $i/build/doc javadoc -d $i/build/doc -classpath $CLASSPATH \ -sourcepath $i/src/main/java -subpackages org.apache.http $LINK LINK="$LINK -linkoffline %{_javadocdir}/%{name}-core-%{vcore}/$i/ $i/build/doc" done CLASSPATH="$CLASSPATH%{_javadir}/commons-logging.jar:%{_javadir}/commons-codec.jar" cd httpcomponents-client-*/ %__ln_s ../httpcore %__ln_s ../httpcore-nio for i in httpclient fluent-hc httpmime; do %__mkdir_p $i/build/classes javac -cp $CLASSPATH -g -d $i/build/classes \ $(find $i/src/main/java* -name \*.java) jar cf ../$i.jar -C $i/build/classes . %__ln_s ../$i.jar CLASSPATH="$i.jar:$CLASSPATH" %__mkdir_p $i/build/doc javadoc -d $i/build/doc -classpath $CLASSPATH \ -sourcepath $i/src/main/java -subpackages org.apache.http $LINK LINK="$LINK -linkoffline %{_javadocdir}/%{name}-client-%{vclient}/$i/ $i/build/doc" done %install %__install -dm 755 "%{buildroot}/%{_javadir}" for i in *.jar; do %__install -m 0644 $i "%{buildroot}/%{_javadir}/${i%%.jar}-%{version}.jar" %__ln_s "${i%%.jar}-%{version}.jar" "%{buildroot}/%{_javadir}/$i" done %__install -dm 755 "%{buildroot}/%{_javadocdir}/%{name}-core-%{vcore}" for i in httpcore{,-nio}; do %__cp -r $i/build/doc "%{buildroot}/%{_javadocdir}/%{name}-core-%{vcore}/$i" done cd httpcomponents-client-*/ %__install -dm 755 "%{buildroot}/%{_javadocdir}/%{name}-client-%{vclient}" for i in httpclient fluent-hc httpmime; do %__cp -r $i/build/doc "%{buildroot}/%{_javadocdir}/%{name}-client-%{vclient}/$i" done fdupes -rq1 %{buildroot}/%{_javadocdir} | \ while read line; do set $line master=$1 shift while [ $# -gt 0 ]; do ln -f $master $1 shift done done %files core %defattr(-,root,root,-) %doc LICENSE.txt NOTICE.txt README.txt RELEASE_NOTES.txt %{_javadir}/httpcore*.jar %files core-javadoc %defattr(-,root,root,-) %{_javadocdir}/%{name}-core-%{vcore}/ %files client %defattr(-,root,root,-) %doc httpcomponents-client*/LICENSE.txt httpcomponents-client*/NOTICE.txt httpcomponents-client*/README.txt httpcomponents-client*/RELEASE_NOTES.txt %{_javadir}/fluent*.jar %{_javadir}/httpclient*.jar %{_javadir}/httpmime*.jar %files client-javadoc %defattr(-,root,root,-) %{_javadocdir}/%{name}-client-%{vclient}/ %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor