From 37551ec96b6c1b1b87034b8bef0cd73f3bde0d5eba09ea22ecf02864862489bc Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Sun, 29 Sep 2024 21:01:35 +0000 Subject: [PATCH 1/2] OBS-URL: https://build.opensuse.org/package/show/Java:packages/opentest4j?expand=0&rev=13 --- .gitattributes | 23 +++++ .gitignore | 1 + opentest4j-1.3.0.pom | 54 +++++++++++ opentest4j-build.xml | 215 +++++++++++++++++++++++++++++++++++++++++++ opentest4j.changes | 48 ++++++++++ opentest4j.spec | 91 ++++++++++++++++++ r1.3.0.tar.gz | 3 + 7 files changed, 435 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 opentest4j-1.3.0.pom create mode 100644 opentest4j-build.xml create mode 100644 opentest4j.changes create mode 100644 opentest4j.spec create mode 100644 r1.3.0.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/opentest4j-1.3.0.pom b/opentest4j-1.3.0.pom new file mode 100644 index 0000000..18faa58 --- /dev/null +++ b/opentest4j-1.3.0.pom @@ -0,0 +1,54 @@ + + + + + + + + 4.0.0 + org.opentest4j + opentest4j + 1.3.0 + org.opentest4j:opentest4j + Open Test Alliance for the JVM + https://github.com/ota4j-team/opentest4j + + + The Apache License, Version 2.0 + https://www.apache.org/licenses/LICENSE-2.0.txt + + + + + bechte + Stefan Bechtold + stefan.bechtold@me.com + + + jlink + Johannes Link + business@johanneslink.net + + + marcphilipp + Marc Philipp + mail@marcphilipp.de + + + mmerdes + Matthias Merdes + matthias.merdes@heidelpay.com + + + sbrannen + Sam Brannen + sam@sambrannen.com + + + + scm:git:git://github.com/ota4j-team/opentest4j.git + scm:git:git://github.com/ota4j-team/opentest4j.git + https://github.com/ota4j-team/opentest4j + + diff --git a/opentest4j-build.xml b/opentest4j-build.xml new file mode 100644 index 0000000..ea49e89 --- /dev/null +++ b/opentest4j-build.xml @@ -0,0 +1,215 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + =================================== WARNING =================================== + JUnit is not present in the test classpath or your $ANT_HOME/lib directory. Tests not executed. + =============================================================================== + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/opentest4j.changes b/opentest4j.changes new file mode 100644 index 0000000..4679832 --- /dev/null +++ b/opentest4j.changes @@ -0,0 +1,48 @@ +------------------------------------------------------------------- +Tue Oct 17 03:49:22 UTC 2023 - ming li + +- Update to version 1.3.0: + * Introduce FileInfo + * Add copyright and license to jar + * Enable Java-behavior for late cause initialisation + * Adjust OSGi manifest to match previously published ones + +------------------------------------------------------------------- +Mon Mar 21 12:40:23 UTC 2022 - Fridrich Strba + +- Build with java source and target levels 8 + +------------------------------------------------------------------- +Thu Apr 2 07:06:55 UTC 2020 - Fridrich Štrba + +- Update to upstream version 1.2.0 + * Changes: + + Add version to module descriptor + + Include Java module descriptor + + Include Class of Throwable in MultipleFailuresError message + + Set EOL to LF so Spotless does not fight with Git on Windows + + Change ValueWrapper.create() to not wrap another ValueWrapper + + Capture non-serializable ephemeral value in ValueWrapper + + Add the option to provide a custom stringRepresentation to + ValueWrapper + + Improve Javadoc for AssertionFailedError and ValueWrapper + + Remove unused dependency on commons-codec + + Rename serialized output file for clarity + + Restore 1.0.0 behavior to fix serialization + + Make ValueWrapper robust for broken toString() implementations + + Test toString() behavior for AssertionFailedError + + Do not set null message to "null" in AssertionFailedError + constructors + + Do not set message to empty String in AssertionFailedError + constructors + + Do not set message in default constructor for + AssertionFailedError + + Create an OSGi compatible MANIFEST.MF (#41) + + Change "Draft" into "Initial Implementation" + +------------------------------------------------------------------- +Tue Mar 5 17:29:29 UTC 2019 - Fridrich Strba + +- Initial packaging of opentest4j 1.0.0 +- Generate and customize ant build file to be able to build without + having to use gradle diff --git a/opentest4j.spec b/opentest4j.spec new file mode 100644 index 0000000..9c6aad8 --- /dev/null +++ b/opentest4j.spec @@ -0,0 +1,91 @@ +# +# spec file for package opentest4j +# +# Copyright (c) 2024 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/ +# + + +%bcond_with tests +Name: opentest4j +Version: 1.3.0 +Release: 0 +Summary: Open Test Alliance for the JVM +License: Apache-2.0 +Group: Development/Libraries/Java +URL: https://github.com/ota4j-team/opentest4j +Source0: https://github.com/ota4j-team/opentest4j/archive/r%{version}.tar.gz +Source1: %{name}-build.xml +Source100: https://repo1.maven.org/maven2/org/opentest4j/opentest4j/%{version}/opentest4j-%{version}.pom +BuildRequires: ant +BuildRequires: fdupes +BuildRequires: java-devel >= 1.8 +BuildRequires: javapackages-local >= 6 +BuildArch: noarch +%if %{with tests} +BuildRequires: ant-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} +Group: Documentation/HTML + +%description javadoc +API documentation for %{name}. + +%prep +%setup -q -n opentest4j-r%{version} +find -name \*.jar -delete + +cp %{SOURCE1} build.xml +cp %{SOURCE100} pom.xml + +%build +%{ant} \ +%if %{without tests} + -Dtest.skip=true \ +%endif + jar javadoc + +%install +# jar +install -dm 0755 %{buildroot}%{_javadir}/%{name} +install -pm 0644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{name}.jar +# pom +install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name} +%{mvn_install_pom} %{SOURCE100} %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom +%add_maven_depmap %{name}/%{name}.pom %{name}/%{name}.jar +# javadoc +install -dm 0755 %{buildroot}%{_javadocdir}/%{name} +cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/ +%fdupes -s %{buildroot}%{_javadocdir} + +%files -f .mfiles +%license LICENSE +%doc README.md + +%files javadoc +%license LICENSE +%{_javadocdir}/%{name} + +%changelog diff --git a/r1.3.0.tar.gz b/r1.3.0.tar.gz new file mode 100644 index 0000000..87cf446 --- /dev/null +++ b/r1.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8d7f9922c8ec73251e37964a0ea0976546a2fb05133f24dfe0d947e051ff6cb4 +size 89527 From f35ef5205d2ffaabab210ec3d976d9b43a6cadf945dfe730c80e541c03d5e8f5 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Wed, 2 Oct 2024 15:55:52 +0000 Subject: [PATCH 2/2] OBS-URL: https://build.opensuse.org/package/show/Java:packages/opentest4j?expand=0&rev=14 --- opentest4j.changes | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/opentest4j.changes b/opentest4j.changes index 4679832..3785cc5 100644 --- a/opentest4j.changes +++ b/opentest4j.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Oct 2 15:55:50 UTC 2024 - Fridrich Strba + +- Spec file cleanup + ------------------------------------------------------------------- Tue Oct 17 03:49:22 UTC 2023 - ming li