packages java-FlexAntTasks.spec
      Pages: < 1 >  DOWNLOAD      
%define        antlib    %(echo $ANT_HOME/lib)
Name:          java-FlexAntTasks
Version:       0.1
Release:       3mamba
Summary:       A Java-based build tool
Group:         Applications/Development
Vendor:        openmamba
Distribution:  openmamba
Packager:      gil <puntogil@...>
License:       Adobe Proprietary license, MPL
BuildRequires: apache-ant
BuildRequires: java-dom4j
BuildRequires: java-jaxen
BuildRequires: java-junit3
BuildRoot:     %{_tmppath}/%{name}-%{version}-root

The Adobe® Flex® Ant tasks provide a convenient way to build your Flex projects using an
industry-standard build management tool. If you are already using Ant projects to
build Flex applications, you can use the Flex Ant tasks to replace your exec or
java commands that invoke the mxmlc and compc compilers. If you are not yet using Ant to
build your Flex applications, you can take advantage of these custom tasks to quickly and
easily set up complex build processes for your Flex applications.

The Flex Ant tasks feature includes two compiler tasks, mxmlc and compc. You can use these to
compile Flex applications, modules, and component libraries. In addition, the Flex Ant tasks
include the html-wrapper task that lets you generate custom HTML wrappers and the
supporting files for those wrappers.

%package javadoc
Group:          Documentation
Summary:        Javadoc for %{name}

%description javadoc
A Java-based build tool.

This package contains javadoc for %{name}.

%package source
Group:          Development/Languages
Summary:        %{name} source

%description source
A Java-based build tool.

This package contains %{name} source.


%setup -q -n FlexAntTasks

for j in $(find . -name "*.jar"); do
	rm -rf $j

for j in $(find . -name "*.class"); do
	rm -rf $j

for j in $(find . -name "*.zip"); do
	rm -rf $j

pushd buildlib
	ln -sf $(build-classpath ant-1.7.1) ant.jar
pushd lib
	ln -sf $(build-classpath dom4j) dom4j-1.6.1.jar
	ln -sf $(build-classpath jaxen) jaxen-1.1-beta-6.jar
	ln -sf $(build-classpath junit-3.8.2) junit-3.8.1.jar

export CLASSPATH=$(build-classpath junit-3.8.2 dom4j)
ant \ \

/usr/lib/jvm/jdk-sun/bin/javadoc -d javadoc \
	-classpath $(build-classpath junit-3.8.2 dom4j ant-1.7.1 jaxen) \
	-encoding iso-8859-1 \
	`find src -name \*.java`

[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

mkdir -p %{buildroot}%{_javadir} \

install -pm 644 dist/FlexAntTasks.jar \

	cd %{buildroot}%{_javadir}
	for jar in *-%{version}.jar; do
		ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`
	ln -sf ../../java/FlexAntTasks-%{version}.jar %{buildroot}%{antlib}/FlexAntTasks.jar

mkdir -p %{buildroot}%{_javadocdir}/FlexAntTasks-%{version}
cp -pR javadoc/* %{buildroot}%{_javadocdir}/FlexAntTasks-%{version}
ln -s FlexAntTasks-%{version} %{buildroot}%{_javadocdir}/FlexAntTasks

mkdir -p %{buildroot}%{_sourcedir}
cp -pr dist/FlexAntTasks-*.zip %{buildroot}%{_sourcedir}

[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"


%files javadoc

%files source

* Fri Oct 23 2009 gil <puntogil@...> 0.1-3mamba
- rebuilt

* Sat Sep 05 2009 gil <puntogil@...> 0.1-2mamba
- rebuilt

* Sat May 30 2009 gil <puntogil@...> 0.1-1mamba
- package created by autospec