OBS-URL: https://build.opensuse.org/request/show/691498 OBS-URL: https://build.opensuse.org/package/show/Java:packages/maven-shade-plugin?expand=0&rev=1
83 lines
2.9 KiB
RPMSpec
83 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package maven-shade-plugin
|
|
#
|
|
# Copyright (c) 2018 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: maven-shade-plugin
|
|
Version: 3.1.1
|
|
Release: 0
|
|
Summary: This plugin provides the capability to package the artifact in an uber-jar
|
|
License: Apache-2.0
|
|
Group: Development/Libraries/Java
|
|
URL: http://maven.apache.org/plugins/%{name}
|
|
Source0: http://repo2.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}/%{name}-%{version}-source-release.zip
|
|
Patch0: 0001-Port-to-maven-dependency-tree-3.0.patch
|
|
BuildRequires: fdupes
|
|
BuildRequires: maven-local
|
|
BuildRequires: mvn(com.google.guava:guava:19.0)
|
|
BuildRequires: mvn(commons-io:commons-io)
|
|
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-plugins:pom:)
|
|
BuildRequires: mvn(org.apache.maven.shared:maven-artifact-transfer)
|
|
BuildRequires: mvn(org.apache.maven.shared:maven-dependency-tree)
|
|
BuildRequires: mvn(org.apache.maven:maven-artifact)
|
|
BuildRequires: mvn(org.apache.maven:maven-core)
|
|
BuildRequires: mvn(org.apache.maven:maven-model)
|
|
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
|
|
BuildRequires: mvn(org.codehaus.plexus:plexus-component-annotations)
|
|
BuildRequires: mvn(org.codehaus.plexus:plexus-component-metadata)
|
|
BuildRequires: mvn(org.codehaus.plexus:plexus-utils)
|
|
BuildRequires: mvn(org.jdom:jdom2)
|
|
BuildRequires: mvn(org.ow2.asm:asm)
|
|
BuildRequires: mvn(org.ow2.asm:asm-commons)
|
|
BuildRequires: mvn(org.vafer:jdependency)
|
|
BuildRequires: unzip
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
This plugin provides the capability to package the artifact in an
|
|
uber-jar, including its dependencies and to shade - i.e. rename - the
|
|
packages of some of the dependencies.
|
|
|
|
%package javadoc
|
|
Summary: API documentation for %{name}
|
|
|
|
%description javadoc
|
|
%{summary}.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1
|
|
rm src/test/jars/plexus-utils-1.4.1.jar
|
|
ln -s $(build-classpath plexus/utils) src/test/jars/plexus-utils-1.4.1.jar
|
|
|
|
%build
|
|
# A class from aopalliance is not found. Simply adding BR does not solve it
|
|
%{mvn_build} -f
|
|
|
|
%install
|
|
%mvn_install
|
|
%fdupes -s %{buildroot}%{_javadocdir}
|
|
|
|
%files -f .mfiles
|
|
%license LICENSE NOTICE
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
%license LICENSE NOTICE
|
|
|
|
%changelog
|