File dom4j.spec of Package dom4j

#
# spec file for "dom4j"
#
# Copyright (c) 2020 Stefan Bluhm
#
# 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/
#

Name:           dom4j
Version:        2.1.3 
Release:        1
License:        BSD
Summary:        Open Source XML framework for Java
Group:          Development/Libraries/Java
Source0:        dom4j-2.1.3.tar.gz
Source1:        build.sh
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  xz
BuildRequires:  java-devel
BuildRequires:  dom4j-kit == beb45fe1a33432028eed53620bfd8bfc068b6dd4
BuildArch:      noarch
Requires:       java

%description
dom4j is an Open Source XML framework for Java. dom4j allows you to read,
write, navigate, create and modify XML documents. dom4j integrates with
DOM and SAX and is seamlessly integrated with full XPath support.

%prep
%setup -q -c -n src
cp -f %{SOURCE1} .
cp -Rf %{_datadir}/tetra ../kit

%build
cd ..
sh src/build.sh

%install
export NO_BRP_CHECK_BYTECODE_VERSION=true
mkdir -p %{buildroot}%{_javadir}
cp -a dom4j-version-2.1.3/build/libs/dom4j.jar %{buildroot}%{_javadir}/dom4j.jar
cp -a dom4j-version-2.1.3/build/tmp/expandedArchives/org.jacoco.agent-0.8.5.jar_6a2df60c47de373ea127d14406367999/jacocoagent.jar %{buildroot}%{_javadir}/jacocoagent.jar

%files
%defattr(-,root,root)
%{_javadir}/*

%changelog
openSUSE Build Service is sponsored by