opentest4j/opentest4j.spec
2019-12-05 14:36:46 +08:00

52 lines
1.5 KiB
RPMSpec

Name: opentest4j
Version: 1.0.0
Release: 4
Summary: JVM Open Test Alliance
License: ASL 2.0
URL: https://github.com/ota4j-team/opentest4j
BuildArch: noarch
Source0: https://github.com/ota4j-team/opentest4j/archive/r%{version}.tar.gz
Source1: https://repo1.maven.org/maven2/org/opentest4j/opentest4j/%{version}/opentest4j-%{version}.pom
BuildRequires: maven-local mvn(junit:junit)
%description
The JVM's Open Test Alliance is the smallest universal foundation for testing libraries on the JVM.
The main goal of this project is to enable testing frameworks (such as JUnit, TestNG, Spock, etc.)
and third-party assertion libraries (such as Hamcrest, AssertJ, etc.) to use a common set of
exceptions that IDE and build tools can consistently support. Ways across all test scenarios-for
example, to consistently handle failed assertions and failed assumptions and to visualize test
execution in IDEs and reports.
%package help
Summary: Help documents for opentest4j
Provides: %{name}-javadoc = %{version}-%{release}
Obsoletes: %{name}-javadoc < %{version}-%{release}
%description help
Help documents for opentest4j.
%prep
%autosetup -n opentest4j-r%{version} -p1
find -name \*.jar -delete
cp -p %{SOURCE1} pom.xml
%pom_add_dep junit:junit:4.12:test
%build
%mvn_build
%install
%mvn_install
%files -f .mfiles
%license LICENSE
%doc README.md
%files help -f .mfiles-javadoc
%changelog
* Tue Dec 3 2019 duyeyu <duyeyu@huawei.com> - 1.0.0-4
- Package init