Accepting request 1109323 from Java:packages
Decrease dependencies a bit OBS-URL: https://build.opensuse.org/request/show/1109323 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/maven-dependency-tree?expand=0&rev=5
This commit is contained in:
commit
5c971c21a4
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Sep 6 18:48:23 UTC 2023 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
- Remove unnecessary dependency on xmvn tools and parent pom
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Mar 20 20:05:36 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
Sun Mar 20 20:05:36 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package maven-dependency-tree
|
# spec file for package maven-dependency-tree
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2023 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -22,8 +22,8 @@ Release: 0
|
|||||||
Summary: Maven dependency tree artifact
|
Summary: Maven dependency tree artifact
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
URL: http://maven.apache.org/
|
URL: https://maven.apache.org/
|
||||||
Source0: https://downloads.apache.org/maven/shared/%{name}-%{version}-source-release.zip
|
Source0: https://archive.apache.org/dist/maven/shared/%{name}-%{version}-source-release.zip
|
||||||
Source1: %{name}-build.xml
|
Source1: %{name}-build.xml
|
||||||
BuildRequires: ant
|
BuildRequires: ant
|
||||||
BuildRequires: apache-commons-cli
|
BuildRequires: apache-commons-cli
|
||||||
@ -31,7 +31,7 @@ BuildRequires: atinject
|
|||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: google-guice
|
BuildRequires: google-guice
|
||||||
BuildRequires: guava
|
BuildRequires: guava
|
||||||
BuildRequires: javapackages-local
|
BuildRequires: javapackages-local >= 6
|
||||||
BuildRequires: jdom2
|
BuildRequires: jdom2
|
||||||
BuildRequires: maven-lib
|
BuildRequires: maven-lib
|
||||||
BuildRequires: maven-resolver-api
|
BuildRequires: maven-resolver-api
|
||||||
@ -47,9 +47,6 @@ BuildRequires: sisu-inject
|
|||||||
BuildRequires: sisu-plexus
|
BuildRequires: sisu-plexus
|
||||||
BuildRequires: unzip
|
BuildRequires: unzip
|
||||||
BuildRequires: xbean
|
BuildRequires: xbean
|
||||||
BuildRequires: xmvn-install
|
|
||||||
BuildRequires: xmvn-resolve
|
|
||||||
BuildRequires: mvn(org.apache.maven.shared:maven-shared-components:pom:)
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -69,8 +66,6 @@ cp %{SOURCE1} build.xml
|
|||||||
find -name Maven3DependencyGraphBuilder.java -delete
|
find -name Maven3DependencyGraphBuilder.java -delete
|
||||||
%pom_remove_dep org.sonatype.aether:
|
%pom_remove_dep org.sonatype.aether:
|
||||||
|
|
||||||
%pom_remove_plugin :apache-rat-plugin
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir -p lib
|
mkdir -p lib
|
||||||
build-jar-repository -s lib \
|
build-jar-repository -s lib \
|
||||||
@ -97,18 +92,24 @@ build-jar-repository -s lib \
|
|||||||
-Dtest.skip=true \
|
-Dtest.skip=true \
|
||||||
jar javadoc
|
jar javadoc
|
||||||
|
|
||||||
%{mvn_artifact} pom.xml target/%{name}-%{version}.jar
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%mvn_install
|
# jar
|
||||||
|
install -dm 0755 %{buildroot}%{_javadir}/%{name}
|
||||||
|
install -pm 0644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{name}.jar
|
||||||
|
# pom
|
||||||
|
install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name}
|
||||||
|
%{mvn_install_pom} pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom
|
||||||
|
%add_maven_depmap %{name}/%{name}.pom %{name}/%{name}.jar
|
||||||
|
# javadoc
|
||||||
|
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
|
||||||
|
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/
|
||||||
%fdupes -s %{buildroot}%{_javadocdir}
|
%fdupes -s %{buildroot}%{_javadocdir}
|
||||||
|
|
||||||
%files -f .mfiles
|
%files -f .mfiles
|
||||||
%license LICENSE
|
%license LICENSE NOTICE
|
||||||
%doc NOTICE
|
|
||||||
|
|
||||||
%files javadoc -f .mfiles-javadoc
|
%files javadoc
|
||||||
%license LICENSE
|
%{_javadocdir}/%{name}
|
||||||
%doc NOTICE
|
%license LICENSE NOTICE
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user