Files
testng-engine/testng-engine.spec

75 lines
2.1 KiB
RPMSpec

#
# spec file for package testng-engine
#
# Copyright (c) 2025 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/
#
Name: testng-engine
Version: 1.0.5
Release: 0
Summary: TestNG Engine for the JUnit Platform
License: EPL-2.0
Group: Development/Libraries/Java
URL: https://github.com/junit-team/%{name}
Source0: https://github.com/junit-team/%{name}/archive/refs/tags/r%{version}.tar.gz
Source1: https://repo1.maven.org/maven2/org/junit/support/%{name}/%{version}/%{name}-%{version}.pom
BuildRequires: fdupes
BuildRequires: maven-local
BuildRequires: mvn(org.apiguardian:apiguardian-api)
BuildRequires: mvn(org.junit:junit-bom:pom:)
BuildRequires: mvn(org.junit.platform:junit-platform-engine)
BuildRequires: mvn(org.testng:testng)
BuildArch: noarch
%description
Allows executing TestNG tests on the JUnit Platform.
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
API documentation for %{name}.
%prep
%autosetup -n %{name}-r%{version}
cp %{SOURCE1} pom.xml
mv src/module/java/module-info.java src/main/java
%pom_change_dep org.testng:testng :::compile
%pom_add_dep org.apiguardian:apiguardian-api
%{mvn_file} : %{name}
%build
%{mvn_build} -f -- \
-Dmaven.compiler.{source,target}=9
%install
%mvn_install
%fdupes %{buildroot}%{_javadocdir}/%{name}
%files -f .mfiles
%license LICENSE.md
%doc README.adoc
%files javadoc -f .mfiles-javadoc
%license LICENSE.md
%changelog