2007-01-16 00:42:13 +01:00
|
|
|
#
|
2011-03-14 16:49:30 +01:00
|
|
|
# spec file for package xerces-j2
|
2007-01-16 00:42:13 +01:00
|
|
|
#
|
2014-06-06 16:33:23 +02:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:42:13 +01:00
|
|
|
#
|
2008-11-18 00:20:42 +01: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-16 00:42:13 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-02-29 21:29:11 +01:00
|
|
|
|
2014-06-06 16:33:23 +02:00
|
|
|
%define cvs_version 2_11_0
|
2007-01-16 00:42:13 +01:00
|
|
|
%define release 3jpp
|
|
|
|
%define section free
|
2014-06-06 17:51:38 +02:00
|
|
|
Name: xerces-j2
|
2014-06-06 16:33:23 +02:00
|
|
|
Version: 2.11.0
|
2013-01-08 14:11:16 +01:00
|
|
|
Release: 0
|
2007-01-16 00:42:13 +01:00
|
|
|
Summary: Java XML parser
|
2012-11-20 14:49:13 +01:00
|
|
|
License: Apache-2.0
|
2007-01-16 00:42:13 +01:00
|
|
|
Group: Development/Libraries/Java
|
2013-01-08 14:11:16 +01:00
|
|
|
Url: http://xml.apache.org/xerces2-j/
|
2014-06-06 16:33:23 +02:00
|
|
|
Source0: http://www.eu.apache.org/dist/xerces/j/source/Xerces-J-src.%{version}.tar.gz
|
2014-06-06 17:44:19 +02:00
|
|
|
Source1: http://www.eu.apache.org/dist/xerces/j/source/Xerces-J-tools.%{version}.tar.gz
|
|
|
|
Source2: %{name}-version.sh
|
|
|
|
Source3: %{name}-version.1
|
|
|
|
Source4: %{name}-constants.sh
|
|
|
|
Source5: %{name}-constants.1
|
2007-01-16 00:42:13 +01:00
|
|
|
# some build requirements removed to enable jpackage bootstrap. this is
|
|
|
|
# the first package built, and we use the libraries in the tools subdir
|
|
|
|
# for it.
|
2011-03-14 14:00:36 +01:00
|
|
|
BuildRequires: java-1_5_0-gcj-compat-devel
|
2011-03-14 14:06:09 +01:00
|
|
|
#!BuildIgnore: java-1_6_0-openjdk java-1_6_0-openjdk-devel
|
2011-03-14 14:00:36 +01:00
|
|
|
#!BuildIgnore: antlr antlr-java
|
2013-09-09 14:02:14 +02:00
|
|
|
BuildRequires: javapackages-tools
|
2011-03-14 14:00:36 +01:00
|
|
|
BuildRequires: unzip
|
2014-06-06 17:51:38 +02:00
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(pre): update-alternatives
|
|
|
|
Provides: jaxp_parser_impl
|
2007-01-16 00:42:13 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-06-06 17:51:38 +02:00
|
|
|
BuildArch: noarch
|
2007-01-16 00:42:13 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Welcome to the future! Xerces2 is the next generation of high
|
|
|
|
performance, fully compliant XML parsers in the Apache Xerces family.
|
|
|
|
This new version of Xerces introduces the Xerces Native Interface
|
|
|
|
(XNI), a complete framework for building parser components and
|
|
|
|
configurations that is extremely modular and easy to program.
|
|
|
|
|
|
|
|
The Apache Xerces2 parser is the reference implementation of XNI but
|
|
|
|
other parser components, configurations, and parsers can be written
|
|
|
|
using the Xerces Native Interface. For complete design and
|
|
|
|
implementation documents, refer to the XNI Manual.
|
|
|
|
|
|
|
|
Xerces 2 is a fully conforming XML Schema processor. For more
|
|
|
|
information, refer to the XML Schema page.
|
|
|
|
|
|
|
|
Xerces 2 also provides a partial implementation of Document Object
|
|
|
|
Model Level 3 Core, Load and Save and Abstract Schemas [deprecated]
|
|
|
|
Working Drafts. For more information, refer to the DOM Level 3
|
|
|
|
Implementation page.
|
|
|
|
|
|
|
|
%package demo
|
2009-09-02 18:28:13 +02:00
|
|
|
Summary: Demonstration and sample files for xerces-j2
|
2007-01-16 00:42:13 +01:00
|
|
|
Group: Development/Libraries/Java
|
2009-09-02 18:28:13 +02:00
|
|
|
Requires: %{name} = %{version}
|
2007-01-16 00:42:13 +01:00
|
|
|
|
|
|
|
%description demo
|
|
|
|
Welcome to the future! Xerces2 is the next generation of high
|
|
|
|
performance, fully compliant XML parsers in the Apache Xerces family.
|
|
|
|
This new version of Xerces introduces the Xerces Native Interface
|
|
|
|
(XNI), a complete framework for building parser components and
|
|
|
|
configurations that is extremely modular and easy to program.
|
|
|
|
|
|
|
|
The Apache Xerces2 parser is the reference implementation of XNI but
|
|
|
|
other parser components, configurations, and parsers can be written
|
|
|
|
using the Xerces Native Interface. For complete design and
|
|
|
|
implementation documents, refer to the XNI Manual.
|
|
|
|
|
|
|
|
Xerces 2 is a fully conforming XML Schema processor. For more
|
|
|
|
information, refer to the XML Schema page.
|
|
|
|
|
|
|
|
Xerces 2 also provides a partial implementation of Document Object
|
|
|
|
Model Level 3 Core, Load and Save and Abstract Schemas [deprecated]
|
|
|
|
Working Drafts. For more information, refer to the DOM Level 3
|
|
|
|
Implementation page.
|
|
|
|
|
|
|
|
This package contains demonstration and sample files for Xerces2.
|
|
|
|
|
|
|
|
%package scripts
|
2009-09-02 18:28:13 +02:00
|
|
|
Summary: Additional utility scripts for xerces-j2
|
2007-01-16 00:42:13 +01:00
|
|
|
Group: Development/Libraries/Java
|
2009-09-02 18:28:13 +02:00
|
|
|
Requires: %{name} = %{version}
|
2013-09-09 14:02:14 +02:00
|
|
|
Requires: javapackages-tools
|
2007-01-16 00:42:13 +01:00
|
|
|
|
|
|
|
%description scripts
|
|
|
|
Welcome to the future! Xerces2 is the next generation of high
|
|
|
|
performance, fully compliant XML parsers in the Apache Xerces family.
|
|
|
|
This new version of Xerces introduces the Xerces Native Interface
|
|
|
|
(XNI), a complete framework for building parser components and
|
|
|
|
configurations that is extremely modular and easy to program.
|
|
|
|
|
|
|
|
The Apache Xerces2 parser is the reference implementation of XNI but
|
|
|
|
other parser components, configurations, and parsers can be written
|
|
|
|
using the Xerces Native Interface. For complete design and
|
|
|
|
implementation documents, refer to the XNI Manual.
|
|
|
|
|
|
|
|
Xerces 2 is a fully conforming XML Schema processor. For more
|
|
|
|
information, refer to the XML Schema page.
|
|
|
|
|
|
|
|
Xerces 2 also provides a partial implementation of Document Object
|
|
|
|
Model Level 3 Core, Load and Save and Abstract Schemas [deprecated]
|
|
|
|
Working Drafts. For more information, refer to the DOM Level 3
|
|
|
|
Implementation page.
|
|
|
|
|
|
|
|
This package contains additional utility scripts for Xerces2.
|
|
|
|
|
2007-01-16 20:18:40 +01:00
|
|
|
%package xml-resolver
|
|
|
|
Summary: Resolver subproject of xml-commons
|
|
|
|
Group: Development/Libraries/Java
|
2013-09-09 14:02:14 +02:00
|
|
|
Requires: javapackages-tools
|
2014-06-06 17:51:38 +02:00
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(pre): update-alternatives
|
2007-01-16 20:18:40 +01:00
|
|
|
Provides: xml-commons-resolver
|
|
|
|
|
2014-06-06 17:52:54 +02:00
|
|
|
%description xml-resolver
|
2011-09-16 15:10:55 +02:00
|
|
|
xml-commons is focused on common code and guidelines for xml projects.
|
2007-01-16 20:18:40 +01:00
|
|
|
The first focus will be to organize and have common packaging for the
|
|
|
|
various externally-defined standards code relating to XML - things like
|
|
|
|
the DOM, SAX, and JAXP interfaces.
|
|
|
|
|
|
|
|
This package contains the resolver subproject of xml-commons.
|
|
|
|
|
|
|
|
%package xml-apis
|
|
|
|
Summary: APIs subproject of xml-commons
|
|
|
|
Group: Development/Libraries/Java
|
2013-09-09 14:02:14 +02:00
|
|
|
Requires: javapackages-tools
|
2014-06-06 17:51:38 +02:00
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(pre): update-alternatives
|
2007-01-16 20:18:40 +01:00
|
|
|
Provides: xml-commons-apis
|
|
|
|
|
2014-06-06 17:51:38 +02:00
|
|
|
%description xml-apis
|
2007-01-16 20:18:40 +01:00
|
|
|
xml-commons is focused on common code and guidelines for xml projects.
|
2011-09-16 15:10:55 +02:00
|
|
|
Its first focus will be to organize and have common packaging for the
|
2007-01-16 20:18:40 +01:00
|
|
|
various externally-defined standards code relating to XML - things like
|
|
|
|
the DOM, SAX, and JAXP interfaces. As the xml-commons community forms,
|
|
|
|
we also hope to serve as a holding area for other common xml-related
|
|
|
|
utilities and code, and to help promulgate common packaging, testing,
|
|
|
|
documentation, and other guidelines across all xml.apache.org
|
|
|
|
subprojects.
|
|
|
|
|
|
|
|
This package contains the APIs subproject of xml-commons.
|
|
|
|
|
2007-01-16 00:42:13 +01:00
|
|
|
%prep
|
|
|
|
%setup -q -n xerces-%{cvs_version}
|
2014-06-06 17:44:19 +02:00
|
|
|
%setup -q -T -a 1 -D -n xerces-%{cvs_version}
|
2014-06-06 17:51:38 +02:00
|
|
|
%setup -q -T -D -n xerces-%{cvs_version}
|
2014-06-06 16:33:23 +02:00
|
|
|
|
2014-06-06 17:44:19 +02:00
|
|
|
echo 'javac.target=1.5' > build.properties
|
|
|
|
echo 'javac.source=1.5' >> build.properties
|
2014-06-06 16:33:23 +02:00
|
|
|
|
|
|
|
sed -i 's/\r//' LICENSE README NOTICE build.sh
|
2007-01-16 00:42:13 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
## this uses the ant.jar provided by the xerces packages. Tough luck,
|
|
|
|
# jpackage bootstrap has to start somewhere. It is not installed,
|
|
|
|
# though.
|
2013-08-23 14:25:19 +02:00
|
|
|
export JAVA_HOME=%{_libdir}/jvm/java-1.5.0-gcj
|
2009-09-02 18:28:13 +02:00
|
|
|
export GC_MAXIMUM_HEAP_SIZE="134217728"
|
2011-03-14 14:00:36 +01:00
|
|
|
export CLASSPATH=$CLASSPATH:`build-classpath antlr-bootstrap`
|
2007-01-16 00:42:13 +01:00
|
|
|
sh build.sh jars
|
2013-08-23 14:25:19 +02:00
|
|
|
#ant tests test
|
2007-01-16 00:42:13 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
# jars
|
2014-06-06 17:51:38 +02:00
|
|
|
mkdir -p %{buildroot}%{_javadir}
|
|
|
|
cp -p build/xercesImpl.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
|
|
|
|
cp -p build/resolver.jar %{buildroot}%{_javadir}/%{name}-%{version}-xml-resolver.jar
|
|
|
|
cp -p build/xml-apis.jar %{buildroot}%{_javadir}/%{name}-%{version}-xml-apis.jar
|
|
|
|
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
|
2007-01-16 00:42:13 +01:00
|
|
|
# scripts
|
2014-06-06 17:51:38 +02:00
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
cp -p %{SOURCE2} %{buildroot}%{_bindir}/%{name}-version
|
|
|
|
cp -p %{SOURCE4} %{buildroot}%{_bindir}/%{name}-constants
|
2014-06-06 17:44:19 +02:00
|
|
|
# mans
|
|
|
|
install -d -m 755 %{buildroot}%{_mandir}/man1
|
|
|
|
install -p -m 644 %{SOURCE3} %{buildroot}%{_mandir}/man1
|
|
|
|
install -p -m 644 %{SOURCE5} %{buildroot}%{_mandir}/man1
|
2007-01-16 00:42:13 +01:00
|
|
|
# demo
|
2014-06-06 17:51:38 +02:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/%{name}
|
2007-01-16 00:42:13 +01:00
|
|
|
cp -p build/xercesSamples.jar \
|
2014-06-06 17:51:38 +02:00
|
|
|
%{buildroot}%{_datadir}/%{name}/%{name}-samples.jar
|
|
|
|
cp -pr data %{buildroot}%{_datadir}/%{name}
|
2007-01-16 00:42:13 +01:00
|
|
|
# jaxp_parser_impl ghost symlink
|
|
|
|
ln -s %{_sysconfdir}/alternatives \
|
2014-06-06 17:51:38 +02:00
|
|
|
%{buildroot}%{_javadir}/jaxp_parser_impl.jar
|
2007-01-16 00:42:13 +01:00
|
|
|
# xml-apis ghost symlink
|
|
|
|
ln -s %{_sysconfdir}/alternatives \
|
2014-06-06 17:51:38 +02:00
|
|
|
%{buildroot}%{_javadir}/xml-commons-apis.jar
|
2007-01-16 00:42:13 +01:00
|
|
|
# xml-resolver ghost symlink
|
|
|
|
ln -s %{_sysconfdir}/alternatives \
|
2014-06-06 17:51:38 +02:00
|
|
|
%{buildroot}%{_javadir}/xml-commons-resolver.jar
|
2007-01-16 00:42:13 +01:00
|
|
|
|
|
|
|
%post
|
2014-06-06 17:51:38 +02:00
|
|
|
%{_sbindir}/update-alternatives --install %{_javadir}/jaxp_parser_impl.jar jaxp_parser_impl %{_javadir}/%{name}.jar 23
|
|
|
|
%{_sbindir}/update-alternatives --auto jaxp_parser_impl
|
2007-01-16 20:18:40 +01:00
|
|
|
|
|
|
|
%post xml-apis
|
2014-06-06 17:51:38 +02:00
|
|
|
%{_sbindir}/update-alternatives --install %{_javadir}/xml-commons-apis.jar xml-commons-apis %{_javadir}/%{name}-xml-apis.jar 1
|
|
|
|
%{_sbindir}/update-alternatives --auto xml-commons-apis
|
2007-01-16 20:18:40 +01:00
|
|
|
|
|
|
|
%post xml-resolver
|
2014-06-06 17:51:38 +02:00
|
|
|
%{_sbindir}/update-alternatives --install %{_javadir}/xml-commons-resolver.jar xml-commons-resolver %{_javadir}/%{name}-xml-resolver.jar 1
|
|
|
|
%{_sbindir}/update-alternatives --auto xml-commons-resolver
|
2007-01-16 00:42:13 +01:00
|
|
|
|
|
|
|
%preun
|
|
|
|
{
|
|
|
|
[ $1 = 0 ] || exit 0
|
2014-06-06 17:51:38 +02:00
|
|
|
%{_sbindir}/update-alternatives --remove jaxp_parser_impl %{_javadir}/%{name}.jar
|
2007-01-16 20:18:40 +01:00
|
|
|
} >/dev/null 2>&1 || :
|
|
|
|
|
|
|
|
%preun xml-apis
|
|
|
|
{
|
|
|
|
[ $1 = 0 ] || exit 0
|
2014-06-06 17:51:38 +02:00
|
|
|
%{_sbindir}/update-alternatives --remove xml-commons-apis %{_javadir}/%{name}-xml-apis.jar
|
2007-01-16 20:18:40 +01:00
|
|
|
} >/dev/null 2>&1 || :
|
|
|
|
|
|
|
|
%preun xml-resolver
|
|
|
|
{
|
|
|
|
[ $1 = 0 ] || exit 0
|
2014-06-06 17:51:38 +02:00
|
|
|
%{_sbindir}/update-alternatives --remove xml-commons-resolver %{_javadir}/%{name}-xml-commons-resolver.jar
|
2007-01-16 00:42:13 +01:00
|
|
|
} >/dev/null 2>&1 || :
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(0644,root,root,0755)
|
2014-06-06 17:44:19 +02:00
|
|
|
%doc LICENSE README
|
2007-01-16 20:18:40 +01:00
|
|
|
%{_javadir}/%{name}-%{version}.jar
|
|
|
|
%{_javadir}/%{name}.jar
|
2007-01-16 00:42:13 +01:00
|
|
|
%ghost %{_javadir}/jaxp_parser_impl.jar
|
2007-01-16 20:18:40 +01:00
|
|
|
|
|
|
|
%files xml-apis
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%{_javadir}/%{name}-%{version}-xml-apis.jar
|
|
|
|
%{_javadir}/%{name}-xml-apis.jar
|
2007-01-16 00:42:13 +01:00
|
|
|
%ghost %{_javadir}/xml-commons-apis.jar
|
2007-01-16 20:18:40 +01:00
|
|
|
|
|
|
|
%files xml-resolver
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%{_javadir}/%{name}-%{version}-xml-resolver.jar
|
|
|
|
%{_javadir}/%{name}-xml-resolver.jar
|
2007-01-16 00:42:13 +01:00
|
|
|
%ghost %{_javadir}/xml-commons-resolver.jar
|
|
|
|
|
|
|
|
%files demo
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%{_datadir}/%{name}
|
|
|
|
|
|
|
|
%files scripts
|
|
|
|
%defattr(0755,root,root,0755)
|
|
|
|
%{_bindir}/*
|
2014-06-06 17:51:38 +02:00
|
|
|
%{_mandir}/man1/*
|
2007-01-16 00:42:13 +01:00
|
|
|
|
2007-05-03 23:10:21 +02:00
|
|
|
%changelog
|