forked from pool/guava
Accepting request 1114362 from Java:packages:test
simplify OBS-URL: https://build.opensuse.org/request/show/1114362 OBS-URL: https://build.opensuse.org/package/show/Java:packages/guava?expand=0&rev=27
This commit is contained in:
parent
637e583cc5
commit
9bc1358658
19
guava.spec
19
guava.spec
@ -30,10 +30,9 @@ BuildRequires: checker-qual
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: google-errorprone-annotations
|
||||
BuildRequires: j2objc-annotations
|
||||
BuildRequires: javapackages-local
|
||||
BuildRequires: javapackages-local >= 6
|
||||
BuildRequires: jsr-305
|
||||
BuildRequires: junit
|
||||
Requires: mvn(com.google.code.findbugs:jsr305)
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
@ -54,7 +53,6 @@ API documentation for %{name}.
|
||||
%package testlib
|
||||
Summary: The guava-testlib artifact
|
||||
Group: Development/Libraries/Java
|
||||
Requires: mvn(junit:junit)
|
||||
|
||||
%description testlib
|
||||
guava-testlib provides additional functionality for conveninent unit testing
|
||||
@ -76,19 +74,10 @@ find . -name '*.jar' -delete
|
||||
%pom_remove_dep -r :listenablefuture
|
||||
%pom_remove_dep -r :failureaccess
|
||||
|
||||
for mod in guava guava-testlib futures/failureaccess; do
|
||||
%pom_remove_parent ${mod}
|
||||
%pom_xpath_inject pom:project '
|
||||
<groupId>com.google.guava</groupId>
|
||||
<version>%{version}</version>' ${mod}
|
||||
done
|
||||
|
||||
%pom_change_dep -r :error_prone_annotations :::provided
|
||||
%pom_change_dep -r :j2objc-annotations :::provided
|
||||
%pom_change_dep -r org.checkerframework: :::provided
|
||||
|
||||
%pom_change_dep -r -f :::: ::::
|
||||
|
||||
%build
|
||||
mkdir -p lib
|
||||
build-jar-repository -s lib junit jsr-305 google-errorprone/annotations checker-qual j2objc-annotations
|
||||
@ -102,12 +91,12 @@ install -pm 0644 %{name}-testlib/target/%{name}-testlib-%{version}*.jar %{buildr
|
||||
|
||||
# poms
|
||||
install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name}
|
||||
install -pm 0644 %{name}/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom
|
||||
%mvn_install_pom %{name}/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom
|
||||
%add_maven_depmap %{name}/%{name}.pom %{name}/%{name}.jar
|
||||
# We integrated this artifact in our main package
|
||||
install -pm 0644 futures/failureaccess/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/failureaccess.pom
|
||||
%mvn_install_pom futures/failureaccess/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/failureaccess.pom
|
||||
%add_maven_depmap %{name}/failureaccess.pom %{name}/%{name}.jar
|
||||
install -pm 0644 %{name}-testlib/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}-testlib.pom
|
||||
%mvn_install_pom %{name}-testlib/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}-testlib.pom
|
||||
%add_maven_depmap %{name}/%{name}-testlib.pom %{name}/%{name}-testlib.jar -f %{name}-testlib
|
||||
|
||||
# javadoc
|
||||
|
Loading…
x
Reference in New Issue
Block a user