From 6a7db6b2aad1b930f4b29bfe80d5a22dea846c7592f009322f2651c72623b189 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Tue, 7 May 2019 10:59:50 +0000 Subject: [PATCH] Accepting request 701287 from home:fstrba:maven new package OBS-URL: https://build.opensuse.org/request/show/701287 OBS-URL: https://build.opensuse.org/package/show/Java:packages/truth?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + truth-0.23.tar.xz | 3 ++ truth.changes | 4 +++ truth.spec | 77 +++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 108 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 truth-0.23.tar.xz create mode 100644 truth.changes create mode 100644 truth.spec 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/truth-0.23.tar.xz b/truth-0.23.tar.xz new file mode 100644 index 0000000..1a2f937 --- /dev/null +++ b/truth-0.23.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2ad51916527f07dcd26b53ecb46e86a1243ca28bf38fc1f9db1727de46ec2c02 +size 39156 diff --git a/truth.changes b/truth.changes new file mode 100644 index 0000000..339dcba --- /dev/null +++ b/truth.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +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..c4bb0ad --- /dev/null +++ b/truth.spec @@ -0,0 +1,77 @@ +# +# spec file for package truth +# +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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.23 +Release: 0 +Summary: An assertion framework for Java unit tests +License: Apache-2.0 +Group: Development/Libraries/Java +URL: https://github.com/google/truth +# Created from revision 3c4492b0f72290c8b4a32f1b313b13501e96f44d +# of git@github.com:google/truth.git using the following command: +# git archive --format=tar --prefix=truth-0.23/ 3c4492b |xz >truth-0.23.tar.xz +Source0: truth-0.23.tar.xz +BuildRequires: maven-local +BuildRequires: mvn(com.google.auto.value:auto-value) +BuildRequires: mvn(com.google.code.findbugs:jsr305) +BuildRequires: mvn(com.google.guava:guava) +BuildRequires: mvn(junit:junit) +BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin) +BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) +BuildConflicts: java-devel >= 9 +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_xpath_inject "pom:build/pom:plugins/pom:plugin[pom:artifactId[text()='maven-compiler-plugin']]/pom:configuration" " + + **/gwt/*.java + " core + +%build +%{mvn_build} -f -- -Dsource=6 + +%install +%mvn_install + +%files -f .mfiles +%doc README.md +%dir %{_javadir}/%{name} +%license LICENSE + +%files javadoc -f .mfiles-javadoc +%license LICENSE + +%changelog