Files
toolfactory-jvm-driver/toolfactory-jvm-driver.spec

74 lines
2.2 KiB
RPMSpec

#
# spec file
#
# Copyright (c) 2023 SUSE LLC
#
# 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/
#
%global short_name jvm-driver
Name: toolfactory-%{short_name}
Version: 9.4.3
Release: 0
Summary: A driver to allow deep interaction with the JVM without any restrictions
License: MIT
Group: Development/Libraries/Java
URL: https://github.com/toolfactory
Source0: %{url}/%{short_name}/archive/refs/tags/%{short_name}-%{version}.tar.gz
BuildRequires: java-devel >= 1.8
BuildRequires: maven-local
BuildRequires: mvn(io.github.toolfactory:narcissus)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires: mvn(org.codehaus.mojo:exec-maven-plugin)
BuildArch: noarch
%description
A driver to allow deep interaction with the JVM without any restrictions.
Extracted from Burningwave Core 8, fully refactored and with an extensible
architecture the JVM Driver allows a deep interaction with the JVM without any
restrictions.
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
API documentation for %{name}.
%prep
%setup -q -n %{short_name}-%{short_name}-%{version}
chmod 0755 java-hook/compileExternalClasses.sh
%pom_remove_plugin org.sonatype.plugins:nexus-staging-maven-plugin java
%pom_remove_plugin :maven-source-plugin java
%pom_remove_plugin :maven-javadoc-plugin java
%pom_xpath_set -r "pom:properties/pom:project_jdk_version" "8"
%{mvn_file} :{*} toolfactory/@1
%build
%{mvn_build} -f -- -Punix-profile -Dsource=8
%install
%mvn_install
%files -f .mfiles
%license LICENSE
%doc README.md
%files javadoc -f .mfiles-javadoc
%license LICENSE
%changelog