Группа :: Разработка/Java
Пакет: jakarta-commons-collections
Главная Изменения Спек Патчи Загрузить Bugs and FR
Name: jakarta-commons-collections
Version: 3.1
Release: alt0.M24.1
Summary: Jakarta Commons Collections Package
License: Apache Software License 2.0
Group: Development/Java
Packager: Vladimir Lettiev <crux at altlinux.ru>
Url: http://jakarta.apache.org/commons/collections
Source: http://www.apache.org/dist/jakarta/commons/collections/commons-collections-%version-src.tar.gz
Source1: jakarta-commons-collections-build.properties
BuildPreReq: /proc
BuildPreReq: j2se1.4-sun-devel ant ant-junit junit
BuildPreReq: java-common >= 1.2 rpm-build-java
#BuildPreReq: j2se1.4-sun-javadoc
BuildArch: noarch
Requires: java-common >= 1.2 j2se >= 1.4.2
%description
The introduction of the Collections API by Sun in JDK 1.2 has been a
boon to quick and effective Java programming. Ready access to powerful
data structures has accelerated development by reducing the need for
custom container classes around each core object. Most Java2 APIs are
significantly easier to use because of the Collections API.
However, there are certain holes left unfilled by Sun's
implementations, and the Jakarta-Commons Collections Component strives
to fulfill them. Among the features of this package are:
- special-purpose implementations of Lists and Maps for fast access
- adapter classes from Java1-style containers (arrays, enumerations) to
Java2-style collections.
- methods to test or create typical set-theory properties of collections
such as union, intersection, and closure.
%package javadoc
Summary: Javadoc for %name
Group: Development/Java
Requires: java-common >= 1.2
%description javadoc
Javadoc for %name
%package devel
Summary: Test framework and documentation for %name
Group: Development/Java
Requires: java-common >= 1.2 %name = %version-%release
%description devel
Test framework and documentation for developers
%prep
%setup -qn commons-collections-%version
%__cp %SOURCE1 build.properties
%build
%__ant dist
%install
%__mkdir_p %buildroot%_javadir
%__mkdir_p %buildroot%_javadocdir
%__mkdir_p %buildroot%_docdir/%name-%version
%__install -m644 build/commons-collections-%version.jar %buildroot%_javadir/%name.jar
%__install -m644 build/commons-collections-testframework-%version.jar %buildroot%_javadir/%name-testframework.jar
%__mv build/docs/apidocs %buildroot%_javadocdir/%name/
#%__mv build/docs/testframework %buildroot%_javadocdir/%name/
%__mv *.txt %buildroot%_docdir/%name-%version/
%__mv *.html %buildroot%_docdir/%name-%version/
%files
%_javadir/%name.jar
%dir %_docdir/%name-%version
%_docdir/%name-%version/*
%exclude %_docdir/%name-%version/DEVELOPERS-GUIDE.html
%files javadoc
%_javadocdir/%name
%files devel
%_javadir/%name-testframework.jar
%_docdir/%name-%version/DEVELOPERS-GUIDE.html
%changelog
…
Полный changelog можно просмотреть здесь
Version: 3.1
Release: alt0.M24.1
Summary: Jakarta Commons Collections Package
License: Apache Software License 2.0
Group: Development/Java
Packager: Vladimir Lettiev <crux at altlinux.ru>
Url: http://jakarta.apache.org/commons/collections
Source: http://www.apache.org/dist/jakarta/commons/collections/commons-collections-%version-src.tar.gz
Source1: jakarta-commons-collections-build.properties
BuildPreReq: /proc
BuildPreReq: j2se1.4-sun-devel ant ant-junit junit
BuildPreReq: java-common >= 1.2 rpm-build-java
#BuildPreReq: j2se1.4-sun-javadoc
BuildArch: noarch
Requires: java-common >= 1.2 j2se >= 1.4.2
%description
The introduction of the Collections API by Sun in JDK 1.2 has been a
boon to quick and effective Java programming. Ready access to powerful
data structures has accelerated development by reducing the need for
custom container classes around each core object. Most Java2 APIs are
significantly easier to use because of the Collections API.
However, there are certain holes left unfilled by Sun's
implementations, and the Jakarta-Commons Collections Component strives
to fulfill them. Among the features of this package are:
- special-purpose implementations of Lists and Maps for fast access
- adapter classes from Java1-style containers (arrays, enumerations) to
Java2-style collections.
- methods to test or create typical set-theory properties of collections
such as union, intersection, and closure.
%package javadoc
Summary: Javadoc for %name
Group: Development/Java
Requires: java-common >= 1.2
%description javadoc
Javadoc for %name
%package devel
Summary: Test framework and documentation for %name
Group: Development/Java
Requires: java-common >= 1.2 %name = %version-%release
%description devel
Test framework and documentation for developers
%prep
%setup -qn commons-collections-%version
%__cp %SOURCE1 build.properties
%build
%__ant dist
%install
%__mkdir_p %buildroot%_javadir
%__mkdir_p %buildroot%_javadocdir
%__mkdir_p %buildroot%_docdir/%name-%version
%__install -m644 build/commons-collections-%version.jar %buildroot%_javadir/%name.jar
%__install -m644 build/commons-collections-testframework-%version.jar %buildroot%_javadir/%name-testframework.jar
%__mv build/docs/apidocs %buildroot%_javadocdir/%name/
#%__mv build/docs/testframework %buildroot%_javadocdir/%name/
%__mv *.txt %buildroot%_docdir/%name-%version/
%__mv *.html %buildroot%_docdir/%name-%version/
%files
%_javadir/%name.jar
%dir %_docdir/%name-%version
%_docdir/%name-%version/*
%exclude %_docdir/%name-%version/DEVELOPERS-GUIDE.html
%files javadoc
%_javadocdir/%name
%files devel
%_javadir/%name-testframework.jar
%_docdir/%name-%version/DEVELOPERS-GUIDE.html
%changelog
…
Полный changelog можно просмотреть здесь