File quartz.spec of Package quartz
#
# spec file for "quartz"
#
# Copyright (c) 2017 SUSE LINUX 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/
#
Name: quartz
Version: 2.3.0
Release: 1
License: Apache-2.0
Summary: Quartz is a full-featured, open source job scheduling
Url: http://www.quartz-scheduler.org
Group: Development/Libraries/Java
Source0: quartz-2.3.0.tar.gz
Source1: build.sh
Patch0: 0001-jdk10-compatibility-fix.patch
Patch1: 0002-add-CORBA-build-dependency.patch
Patch2: 0003-remove-CORBA-dependency.patch
Patch3: fix-XXE-in-initDocumentParser.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: xz
BuildRequires: subversion
BuildRequires: java-devel
BuildRequires: quartz-kit == 051463d5d44c806dbf5bf2c4ee6402ba7950160e
BuildArch: noarch
Provides: mvn(org.quartz-scheduler:quartz) == 2.3.0
Requires: java
%description
Quartz is a full-featured, open source job scheduling system that can be integrated with, or used along side virtually any J2EE or J2SE
%prep
%setup -q -c -n src
%patch0 -p2
%patch1 -p2
%patch2 -p2
%patch3 -p1
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 quartz-quartz-2.3.0/quartz/target/quartz-2.3.0-SNAPSHOT.jar %{buildroot}%{_javadir}/quartz-2.3.0.jar
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
%files
%defattr(-,root,root)
%{_javadir}/*
%changelog