File objectweb-anttask.spec of Package objectweb-anttask

# spec file for package objectweb-anttask (Version 1.2)
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

# norootforbuild
# icecream 0

Name:           objectweb-anttask
BuildRequires:  ant java2-devel-packages unzip xalan-j2 xml-commons-apis
%define name            objectweb-anttask
%define version         1.2
%define release         1jpp
%define section         free
# -----------------------------------------------------------------------------
Summary:        ObjectWeb Ant task
Version:        1.2
Release:        240
Group:          Development/Languages/Java
License:        LGPL-2.1+
BuildArch:      noarch
Patch:          %{name}-java14compat.patch
Patch1:         objectweb-anttask-ant17.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Provides:       owanttask

ObjectWeb Ant task

%setup -c -q -n %{name}
find . -name "*.class" -exec rm {} \;
find . -name "*.jar" -exec rm {} \;

[ -z "$JAVA_HOME" ] && export JAVA_HOME=%{_jvmdir}/java
export CLASSPATH=$(build-classpath xalan-j2)
ant -Dbuild.compiler=modern jar

# jars
install -d -m 0755 $RPM_BUILD_ROOT%{_javadir}
install -m 644 output/lib/ow_util_ant_tasks.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
pushd $RPM_BUILD_ROOT%{_javadir}
  ln -sf %{name}-%{version}.jar %{name}.jar



* Tue Sep 18 2007
- hack to build with ant-1.7 (MultipleCopy works only for FileSets
  not for real ResourceCollection yet)
* Fri Mar 30 2007
- added unzip to buildreq
* Thu Sep 21 2006
- don't use icecream
- fix BuildRequires: add xalan-j2
- use source="1.4" and target="1.4" for build with java 1.5
* Wed Jan 25 2006
- converted neededforbuild to BuildRequires
* Mon Oct 17 2005
- Current version 1.2 from