[objectweb-asm3] Build also "distroshaded" JARs and install them
Michal Srb
msrb at fedoraproject.org
Thu Dec 5 13:22:23 UTC 2013
commit 6af9da5426abecd3c8477eecc15441906836b917
Author: Michal Srb <msrb at redhat.com>
Date: Thu Dec 5 13:57:19 2013 +0100
Build also "distroshaded" JARs and install them
objectweb-asm3.spec | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/objectweb-asm3.spec b/objectweb-asm3.spec
index 42cb927..8959b03 100644
--- a/objectweb-asm3.spec
+++ b/objectweb-asm3.spec
@@ -1,6 +1,6 @@
Name: objectweb-asm3
Version: 3.3.1
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Java bytecode manipulation and analysis framework
License: BSD
URL: http://asm.ow2.org/
@@ -11,6 +11,8 @@ Source1: http://www.apache.org/licenses/LICENSE-2.0.txt
BuildRequires: ant
BuildRequires: maven-local
+# shade-jar utility used in this spec file needs this
+BuildRequires: objectweb-asm3
%description
ASM is an all purpose Java bytecode manipulation and analysis
@@ -39,12 +41,19 @@ sed -i /Class-path/d archive/asm-xml.xml
# old BSN (org.objectweb.asm).
sed -i s/org.objectweb.asm.all/org.objectweb.asm/ archive/asm-all.xml
+%mvn_package :::distroshaded:
+
%build
%ant -Dobjectweb.ant.tasks.path= jar jdoc
+
%install
%mvn_artifact output/dist/lib/asm-parent-%{version}.pom
for m in asm asm-analysis asm-commons asm-tree asm-util asm-xml all/asm-all; do
+ shade-jar org.objectweb.asm org.objectweb.distroshaded.asm output/dist/lib/${m}-%{version}.jar \
+ output/dist/lib/${m}-%{version}-distroshaded.jar
+ %mvn_artifact asm:${m}::distroshaded:%{version} \
+ output/dist/lib/${m}-%{version}-distroshaded.jar
%mvn_artifact output/dist/lib/${m}-%{version}.pom \
output/dist/lib/${m}-%{version}.jar
done
@@ -61,6 +70,9 @@ done
%doc LICENSE.txt
%changelog
+* Thu Dec 05 2013 Michal Srb <msrb at redhat.com> - 3.3.1-5
+- Build also "distroshaded" JARs and install them
+
* Thu Dec 5 2013 Mikolaj Izdebski <mizdebsk at redhat.com> - 3.3.1-4
- Change asm-all BSN to org.objectweb.asm
More information about the scm-commits
mailing list