Группа :: Разработка/Java
Пакет: ant
Главная Изменения Спек Патчи Загрузить Bugs and FR
# J2SE 1.4 contains XML-parser.
# Bootstrap version needed for building xml-commons-* and xerces-j
# which required for building ant itself
%def_disable bootstrap_version
Name: ant
Version: 1.6.2
Release: alt2.M24.1
Summary: Platform-independent build tool for Java
Group: Development/Java
License: Apache
URL: http://ant.apache.org/
Packager: Mikhail Zabaluev <mhz at altlinux.ru>
Source: http://www.apache.org/dist/ant/source/apache-%name-%version-src.tar.bz2
Source1: apache-ant.sh.in
Source2: apache-ant.conf
BuildArch: noarch
BuildPreReq: /proc
BuildPreReq: j2se1.4-sun-devel rpm-build-java
%if_disabled bootstrap_version
BuildPreReq: xml-commons-apis xerces-j
%endif
Requires: java-common >= 1.2 j2se >= 1.4.2
%if_disabled bootstrap_version
Requires: xml-commons-apis jaxp_parser_impl
%endif
%description
Ant is a Java based build tool.
Ant is used to build Jakarta & XML projects by the Apache Group.
%package manual
Summary: Documentation for ant
Group: Development/Java
Requires: %name = %version-%release
%description manual
Documentation for ant, a platform-independent build tool for Java.
%package javadoc
Summary: Javadoc for ant
Group: Development/Java
Requires: java-common >= 1.2
%description javadoc
Javadoc-generated documentation for ant, a platform-independent
build tool for Java.
%package task-reference
Summary: Ant task reference in PDF format
Group: Books/Computer books
Requires: %name = %version-%release
%description task-reference
The Ant task reference in the PDF format.
%package style-xsl
Summary: XSL stylesheets for Ant
Group: Text tools
Requires: %name = %version-%release
%description style-xsl
Useful XSL stylesheets included in the Ant distribution.
%prep
%setup -q -n apache-%name-%version
%build
%if_disabled bootstrap_version
CLASSPATH=%_javadir/jaxp_parser_impl.jar:%_javadir/xml-commons-apis.jar
export CLASSPATH
%endif
./build.sh -Ddist.dir=dist dist
%__sed -e 's, at libdir at ,%_libdir,g' \
-e 's, at datadir at ,%_datadir,g' \
-e 's, at sysconfdir at ,%_sysconfdir,g' \
< %SOURCE1 >dist/bin/ant
%install
%__mkdir_p %buildroot%_bindir
%__mkdir_p %buildroot%_sysconfdir
%__mkdir_p %buildroot%_datadir/%name/etc
%__mkdir_p %buildroot%_javadir/%name
%__mkdir_p %buildroot%_javadocdir/%name
%__mkdir_p %buildroot%_docdir/%name-%version/manual
%__install -m 644 dist/lib/ant.jar %buildroot%_javadir/%name
%__install -m 644 dist/lib/ant-nodeps.jar %buildroot%_javadir/%name
%__install -m 644 dist/lib/ant-launcher.jar %buildroot%_javadir/%name
%__install -m 755 dist/bin/ant %buildroot%_bindir
%__install -m 755 dist/bin/antRun %buildroot%_bindir
%__install -m 644 %{SOURCE2} %buildroot%_sysconfdir/ant.conf
%__mv dist/etc/* %buildroot%_datadir/%name/etc
%__rm %buildroot%_datadir/%name/etc/*.jar
%__cp NOTICE LICENSE README WHATSNEW welcome.html %buildroot%_docdir/%name-%version
%__mv dist/docs/manual/api %buildroot%_javadocdir/%name
%__cp -r docs/* %buildroot%_docdir/%name-%version/
%__ln_s %_javadocdir/%name/api %buildroot%_docdir/%name-%version/manual/api
%__ln_s %_javadir/ant %buildroot%_datadir/ant/lib
%files
%dir %_docdir/%name-%version
%_docdir/%name-%version/LICENSE
%_docdir/%name-%version/README
%_docdir/%name-%version/WHATSNEW
%_docdir/%name-%version/NOTICE
%_bindir/ant
%_bindir/antRun
%_sysconfdir/*.conf
%dir %_datadir/%name
%dir %_datadir/%name/lib
%_javadir/ant
%files manual
%_docdir/%name-%version/ant2
%_docdir/%name-%version/images
%_docdir/%name-%version/manual
%_docdir/%name-%version/projects
%_docdir/%name-%version/*.html
%_docdir/%name-%version/*.js
%_docdir/%name-%version/*.ico
%_docdir/%name-%version/*.css
%files javadoc
%_javadocdir/%name
%files task-reference
%_docdir/%name-%version/*.pdf
%files style-xsl
%_datadir/%name/etc
%changelog
…
Полный changelog можно просмотреть здесь
# Bootstrap version needed for building xml-commons-* and xerces-j
# which required for building ant itself
%def_disable bootstrap_version
Name: ant
Version: 1.6.2
Release: alt2.M24.1
Summary: Platform-independent build tool for Java
Group: Development/Java
License: Apache
URL: http://ant.apache.org/
Packager: Mikhail Zabaluev <mhz at altlinux.ru>
Source: http://www.apache.org/dist/ant/source/apache-%name-%version-src.tar.bz2
Source1: apache-ant.sh.in
Source2: apache-ant.conf
BuildArch: noarch
BuildPreReq: /proc
BuildPreReq: j2se1.4-sun-devel rpm-build-java
%if_disabled bootstrap_version
BuildPreReq: xml-commons-apis xerces-j
%endif
Requires: java-common >= 1.2 j2se >= 1.4.2
%if_disabled bootstrap_version
Requires: xml-commons-apis jaxp_parser_impl
%endif
%description
Ant is a Java based build tool.
Ant is used to build Jakarta & XML projects by the Apache Group.
%package manual
Summary: Documentation for ant
Group: Development/Java
Requires: %name = %version-%release
%description manual
Documentation for ant, a platform-independent build tool for Java.
%package javadoc
Summary: Javadoc for ant
Group: Development/Java
Requires: java-common >= 1.2
%description javadoc
Javadoc-generated documentation for ant, a platform-independent
build tool for Java.
%package task-reference
Summary: Ant task reference in PDF format
Group: Books/Computer books
Requires: %name = %version-%release
%description task-reference
The Ant task reference in the PDF format.
%package style-xsl
Summary: XSL stylesheets for Ant
Group: Text tools
Requires: %name = %version-%release
%description style-xsl
Useful XSL stylesheets included in the Ant distribution.
%prep
%setup -q -n apache-%name-%version
%build
%if_disabled bootstrap_version
CLASSPATH=%_javadir/jaxp_parser_impl.jar:%_javadir/xml-commons-apis.jar
export CLASSPATH
%endif
./build.sh -Ddist.dir=dist dist
%__sed -e 's, at libdir at ,%_libdir,g' \
-e 's, at datadir at ,%_datadir,g' \
-e 's, at sysconfdir at ,%_sysconfdir,g' \
< %SOURCE1 >dist/bin/ant
%install
%__mkdir_p %buildroot%_bindir
%__mkdir_p %buildroot%_sysconfdir
%__mkdir_p %buildroot%_datadir/%name/etc
%__mkdir_p %buildroot%_javadir/%name
%__mkdir_p %buildroot%_javadocdir/%name
%__mkdir_p %buildroot%_docdir/%name-%version/manual
%__install -m 644 dist/lib/ant.jar %buildroot%_javadir/%name
%__install -m 644 dist/lib/ant-nodeps.jar %buildroot%_javadir/%name
%__install -m 644 dist/lib/ant-launcher.jar %buildroot%_javadir/%name
%__install -m 755 dist/bin/ant %buildroot%_bindir
%__install -m 755 dist/bin/antRun %buildroot%_bindir
%__install -m 644 %{SOURCE2} %buildroot%_sysconfdir/ant.conf
%__mv dist/etc/* %buildroot%_datadir/%name/etc
%__rm %buildroot%_datadir/%name/etc/*.jar
%__cp NOTICE LICENSE README WHATSNEW welcome.html %buildroot%_docdir/%name-%version
%__mv dist/docs/manual/api %buildroot%_javadocdir/%name
%__cp -r docs/* %buildroot%_docdir/%name-%version/
%__ln_s %_javadocdir/%name/api %buildroot%_docdir/%name-%version/manual/api
%__ln_s %_javadir/ant %buildroot%_datadir/ant/lib
%files
%dir %_docdir/%name-%version
%_docdir/%name-%version/LICENSE
%_docdir/%name-%version/README
%_docdir/%name-%version/WHATSNEW
%_docdir/%name-%version/NOTICE
%_bindir/ant
%_bindir/antRun
%_sysconfdir/*.conf
%dir %_datadir/%name
%dir %_datadir/%name/lib
%_javadir/ant
%files manual
%_docdir/%name-%version/ant2
%_docdir/%name-%version/images
%_docdir/%name-%version/manual
%_docdir/%name-%version/projects
%_docdir/%name-%version/*.html
%_docdir/%name-%version/*.js
%_docdir/%name-%version/*.ico
%_docdir/%name-%version/*.css
%files javadoc
%_javadocdir/%name
%files task-reference
%_docdir/%name-%version/*.pdf
%files style-xsl
%_datadir/%name/etc
%changelog
…
Полный changelog можно просмотреть здесь