File spark-kit.spec of Package spark-kit
#
# spec file for package spark-kit
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2017 cadenzajon
#
# 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 https://bugs.opensuse.org/
#
Name: spark-kit
Version: 1.6.3
Release: 0
License: NonFree
Summary: Build-time dependency of project "spark"
URL: https://github.com/SilvioMoioli/tetra
Group: Development/Libraries/Java
Source0: %{name}.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
BuildRequires: fdupes
BuildRequires: xz
BuildRequires: zip
Provides: tetra-kit
Conflicts: otherproviders(tetra-kit)
%description
This package has been automatically created by tetra in order to
satisfy build time dependencies of Java packages.
It should not be used except for rebuilding other packages,
thus it should never be installed on end users' systems.
%prep
%setup -q -n kit
%build
# nothing to do, precompiled by design
# avoid log4j security bugs by removing classes
zip -q -d m2/log4j/log4j/1.2.12/log4j-1.2.12.jar org/apache/logging/log4j/core/lookup/JndiLookup.class org/apache/log4j/net/JMSAppender.class org/apache/log4j/jdbc/JDBCAppender.class org/apache/log4j/net/JMSSink.class org/apache/log4j/chainsaw"*"
echo -n 70fb617a08c071820608ec3db3bb79bc5f43689d > m2/log4j/log4j/1.2.12/log4j-1.2.12.jar.sha1
zip -q -d m2/log4j/log4j/1.2.17/log4j-1.2.17.jar org/apache/logging/log4j/core/lookup/JndiLookup.class org/apache/log4j/net/JMSAppender.class org/apache/log4j/jdbc/JDBCAppender.class org/apache/log4j/net/JMSSink.class org/apache/log4j/chainsaw"*"
echo -n d138b8e9e1ecabcfdeb0e2a2a2b65a2abbdb2c59 > m2/log4j/log4j/1.2.17/log4j-1.2.17.jar.sha1
%install
export NO_BRP_CHECK_BYTECODE_VERSION=true
install -d -m 0755 %{buildroot}%{_datadir}/tetra/
cp -a * %{buildroot}%{_datadir}/tetra/
%fdupes -s %{buildroot}%{_datadir}/tetra/
%files
%defattr(-,root,root)
%{_datadir}/tetra/
%changelog