Name: ant-dotnet Version: 1.1 Release: 1%{?dist} Summary: Apache .NET Ant Library Group: Development/Libraries License: ASL 2.0 Url: http://ant.apache.org/antlibs/dotnet/ Source0: http://www.apache.org/dist/ant/antlibs/dotnet/source/apache-%{name}-%{version}-src.tar.gz BuildRequires: java-devel BuildRequires: jpackage-utils BuildRequires: ant BuildRequires: ant-antunit BuildRequires: ant-junit BuildRequires: ant-testutil BuildRequires: junit Requires: ant Requires: java Requires: jpackage-utils BuildArch: noarch %description The Apache .NET Antlib provides tasks that support development of .NET software with Apache Ant. This library doesn't strive to replace NAnt or MSBuild, its main purpose is to help those of us who work on projects crossing platform boundaries. With this library you can use Ant to build and test the Java as well as the .NET parts of your project. %package javadoc Group: Documentation Summary: Javadoc for %{name} Requires: jpackage-utils %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n apache-%{name}-%{version} find . -name "*.jar" -delete find . -name "*.class" -delete %build export CLASSPATH=$(build-classpath ant-antunit ant/ant-junit ant/ant-testutil junit) %ant \ -Dant-testutil.jar=$(build-classpath ant/ant-testutil) \ bin-dist %install mkdir -p %{buildroot}%{_javadir} install -m 644 dist-bin/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar mkdir -p %{buildroot}%{_mavenpomdir} install -pm 644 dist-bin/%{name}-%{version}.pom %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom %add_maven_depmap JPP-%{name}.pom %{name}.jar mkdir -p %{buildroot}%{_javadocdir}/ant-dotnet cp -pr dist-bin/javadoc/* %{buildroot}%{_javadocdir}/ant-dotnet/ mkdir -p %{buildroot}%{_sysconfdir}/ant.d echo "ant %{name}" > %{name}-ant install -p -m 644 %{name}-ant %{buildroot}%{_sysconfdir}/ant.d/%{name} %files %{_javadir}/%{name}.jar %{_mavenpomdir}/JPP-%{name}.pom %{_mavendepmapfragdir}/%{name} %config(noreplace) %{_sysconfdir}/ant.d/%{name} %doc dist-bin/{CONTRIBUTORS,NOTICE,README*,WHATSNEW,docs/*} %files javadoc %{_javadocdir}/%{name} %changelog * Sun Sep 16 2012 gil cattaneo 1.1-1 - initial rpm