Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1489129
 поиск   регистрация   авторизация 
 
Группа :: Разработка/Java
Пакет: jakarta-commons-httpclient

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

Name: jakarta-commons-httpclient
Version: 2.0.2
Release: alt0.M24.1

Summary: Jakarta Commons HTTPClient Package
License: Apache Software License
Group: Development/Java
Packager: Vladimir Lettiev <crux at altlinux.ru>

Url: http://jakarta.apache.org/commons/httpclient/
Source0: commons-httpclient-%{version}-src.tar.gz
Source1: %name-build.properties

Buildarch: noarch

BuildPreReq: /proc
BuildPreReq: rpm-build-java
BuildPreReq: jakarta-servletapi5 j2se1.4-sun-devel
#BuildPreReq: j2se1.4-sun-javadoc
BuildPreReq: ant jakarta-commons-logging jakarta-commons-logging-javadoc junit

Requires: java-common >= 1.2 j2se >= 1.4.2
Requires: jakarta-commons-logging

%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, and increase
the number of applications that may require HTTP support.
Although the java.net package provides basic support for accessing
resources via HTTP, it doesn't provide the full flexibility or
functionality needed by many applications. The Jakarta Commons HTTP
Client component seeks to fill this void by providing an efficient,
up-to-date, and feature-rich package implementing the client side of the
most recent HTTP standards and recommendations.
Designed for extension while providing robust support for the base HTTP
protocol, the HTTP Client component may be of interest to anyone
building HTTP-aware client applications such as web browsers, web
service clients, or systems that leverage or extend the HTTP protocol
for distributed communication.

%package javadoc
Summary: Javadoc for %name
Group: Development/Java
Requires: java-common >= 1.2

%description javadoc
Javadoc documentation for %name.

%package samples
Summary: Samples for %name
Group: Development/Java
Requires: %name = %version-%release

%description samples
%summary.

%package manual
Summary: Manual for %name
Group: Development/Java
Requires: %name = %version-%release %name-javadoc = %version-%release

%description manual
%summary.

%prep
%setup -q -n commons-httpclient-%version
%__cp %SOURCE1 build.properties
%__mkdir lib
%__rm -r docs/apidocs

%build
%__ant dist

%install
%__mkdir_p %buildroot%_javadir
%__mkdir_p %buildroot%_javadocdir
%__mkdir_p %buildroot%_datadir/%name
%__mkdir_p %buildroot%_docdir/%name-%version

%__install -m644 dist/commons-httpclient.jar %buildroot%_javadir/%name.jar
%__mv dist/docs/api %buildroot%_javadocdir/%name

%__mv src/examples src/contrib %buildroot%_datadir/%name

%__mv dist/docs %buildroot%_docdir/%name-%version/manual
%__ln_s %_javadocdir/%name %buildroot%_docdir/%name-%version/manual/apidocs

%__cp *.txt %buildroot%_docdir/%name-%version

# manual and docs

#rm -f dist/docs/{BUILDING,TESTING}.txt

%files
%dir %_docdir/%name-%version
%_docdir/%name-%version/*.txt
%_javadir/*

%files javadoc
%_javadocdir/%name

%files samples
%_datadir/%name

%files manual
%_docdir/%name-%version/manual

%changelog

Полный changelog можно просмотреть здесь

 
design & coding: Vladimir Lettiev aka crux © 2004-2005