Name: java-pack200-ant-task Version: 0.1 Release: 2mamba Summary: Java™ Pack200 External Task for Ant Group: Development/Tools Vendor: openmamba Distribution: openmamba Packager: gil URL: https://java-pack200-ant-task.dev.java.net/ # + /usr/bin/unzip -qq /usr/src/RPM/SOURCES/ant-task.zip # warning: stripped absolute path spec from / # mapname: conversion of failed # warning: stripped absolute path spec from /README # warning: stripped absolute path spec from /Pack200Task.jar #Source: https://java-pack200-ant-task.dev.java.net/files/documents/%{version}526/6272/ant-task.zip Source: ant-task-0.1-repackage.tar.gz License: Sun Public License BuildRequires: apache-ant BuildRequires: jpackage-utils Requires: jpackage-utils BuildRoot: %{_tmppath}/%{name}-%{version}-root %description These task provide an interface to the Java Pack200 API. The implementation follows the pack200(1) command line interface. All the functionality of the pack200(1) can be accomplished by this task. The primary advantage of using this task over calling the CLI from ANT is performance. The user is encourage to familiarize themselves with java.util.jar.pack.Pack200, before using these Tasks. %prep %setup -q -n ant-task for j in $(find . -name "*.jar"); do mv $j $j.no done sed -i "s|src/share|src|" make/build.xml %build export CLASSPATH=$(build-classpath ant) ant -buildfile make/build.xml all %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" mkdir -p %{buildroot}%{_javadir} install -pm 644 dist/Pack200Task.jar \ %{buildroot}%{_javadir}/pack200task-%{version}.jar ( cd %{buildroot}%{_javadir} for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"` done ln -sf pack200task-%{version}.jar %{buildroot}%{_javadir}/Pack200Task-%{version}.jar ) %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{_javadir}/pack200task-%{version}.jar %{_javadir}/pack200task.jar %{_javadir}/Pack200Task-%{version}.jar %doc README doc/* %changelog * Thu Nov 25 2010 gil 0.1-2mamba - rebuilt devel * Sat Sep 04 2010 gil 0.1-1mamba - package created by autospec