From d426adfb9e5e343436ca68837308eedc7eee2db8 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Wed, 10 Aug 2022 07:35:08 +0200 Subject: [PATCH] Initial import from Fedora Resolves: rhbz#2083112 --- .gitignore | 9 +++ README.md | 3 + opentest4j.spec | 154 ++++++++++++++++++++++++++++++++++++++++++++++++ sources | 2 + 4 files changed, 168 insertions(+) create mode 100644 README.md create mode 100644 opentest4j.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..c74c667 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,9 @@ +/results_* +/*.src.rpm + +/r1.0.0.tar.gz +/opentest4j-1.0.0.pom +/opentest4j-1.1.1.pom +/r1.1.1.tar.gz +/r1.2.0.tar.gz +/opentest4j-1.2.0.pom diff --git a/README.md b/README.md new file mode 100644 index 0000000..6cf8ff3 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# opentest4j + +The opentest4j package \ No newline at end of file diff --git a/opentest4j.spec b/opentest4j.spec new file mode 100644 index 0000000..9c9200d --- /dev/null +++ b/opentest4j.spec @@ -0,0 +1,154 @@ +%bcond_with bootstrap + +Name: opentest4j +Version: 1.2.0 +Release: 11%{?dist} +Summary: Open Test Alliance for the JVM +License: ASL 2.0 +URL: https://github.com/ota4j-team/opentest4j +BuildArch: noarch +ExclusiveArch: %{java_arches} noarch + +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 + +%if %{with bootstrap} +BuildRequires: javapackages-bootstrap +%else +BuildRequires: maven-local +BuildRequires: mvn(junit:junit) +%endif + +%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} +find -name \*.jar -delete +cp -p %{SOURCE100} pom.xml + +%pom_add_dep junit:junit::test + +%pom_xpath_inject pom:project " + + + + + maven-jar-plugin + + + + org.opentest4j + opentest4j + opentest4j.org + %{version} + opentest4j + opentest4j.org + %{version} + + 2 + org.opentest4j + %{version} + org.opentest4j;version=\"%{version}\" + + + + + + + " + +# 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 + +%build +%mvn_build -- -Dmaven.compiler.source=1.7 -Dmaven.compiler.target=1.7 + +%install +%mvn_install + +%files -f .mfiles +%license LICENSE +%doc README.md + +%files javadoc -f .mfiles-javadoc +%license LICENSE + +%changelog +* Fri Jul 22 2022 Fedora Release Engineering - 1.2.0-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Sat Feb 05 2022 Jiri Vanek - 1.2.0-10 +- Rebuilt for java-17-openjdk as system jdk + +* Thu Jan 20 2022 Fedora Release Engineering - 1.2.0-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Nov 02 2021 Mikolaj Izdebski - 1.2.0-8 +- Set explicit Java compiler source/target levels to 1.7 + +* Thu Jul 22 2021 Fedora Release Engineering - 1.2.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Mon May 17 2021 Mikolaj Izdebski - 1.2.0-6 +- Bootstrap build +- Non-bootstrap build + +* Tue Jan 26 2021 Fedora Release Engineering - 1.2.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Fri Nov 6 2020 Mat Booth - 1.2.0-4 +- Build with release flag + +* Tue Jul 28 2020 Fedora Release Engineering - 1.2.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sat Jul 11 2020 Jiri Vanek - 1.2.0-2 +- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11 + +* Wed Mar 04 2020 Fabio Valentini - 1.2.0-1 +- Update to version 1.2.0. + +* Wed Jan 29 2020 Fedora Release Engineering - 1.1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Tue Nov 05 2019 Mikolaj Izdebski - 1.2.0-2 +- Mass rebuild for javapackages-tools 201902 + +* Thu Jul 25 2019 Fedora Release Engineering - 1.1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Mon Jul 15 2019 Marian Koncek - 1.2.0-1 +- Update to upstream version 1.2.0 + +* Fri May 24 2019 Mikolaj Izdebski - 1.1.1-2 +- Mass rebuild for javapackages-tools 201901 + +* Tue Mar 05 2019 Mat Booth - 1.1.1-1 +- Update to latest upstream release + +* Fri Feb 01 2019 Fedora Release Engineering - 1.0.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 1.0.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Thu Feb 08 2018 Fedora Release Engineering - 1.0.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Sep 14 2017 Mikolaj Izdebski - 1.0.0-1 +- Initial packaging diff --git a/sources b/sources new file mode 100644 index 0000000..1a0a464 --- /dev/null +++ b/sources @@ -0,0 +1,2 @@ +SHA512 (r1.2.0.tar.gz) = cd98d976935de97d259ec4c04510334f2b56f8a32db2c97e0f20a2e3b99f119ffeb390589eb42d4594808d96194067871d5eaad6a40dd58af30b9f995b13ef08 +SHA512 (opentest4j-1.2.0.pom) = 28ce0d0b5cceeac5adfcdd16ee6f5fbefd43eef8057b924993fb7a9f4b7a7085b980f3e808db5fb7750a53d0072b7fe7b118f5c0011e3ef0efe6c9a90a87b868