Accepting request 751504 from Java:packages

0.24 + fix building with jdk11

OBS-URL: https://build.opensuse.org/request/show/751504
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/truth?expand=0&rev=2
This commit is contained in:
2019-11-28 12:50:18 +00:00
committed by Git OBS Bridge
5 changed files with 32 additions and 11 deletions

14
_service Normal file
View File

@@ -0,0 +1,14 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="scm">git</param>
<param name="url">git@github.com:google/truth.git</param>
<param name="revision">release_0_24</param>
<param name="versionformat">0.24</param>
<param name="filename">truth</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version" mode="disabled"/>
</services>

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2ad51916527f07dcd26b53ecb46e86a1243ca28bf38fc1f9db1727de46ec2c02
size 39156

BIN
truth-0.24.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Nov 26 15:13:50 UTC 2019 - Fridrich Strba <fstrba@suse.com>
- Upgrade to version 0.24 to fix building of javadoc with
java 11
-------------------------------------------------------------------
Tue May 7 10:58:36 UTC 2019 - Fridrich Strba <fstrba@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package truth
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,16 +17,14 @@
Name: truth
Version: 0.23
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
# 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
Source0: %{name}-%{version}.tar.xz
BuildRequires: fdupes
BuildRequires: maven-local
BuildRequires: mvn(com.google.auto.value:auto-value)
BuildRequires: mvn(com.google.code.findbugs:jsr305)
@@ -34,7 +32,6 @@ 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
@@ -61,10 +58,14 @@ This package contains the API documentation for %{name}.
</testExcludes>" core
%build
%{mvn_build} -f -- -Dsource=6
%{mvn_build} -f \
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
-- -Dmaven.compiler.release=6
%endif
%install
%mvn_install
%fdupes -s %{buildroot}%{_javadocdir}
%files -f .mfiles
%doc README.md