2008-09-24 15:17:15 +02:00
|
|
|
#
|
2011-09-23 10:24:14 +02:00
|
|
|
# spec file for package dom2-core-tests
|
2008-09-24 15:17:15 +02:00
|
|
|
#
|
2024-02-21 09:42:43 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2008-09-24 15:17:15 +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.
|
|
|
|
|
2024-02-21 09:42:43 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-09-24 15:17:15 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define section free
|
|
|
|
Name: dom2-core-tests
|
2017-09-15 09:48:16 +02:00
|
|
|
Version: 0.0.1
|
|
|
|
Release: 0
|
2008-09-24 15:17:15 +02:00
|
|
|
Summary: DOM Conformance Test Suite
|
2012-03-27 11:18:27 +02:00
|
|
|
License: W3C
|
2013-08-23 09:50:44 +02:00
|
|
|
Group: Development/Libraries/Java
|
2024-02-21 09:42:43 +01:00
|
|
|
URL: http://www.w3.org/DOM/Test/
|
2008-09-24 15:17:15 +02:00
|
|
|
Source0: http://www.w3.org/2004/04/dom2-core-tests-20040405.jar
|
|
|
|
Source1: LICENSE.html
|
|
|
|
Patch0: dom2-core-tests-build_xml.patch
|
|
|
|
BuildRequires: ant
|
2018-05-16 13:52:54 +02:00
|
|
|
BuildRequires: java-devel >= 1.8
|
2013-09-09 13:52:36 +02:00
|
|
|
BuildRequires: javapackages-tools
|
2008-09-24 15:17:15 +02:00
|
|
|
BuildRequires: junit
|
2013-08-23 09:50:44 +02:00
|
|
|
BuildRequires: unzip
|
2017-09-15 09:48:16 +02:00
|
|
|
BuildArch: noarch
|
2008-09-24 15:17:15 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
The DOM Test Suites (DOM TS) will consist of a number of tests for each
|
|
|
|
level of the DOM specification. The tests will be represented in an XML
|
|
|
|
grammar which ensures that tests can easily be ported from the
|
|
|
|
description format to a number of specific language bindings. This
|
|
|
|
grammar will be specified in XML Schema and DTD form. The grammar will
|
|
|
|
be automatically generated from the DOM specifications themselves, to
|
|
|
|
ensure stability and correctness.
|
|
|
|
|
|
|
|
%prep
|
2017-09-15 09:48:16 +02:00
|
|
|
%setup -q -c
|
2008-09-24 15:17:15 +02:00
|
|
|
rm -rf junit
|
|
|
|
find . -name "*.class" -exec rm {} \;
|
2024-02-21 09:42:43 +01:00
|
|
|
%patch -P 0 -b .orig
|
2008-09-24 15:17:15 +02:00
|
|
|
cp %{SOURCE1} .
|
2013-11-14 13:24:17 +01:00
|
|
|
# not compatible with junit 4
|
|
|
|
rm -rf org/w3c/domts/JUnitRunner.java
|
2008-09-24 15:17:15 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
export CLASSPATH=$(build-classpath junit)
|
2018-05-16 13:52:54 +02:00
|
|
|
ant -Dant.build.javac.source=8 -Dant.build.javac.target=8 dist
|
2008-09-24 15:17:15 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
# jars
|
2017-09-15 09:48:16 +02:00
|
|
|
install -d -m 0755 %{buildroot}%{_javadir}
|
2008-09-24 15:17:15 +02:00
|
|
|
vjar=$(echo %{name}.jar | sed s+.jar+-%{version}.jar+g)
|
2017-09-15 09:48:16 +02:00
|
|
|
install -m 644 %{name}-%{version}/%{name}.jar %{buildroot}%{_javadir}/$vjar
|
|
|
|
pushd %{buildroot}%{_javadir}
|
2008-09-24 15:17:15 +02:00
|
|
|
ln -fs $vjar %{name}.jar
|
|
|
|
popd
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc LICENSE.html
|
|
|
|
%{_javadir}/*
|
|
|
|
|
|
|
|
%changelog
|