# # spec file for package adaptx (Version 0.9.13) # # 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 http://bugs.opensuse.org/ # # norootforbuild %define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}} %define section free Name: adaptx Version: 0.9.13 Release: 104 Summary: XSLT Processor Written in Java License: BSD 3-Clause Group: Development/Libraries/Java Source0: %{name}-%{version}-src.tar.bz2 # svn export http://svn.codehaus.org/castor/adaptx Patch0: %{name}-%{version}-xsl.patch Patch1: %{name}-%{version}-icedtea-build.patch Url: http://castor.exolab.org/ BuildRequires: ant >= 1.6 BuildRequires: jpackage-utils >= 1.6 BuildRequires: log4j BuildRequires: xml-commons-apis BuildRequires: xerces-j2 %if %defined suse_version BuildRequires: java-devel %endif Requires: ant >= 1.6 Requires: jpackage-utils >= 1.6 Requires: log4j Requires: xml-commons-apis Requires: xerces-j2 %if ! %{gcj_support} BuildArch: noarch %endif BuildRoot: %{_tmppath}/%{name}-%{version}-build %if %{gcj_support} BuildRequires: java-gcj-compat-devel Requires(post): java-gcj-compat Requires(postun): java-gcj-compat %endif %description AdaptX is an extensible stylesheet language (XSL) processor. %package javadoc License: BSD 3-Clause PreReq: coreutils Group: Development/Libraries/Java Summary: Javadoc for adaptx Requires(post): /bin/rm,/bin/ln Requires(postun): /bin/rm %description javadoc This package contains the javadoc documentation for AdaptX. %package doc License: BSD 3-Clause Summary: Documentation for adaptx Group: Development/Libraries/Java %description doc This package contains the documentation for AdaptX. %prep %setup -q -n %{name}-%{version}-src # remove CVS internal files for dir in `find . -type d -name CVS`; do rm -rf $dir; done # remove all binary libs for j in $(find . -name "*.jar"); do mv $j $j.no done %patch0 %patch1 %build perl -p -i -e 's|classic|modern|' src/build.xml #export CLASSPATH=$(build-classpath js log4j xerces-j2 xml-commons-apis) export CLASSPATH=$(build-classpath xml-commons-apis log4j xerces-j2) ant -Dant.build.javac.source=1.4 -Dant.build.javac.target=1.4 -buildfile src/build.xml jar javadoc CLASSPATH=$CLASSPATH:dist/adaptx_%{version}.jar ant -Dant.build.javac.source=1.4 -Dant.build.javac.target=1.4 -buildfile src/build.xml doc %install # jar install -d -m 755 $RPM_BUILD_ROOT%{_javadir} install -m 644 dist/%{name}_%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar (cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} ${jar/-%{version}/}; done) # javadoc install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} cp -pr build/doc/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} rm -rf build/doc/javadoc %if %{gcj_support} %{_bindir}/aot-compile-rpm %endif %clean rm -rf $RPM_BUILD_ROOT %post javadoc rm -f %{_javadocdir}/%{name} ln -s %{name}-%{version} %{_javadocdir}/%{name} %postun javadoc if [ "$1" = "0" ]; then rm -f %{_javadocdir}/%{name} fi %if %{gcj_support} %post if [ -x %{_bindir}/rebuild-gcj-db ] then %{_bindir}/rebuild-gcj-db fi %endif %if %{gcj_support} %postun if [ -x %{_bindir}/rebuild-gcj-db ] then %{_bindir}/rebuild-gcj-db fi %endif %files %defattr(0664,root,root,0755) %doc src/etc/{CHANGELOG,contributors.html,LICENSE} %{_javadir}/* %if %{gcj_support} %attr(-,root,root) %{_libdir}/gcj/%{name} %endif %files javadoc %defattr(0664,root,root,0755) %{_javadocdir}/%{name}-%{version} %files doc %defattr(0664,root,root,0755) %doc build/doc/* %changelog * Thu Feb 28 2008 mvyskocil@suse.cz - Adopted from jpackage(1.7) - New version 0.9.13 - Fixed bug where normalize-space() function required an argument. With no arguments, it now correctly defaults to the context node. (kvisco - 20050114) - Backed out previous fix in 0.9.12. It was an incorrect fix, there was actually no bug with the node-set comparisons after triple-checking the XPath spec. When comparing two nodesets sometimes they can both be equal and not-equal at the same time, and sometimes they can both be never and equal, and never not-equal. It's very confusing, but the previous implementation had it correct. - Fixed bug in EqualyExprImpl with respect to the NOT_EQUALS operator (!=) when used with NodeSet comparisons. - Fixed issue with xsl:sort that was restricting the result of the expression specified by the select attribute to be a node-set, instead of any valid XPath result. - Fixed some NullPointerExceptions that were occurring when attempting to create a StringResult with a null value. - Fixed issue of possible incorrect context node when processing certain expressions at the top-level. - Fixed parse error when using variables in union expressions. - Fixed issue with using the node-test keywords in attribute expressions (eg: @text, @node, @pi) - Added some improvements to the expressions API to allow greater ability to "drill-down" and get to the core components of the XPath expressions. - Fixes issue with error occuring when "xml prefix" is being declared by Xerces. Normally, the "xml" prefix shouldn't be declared, but Xerces declares this, probably as a convenience. The error is changed to check only for a redefinition of the "xml" prefix to a non-valid URI. - Made some improvements to the XPath expressions package to allow improved accessibility to the components of a given expression. Improvements include the ability to obtain the Operator type of a BinaryExpr and a new GroupedExpression interface for expressions wrapped in parenthesis. (kvisco - 2003-10-06) - Added Identity transformation support in the JAXP implementation (kvisco - 2003-10-06) - Fixed *static* variable bug in the Lexer, should fix some problems with certain operators being treated as a function name. This was a regression from 0.9.5 (I think). (kvisco - 2003-10-02) - Added support for URIResolver in the JAXP implementation (kvisco - 2003-10-01) - Fixed document-base bug with document() function (kvisco - 2003-09-28) - Updated to support JAXP. The user must first configure their environment by setting within the system properties the JAXP property: javax.xml.transform.TransformerFactory to the value of: org.exolab.adaptx.jaxp.transform.TransformerFactoryImpl (kvisco - 2003-09-09) - Compiled by icedtea * Fri Sep 15 2006 ro@suse.de - set source=1.4 for java * Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires * Wed Jul 27 2005 jsmeix@suse.de - Adjustments in the spec file. * Mon Jul 18 2005 jsmeix@suse.de - Current version 0.9.6 from JPackage.org * Thu Sep 16 2004 skh@suse.de - Fix prerequires of javadoc subpackage * Sun Sep 05 2004 skh@suse.de - Initial package created with version 0.9.6 (JPackage 1.5)