Name: objectweb-asm3 Version: 3.3.1 Release: 1%{?dist} Summary: Java bytecode manipulation and analysis framework License: BSD URL: http://asm.ow2.org/ BuildArch: noarch Source0: http://download.forge.ow2.org/asm/asm-%{version}.tar.gz Source1: http://www.apache.org/licenses/LICENSE-2.0.txt BuildRequires: ant BuildRequires: maven-local %description ASM is an all purpose Java bytecode manipulation and analysis framework. It can be used to modify existing classes or dynamically generate classes, directly in binary form. Provided common transformations and analysis algorithms allow to easily assemble custom complex transformations and code analysis tools. %package javadoc Summary: API documentation for %{name} %description javadoc This package provides %{summary}. %prep %setup -q -n asm-%{version} find -name *.jar -delete %mvn_alias :asm-all org.eclipse.jetty.orbit:org.objectweb.asm %build %ant -Dobjectweb.ant.tasks.path= jar jdoc %install for m in asm asm-analysis asm-commons asm-tree asm-util asm-xml all/asm-all; do %mvn_artifact output/dist/lib/${m}-%{version}.pom \ output/dist/lib/${m}-%{version}.jar done %mvn_install -J output/dist/doc/javadoc/user %files -f .mfiles %doc LICENSE.txt README.txt %dir %{_javadir}/%{name} %files javadoc -f .mfiles-javadoc %doc LICENSE.txt %changelog * Mon Nov 11 2013 Mikolaj Izdebski - 3.3.1-1 - Initial packaging