commit 45a7459aa20ce59baf9b898f21303405f3557b0095c9e42ddd53dd559b8b30d6 Author: Adrian Schröter Date: Sat May 4 01:31:37 2024 +0200 Sync from SUSE:SLFO:Main truth revision 1078c7e748948cc276858bc604f73158 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/_service b/_service new file mode 100644 index 0000000..25ec287 --- /dev/null +++ b/_service @@ -0,0 +1,14 @@ + + + git + git@github.com:google/truth.git + release_0_24 + 0.24 + truth + + + *.tar + xz + + + diff --git a/truth-0.24.tar.xz b/truth-0.24.tar.xz new file mode 100644 index 0000000..06bb726 --- /dev/null +++ b/truth-0.24.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ba0d75a53a0beba6858116ce238fef2005218fc629c374a8885bab76ee04c1b0 +size 48144 diff --git a/truth.changes b/truth.changes new file mode 100644 index 0000000..8bbf8c1 --- /dev/null +++ b/truth.changes @@ -0,0 +1,22 @@ +------------------------------------------------------------------- +Thu Jan 13 17:57:14 UTC 2022 - Fridrich Strba + +- Fix build with newer auto version by adding the + auto-value-annotations artifact to the dependencies + +------------------------------------------------------------------- +Tue May 11 17:25:43 UTC 2021 - Fridrich Strba + +- Increase java version requirement in order to build with newer + guava + +------------------------------------------------------------------- +Tue Nov 26 15:13:50 UTC 2019 - Fridrich Strba + +- Upgrade to version 0.24 to fix building of javadoc with + java 11 + +------------------------------------------------------------------- +Tue May 7 10:58:36 UTC 2019 - Fridrich Strba + +- Initial packaging of truth 0.23 diff --git a/truth.spec b/truth.spec new file mode 100644 index 0000000..44ba136 --- /dev/null +++ b/truth.spec @@ -0,0 +1,81 @@ +# +# spec file for package truth +# +# Copyright (c) 2022 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/ +# + + +Name: truth +Version: 0.24 +Release: 0 +Summary: An assertion framework for Java unit tests +License: Apache-2.0 +Group: Development/Libraries/Java +URL: https://github.com/google/truth +Source0: %{name}-%{version}.tar.xz +BuildRequires: fdupes +BuildRequires: java-devel >= 1.8 +BuildRequires: maven-local +BuildRequires: mvn(com.google.auto.value:auto-value) +BuildRequires: mvn(com.google.auto.value:auto-value-annotations) +BuildRequires: mvn(com.google.code.findbugs:jsr305) +BuildRequires: mvn(com.google.guava:guava) +BuildRequires: mvn(junit:junit) +BuildRequires: mvn(org.codehaus.plexus:plexus-io) +BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) +BuildArch: noarch + +%description +Truth is a library provides alternative ways to express assertions in +unit tests. It can be used as a replacement for JUnit's assertions or FEST +or it can be used alongside where other approaches seem more suitable. + +%package javadoc +Summary: Javadoc for %{name} +Group: Documentation/HTML + +%description javadoc +This package contains the API documentation for %{name}. + +%prep +%setup -q +%pom_remove_plugin :maven-gpg-plugin +%pom_remove_plugin :gwt-maven-plugin core +%pom_remove_dep :gwt-user core +%pom_remove_dep :guava-gwt core +%pom_add_dep com.google.auto.value:auto-value-annotations:1.6 core +%pom_xpath_inject "pom:build/pom:plugins/pom:plugin[pom:artifactId[text()='maven-compiler-plugin']]/pom:configuration" " + + **/gwt/*.java + " core + +%build +%{mvn_build} -f \ +%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0} + -- -Dmaven.compiler.release=8 +%endif + +%install +%mvn_install +%fdupes -s %{buildroot}%{_javadocdir} + +%files -f .mfiles +%doc README.md +%dir %{_javadir}/%{name} +%license LICENSE + +%files javadoc -f .mfiles-javadoc +%license LICENSE + +%changelog