2021-05-17 16:01:47 +00:00
|
|
|
%bcond_with bootstrap
|
2021-04-16 13:33:12 +00:00
|
|
|
|
2017-09-14 13:07:45 +00:00
|
|
|
Name: opentest4j
|
2023-08-17 17:53:05 +00:00
|
|
|
Version: 1.3.0
|
2024-01-21 11:24:47 +00:00
|
|
|
Release: 3%{?dist}
|
2017-09-14 13:07:45 +00:00
|
|
|
Summary: Open Test Alliance for the JVM
|
2023-09-01 11:20:35 +00:00
|
|
|
License: Apache-2.0
|
2020-03-04 15:18:11 +00:00
|
|
|
URL: https://github.com/ota4j-team/opentest4j
|
|
|
|
BuildArch: noarch
|
2022-05-12 20:33:24 +00:00
|
|
|
ExclusiveArch: %{java_arches} noarch
|
2020-03-04 15:18:11 +00:00
|
|
|
|
2017-09-14 13:07:45 +00:00
|
|
|
Source0: https://github.com/ota4j-team/opentest4j/archive/r%{version}.tar.gz
|
|
|
|
Source100: https://repo1.maven.org/maven2/org/opentest4j/opentest4j/%{version}/opentest4j-%{version}.pom
|
|
|
|
|
2021-04-16 13:33:12 +00:00
|
|
|
%if %{with bootstrap}
|
|
|
|
BuildRequires: javapackages-bootstrap
|
|
|
|
%else
|
2022-06-14 06:03:17 +00:00
|
|
|
BuildRequires: maven-local
|
2017-09-14 13:07:45 +00:00
|
|
|
BuildRequires: mvn(junit:junit)
|
2021-04-16 13:33:12 +00:00
|
|
|
%endif
|
2017-09-14 13:07:45 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Open Test Alliance for the JVM is a minimal common foundation for
|
|
|
|
testing libraries on the JVM. The primary goal of the project is to
|
|
|
|
enable testing frameworks like JUnit, TestNG, Spock, etc. and
|
|
|
|
third-party assertion libraries like Hamcrest, AssertJ, etc. to use a
|
|
|
|
common set of exceptions that IDEs and build tools can support in a
|
|
|
|
consistent manner across all testing scenarios -- for example, for
|
|
|
|
consistent handling of failed assertions and failed assumptions as
|
|
|
|
well as visualization of test execution in IDEs and reports.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: Javadoc for %{name}
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
API documentation for %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n opentest4j-r%{version}
|
2017-09-15 10:05:15 +00:00
|
|
|
find -name \*.jar -delete
|
2017-09-14 13:07:45 +00:00
|
|
|
cp -p %{SOURCE100} pom.xml
|
|
|
|
|
2023-02-15 13:56:28 +00:00
|
|
|
mv src/module/java/* src/main/java
|
|
|
|
|
2020-03-04 15:18:11 +00:00
|
|
|
%pom_add_dep junit:junit::test
|
2017-09-14 13:07:45 +00:00
|
|
|
|
|
|
|
%pom_xpath_inject pom:project "
|
|
|
|
<build>
|
|
|
|
<pluginManagement>
|
|
|
|
<plugins>
|
2017-09-15 09:56:22 +00:00
|
|
|
<plugin>
|
2017-09-14 13:07:45 +00:00
|
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<archive>
|
|
|
|
<manifestEntries>
|
2017-09-15 10:03:53 +00:00
|
|
|
<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 -->
|
2017-09-14 13:07:45 +00:00
|
|
|
<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>
|
2017-09-15 09:56:22 +00:00
|
|
|
</plugin>
|
2023-02-15 13:56:28 +00:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>default-compile</id>
|
|
|
|
<goals>
|
|
|
|
<goal>compile</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<release>8</release>
|
|
|
|
<excludes>
|
|
|
|
<exclude>**/module-info.java</exclude>
|
|
|
|
</excludes>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>module-info</id>
|
|
|
|
<goals>
|
|
|
|
<goal>compile</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<release>9</release>
|
|
|
|
<includes>
|
|
|
|
<include>**/module-info.java</include>
|
|
|
|
</includes>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
2023-08-17 17:53:05 +00:00
|
|
|
<execution>
|
|
|
|
<id>default-testCompile</id>
|
|
|
|
<goals>
|
|
|
|
<goal>testCompile</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<release>11</release>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
2023-02-15 13:56:28 +00:00
|
|
|
</executions>
|
|
|
|
</plugin>
|
2017-09-14 13:07:45 +00:00
|
|
|
</plugins>
|
|
|
|
</pluginManagement>
|
|
|
|
</build>"
|
|
|
|
|
2019-03-05 12:57:57 +00:00
|
|
|
# Fix unused reference to unused dependency
|
|
|
|
# This is fixed upstream: https://github.com/ota4j-team/opentest4j/commit/70d3d54f2cd076a962e81d9510e6716f3cbf8060
|
|
|
|
sed -i -e '/org\.apache\.commons\.codec/d' src/test/java/org/opentest4j/AssertionFailedErrorTests.java
|
|
|
|
|
2017-09-14 13:07:45 +00:00
|
|
|
%build
|
2023-02-15 13:56:28 +00:00
|
|
|
%mvn_build
|
2017-09-14 13:07:45 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%mvn_install
|
|
|
|
|
|
|
|
%files -f .mfiles
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
|
|
|
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
%changelog
|
2024-01-21 11:24:47 +00:00
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
2023-09-01 11:20:35 +00:00
|
|
|
* Fri Sep 01 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.3.0-2
|
|
|
|
- Convert License tag to SPDX format
|
|
|
|
|
2023-08-17 17:53:05 +00:00
|
|
|
* Thu Aug 17 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.3.0-1
|
|
|
|
- Update to upstream version 1.3.0
|
|
|
|
|
2023-07-20 18:14:05 +00:00
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-14
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
2023-02-15 13:56:28 +00:00
|
|
|
* Wed Feb 15 2023 Marian Koncek <mkoncek@redhat.com> - 1.2.0-13
|
|
|
|
- Build with module-info
|
|
|
|
|
2023-01-19 22:59:49 +00:00
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-12
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
2022-07-22 02:16:44 +00:00
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-11
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-02-05 22:18:22 +00:00
|
|
|
* Sat Feb 05 2022 Jiri Vanek <jvanek@redhat.com> - 1.2.0-10
|
|
|
|
- Rebuilt for java-17-openjdk as system jdk
|
|
|
|
|
2022-01-20 22:30:58 +00:00
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-11-02 15:33:36 +00:00
|
|
|
* Tue Nov 02 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2.0-8
|
|
|
|
- Set explicit Java compiler source/target levels to 1.7
|
|
|
|
|
2021-07-22 17:22:12 +00:00
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-05-17 13:50:30 +00:00
|
|
|
* Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2.0-6
|
|
|
|
- Bootstrap build
|
2021-05-17 16:01:47 +00:00
|
|
|
- Non-bootstrap build
|
2021-05-17 13:50:30 +00:00
|
|
|
|
2021-01-26 22:37:23 +00:00
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-11-06 22:36:55 +00:00
|
|
|
* Fri Nov 6 2020 Mat Booth <mat.booth@redhat.com> - 1.2.0-4
|
|
|
|
- Build with release flag
|
|
|
|
|
2020-07-28 12:50:04 +00:00
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-07-11 01:51:59 +00:00
|
|
|
* Sat Jul 11 2020 Jiri Vanek <jvanek@redhat.com> - 1.2.0-2
|
|
|
|
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
|
|
|
|
|
2020-03-04 15:18:11 +00:00
|
|
|
* Wed Mar 04 2020 Fabio Valentini <decathorpe@gmail.com> - 1.2.0-1
|
|
|
|
- Update to version 1.2.0.
|
|
|
|
|
2020-01-29 20:26:19 +00:00
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-11-05 16:29:28 +00:00
|
|
|
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2.0-2
|
|
|
|
- Mass rebuild for javapackages-tools 201902
|
|
|
|
|
2019-07-25 23:37:01 +00:00
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-07-15 10:12:32 +00:00
|
|
|
* Mon Jul 15 2019 Marian Koncek <mkoncek@redhat.com> - 1.2.0-1
|
|
|
|
- Update to upstream version 1.2.0
|
|
|
|
|
2019-05-24 15:01:23 +00:00
|
|
|
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.1.1-2
|
|
|
|
- Mass rebuild for javapackages-tools 201901
|
|
|
|
|
2019-03-05 12:57:57 +00:00
|
|
|
* Tue Mar 05 2019 Mat Booth <mat.booth@redhat.com> - 1.1.1-1
|
|
|
|
- Update to latest upstream release
|
|
|
|
|
2019-02-01 17:33:31 +00:00
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-07-13 15:12:46 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-02-08 17:50:38 +00:00
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-09-14 13:07:45 +00:00
|
|
|
* Thu Sep 14 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0.0-1
|
|
|
|
- Initial packaging
|