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@...>
URL:           http://labs.adobe.com/wiki/index.php/Flex_Ant_Tasks
Source:        http://weblogs.macromedia.com/pmartin/tooling/flexunit/FlexAntTasks-src.zip
License:       Adobe Proprietary license, MPL
BuildRequires: apache-ant
BuildRequires: java-dom4j
BuildRequires: java-jaxen
BuildRequires: java-junit3
BuildRoot:     %{_tmppath}/%{name}-%{version}-root

%description
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.

%prep

%setup -q -n FlexAntTasks

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

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

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

pushd buildlib
	ln -sf $(build-classpath ant-1.7.1) ant.jar
popd
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
popd

%build
export CLASSPATH=$(build-classpath junit-3.8.2 dom4j)
ant \
	-Dproject.name=FlexAntTasks \
	main

/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`

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

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


install -pm 644 dist/FlexAntTasks.jar \
	%{buildroot}%{_javadir}/FlexAntTasks-%{version}.jar

(
	cd %{buildroot}%{_javadir}
	for jar in *-%{version}.jar; do
		ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`
	done
	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}

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

%files
%defattr(-,root,root)
%{antlib}/FlexAntTasks.jar
%{_javadir}/FlexAntTasks-%{version}.jar
%{_javadir}/FlexAntTasks.jar

%files javadoc
%defattr(-,root,root)
%{_javadocdir}/FlexAntTasks-%{version}
%{_javadocdir}/FlexAntTasks

%files source
%defattr(-,root,root)
%{_sourcedir}/FlexAntTasks-bin.zip
%{_sourcedir}/FlexAntTasks-src.zip

%changelog
* 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