[objectweb-asm3] Initial packaging

Mikolaj Izdebski mizdebsk at fedoraproject.org
Tue Nov 12 14:00:56 UTC 2013


commit 8ac1311dbfe164ac34dd2f3ea4baa43b7a65a309
Author: Mikolaj Izdebski <mizdebsk at redhat.com>
Date:   Tue Nov 12 15:00:16 2013 +0100

    Initial packaging

 .gitignore          |    2 +
 objectweb-asm3.spec |   52 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    2 +
 3 files changed, 56 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..f267769 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/asm-3.3.1.tar.gz
+/LICENSE-2.0.txt
diff --git a/objectweb-asm3.spec b/objectweb-asm3.spec
new file mode 100644
index 0000000..60b85bc
--- /dev/null
+++ b/objectweb-asm3.spec
@@ -0,0 +1,52 @@
+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 <mizdebsk at redhat.com> - 3.3.1-1
+- Initial packaging
diff --git a/sources b/sources
index e69de29..626e72a 100644
--- a/sources
+++ b/sources
@@ -0,0 +1,2 @@
+433024df8176f09922646316e415631c  asm-3.3.1.tar.gz
+3b83ef96387f14655fc854ddc3c6bd57  LICENSE-2.0.txt


More information about the scm-commits mailing list