File objectweb-anttask.spec of Package objectweb-anttask

#
# spec file for package objectweb-anttask
#
# Copyright (c) 2013 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 http://bugs.opensuse.org/
#
# icecream 0


Name:           objectweb-anttask
Summary:        ObjectWeb Ant task
License:        LGPL-2.1+
Group:          Development/Languages/Java
Version:        1.2
Release:        0
Url:            http://forge.objectweb.org/projects/monolog/
BuildArch:      noarch
Source0:        ow_util_ant_tasks_1.2.zip
Patch:          %{name}-java14compat.patch
Patch1:         objectweb-anttask-ant17.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Provides:       owanttask
BuildRequires:  ant
BuildRequires:  java-1_5_0-gcj-compat-devel
BuildRequires:  unzip
BuildRequires:  xalan-j2
BuildRequires:  xml-commons-apis

%description
ObjectWeb Ant task



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

%build
export CLASSPATH=$(build-classpath xalan-j2)
ant -Dbuild.compiler=modern jar

%install
# 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
popd

%files
%defattr(0644,root,root,0755)
%{_javadir}/*

%changelog
openSUSE Build Service is sponsored by