79 lines
2.7 KiB
RPMSpec
79 lines
2.7 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
|
|
%pom_xpath_inject pom:project "
|
|
<build>
|
|
<pluginManagement>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<configuration>
|
|
<archive>
|
|
<manifestEntries>
|
|
<Automatic-Module-Name>org.opentest4j</Automatic-Module-Name>
|
|
<Implementation-Title>opentest4j</Implementation-Title>
|
|
<Implementation-Vendor>opentest4j.org</Implementation-Vendor>
|
|
<Implementation-Version>%{version}</Implementation-Version>
|
|
<Specification-Title>opentest4j</Specification-Title>
|
|
<Specification-Vendor>opentest4j.org</Specification-Vendor>
|
|
<Specification-Version>%{version}</Specification-Version>
|
|
<!-- OSGi metadata required by Eclipse -->
|
|
<Bundle-ManifestVersion>2</Bundle-ManifestVersion>
|
|
<Bundle-SymbolicName>org.opentest4j</Bundle-SymbolicName>
|
|
<Bundle-Version>%{version}</Bundle-Version>
|
|
<Export-Package>org.opentest4j;version=\"%{version}\"</Export-Package>
|
|
</manifestEntries>
|
|
</archive>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</pluginManagement>
|
|
</build>"
|
|
|
|
%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
|