2007-01-15 23:50:52 +01:00
|
|
|
#
|
2011-09-23 10:18:05 +02:00
|
|
|
# spec file for package adaptx
|
2007-01-15 23:50:52 +01:00
|
|
|
#
|
2018-05-15 08:04:48 +02:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-15 23:50:52 +01:00
|
|
|
#
|
2009-06-18 16:52:24 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-15 23:50:52 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-04-25 14:50:10 +02:00
|
|
|
Name: adaptx
|
|
|
|
Version: 0.9.13
|
2013-09-10 13:04:53 +02:00
|
|
|
Release: 0
|
2007-01-15 23:50:52 +01:00
|
|
|
Summary: XSLT Processor Written in Java
|
2011-12-06 17:57:26 +01:00
|
|
|
License: BSD-3-Clause
|
2007-01-15 23:50:52 +01:00
|
|
|
Group: Development/Libraries/Java
|
2018-05-15 08:04:48 +02:00
|
|
|
URL: http://castor.exolab.org/
|
2008-04-25 14:50:10 +02:00
|
|
|
Source0: %{name}-%{version}-src.tar.bz2
|
|
|
|
# svn export http://svn.codehaus.org/castor/adaptx
|
2007-01-15 23:50:52 +01:00
|
|
|
Patch0: %{name}-%{version}-xsl.patch
|
2008-04-25 14:50:10 +02:00
|
|
|
Patch1: %{name}-%{version}-icedtea-build.patch
|
|
|
|
BuildRequires: ant >= 1.6
|
2018-05-15 08:04:48 +02:00
|
|
|
BuildRequires: java-devel >= 1.7
|
2013-09-10 13:04:53 +02:00
|
|
|
BuildRequires: javapackages-tools
|
2008-04-25 14:50:10 +02:00
|
|
|
BuildRequires: log4j
|
|
|
|
BuildRequires: xerces-j2
|
2014-07-07 14:34:46 +02:00
|
|
|
BuildRequires: xerces-j2-xml-apis
|
2013-09-10 13:04:53 +02:00
|
|
|
BuildRequires: xml-commons-apis
|
2008-04-25 14:50:10 +02:00
|
|
|
Requires: log4j
|
|
|
|
Requires: xerces-j2
|
2013-09-10 13:04:53 +02:00
|
|
|
Requires: xml-commons-apis
|
2014-07-07 14:34:46 +02:00
|
|
|
BuildArch: noarch
|
2007-01-15 23:50:52 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
AdaptX is an extensible stylesheet language (XSL) processor.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: Javadoc for adaptx
|
2013-09-10 13:04:53 +02:00
|
|
|
Group: Development/Libraries/Java
|
2007-01-15 23:50:52 +01:00
|
|
|
|
|
|
|
%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
|
2008-04-25 14:50:10 +02:00
|
|
|
%setup -q -n %{name}-%{version}-src
|
2007-01-15 23:50:52 +01:00
|
|
|
# remove CVS internal files
|
|
|
|
for dir in `find . -type d -name CVS`; do rm -rf $dir; done
|
|
|
|
# remove all binary libs
|
2008-04-25 14:50:10 +02:00
|
|
|
for j in $(find . -name "*.jar"); do
|
|
|
|
mv $j $j.no
|
|
|
|
done
|
2007-01-15 23:50:52 +01:00
|
|
|
%patch0
|
2008-04-25 14:50:10 +02:00
|
|
|
%patch1
|
2007-01-15 23:50:52 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
perl -p -i -e 's|classic|modern|' src/build.xml
|
2014-07-07 14:34:46 +02:00
|
|
|
export CLASSPATH=$(build-classpath xml-commons-apis log4j xerces-j2 xerces-j2-xml-apis)
|
2018-05-15 08:04:48 +02:00
|
|
|
ant -Dant.build.javac.source=8 -Dant.build.javac.target=8 -buildfile src/build.xml jar javadoc
|
2008-04-25 14:50:10 +02:00
|
|
|
CLASSPATH=$CLASSPATH:dist/adaptx_%{version}.jar
|
2018-05-15 08:04:48 +02:00
|
|
|
ant -Dant.build.javac.source=8 -Dant.build.javac.target=8 -buildfile src/build.xml doc
|
2007-01-15 23:50:52 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
# jar
|
2014-07-07 14:34:46 +02:00
|
|
|
install -d -m 755 %{buildroot}%{_javadir}
|
|
|
|
install -m 644 dist/%{name}_%{version}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
|
|
|
|
(cd %{buildroot}%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} ${jar/-%{version}/}; done)
|
2007-01-15 23:50:52 +01:00
|
|
|
# javadoc
|
2014-07-11 15:49:50 +02:00
|
|
|
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
cp -pr build/doc/javadoc/* %{buildroot}%{_javadocdir}/%{name}
|
2007-01-15 23:50:52 +01:00
|
|
|
rm -rf build/doc/javadoc
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(0664,root,root,0755)
|
2014-07-07 14:34:46 +02:00
|
|
|
%doc src%{_sysconfdir}/{CHANGELOG,contributors.html,LICENSE}
|
2007-01-15 23:50:52 +01:00
|
|
|
%{_javadir}/*
|
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%defattr(0664,root,root,0755)
|
2014-07-11 15:49:50 +02:00
|
|
|
%{_javadocdir}/%{name}
|
2007-01-15 23:50:52 +01:00
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(0664,root,root,0755)
|
|
|
|
%doc build/doc/*
|
|
|
|
|
2008-04-25 14:50:10 +02:00
|
|
|
%changelog
|