# # spec file for package adaptx (Version 0.9.6) # # Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: adaptx BuildRequires: ant java2-devel-packages xml-commons-apis %{!?_with_external: %{!?_without_external: %define _without_external 1}} %define name adaptx %define version 0.9.6 %define release 2jpp %define section free Version: 0.9.6 Release: 24 Summary: XSLT Processor Written in Java License: BSD, Other License(s), see package Group: Development/Libraries/Java Source0: %{name}-%{version}-cvs.tar.bz2 Patch0: %{name}-%{version}-xsl.patch URL: http://castor.exolab.org/ %if %{?_with_external:1}%{!?_with_external:0} %endif BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description AdaptX is an extensible stylesheet language (XSL) processor. %package javadoc PreReq: coreutils Group: Development/Libraries/Java Summary: Javadoc for adaptx %description javadoc This package contains the javadoc documentation for AdaptX. %package doc Summary: Documentation for adaptx Group: Development/Libraries/Java %description doc This package contains the documentation for AdaptX. %prep %setup -q -n %{name} # remove CVS internal files for dir in `find . -type d -name CVS`; do rm -rf $dir; done # remove all binary libs find . -name "*.jar" -exec rm -f {} \; %patch0 %build perl -p -i -e 's|classic|modern|' src/build.xml if ! grep -q "javac.*source=" src/build.xml ; then perl -p -i -e 's|