Fridrich Strba 2019-11-26 15:01:56 +00:00 committed by Git OBS Bridge
parent 2cd6eac75b
commit 5b95041a3e
3 changed files with 21 additions and 19 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_23</param>
<param name="versionformat">0.23</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 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2ad51916527f07dcd26b53ecb46e86a1243ca28bf38fc1f9db1727de46ec2c02
size 39156
oid sha256:d3c475a134be22bf522196de120c8837de30871c71be1bbea28390747d5d7144
size 39036

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
@ -23,10 +23,7 @@ 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: maven-local
BuildRequires: mvn(com.google.auto.value:auto-value)
BuildRequires: mvn(com.google.code.findbugs:jsr305)
@ -34,7 +31,7 @@ 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
Obsoletes: %{name}-javadoc
BuildArch: noarch
%description
@ -42,13 +39,6 @@ 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
@ -61,7 +51,8 @@ This package contains the API documentation for %{name}.
</testExcludes>" core
%build
%{mvn_build} -f -- -Dsource=6
# javadoc build crashes javadoc 11
%{mvn_build} -fj
%install
%mvn_install
@ -71,7 +62,4 @@ This package contains the API documentation for %{name}.
%dir %{_javadir}/%{name}
%license LICENSE
%files javadoc -f .mfiles-javadoc
%license LICENSE
%changelog