Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.4
objectweb-asm
objectweb-asm.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File objectweb-asm.spec of Package objectweb-asm
# # spec file for package objectweb-asm (Version 3.1) # # Copyright (c) 2009 SUSE LINUX Products 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 http://bugs.opensuse.org/ # %define section free Name: objectweb-asm Version: 3.1 Release: 1 Summary: A code manipulation tool to implement adaptable systems License: BSD 3-clause (or similar) Url: http://asm.objectweb.org/ Group: Development/Libraries/Java Source0: http://download.forge.objectweb.org/asm/asm-3.1.tar.bz2 Source1: http://repo1.maven.org/maven2/asm/asm/3.1/asm-3.1.pom Source2: http://repo1.maven.org/maven2/asm/asm-analysis/3.1/asm-analysis-3.1.pom Source3: http://repo1.maven.org/maven2/asm/asm-commons/3.1/asm-commons-3.1.pom Source4: http://repo1.maven.org/maven2/asm/asm-tree/3.1/asm-tree-3.1.pom Source5: http://repo1.maven.org/maven2/asm/asm-util/3.1/asm-util-3.1.pom Source6: http://repo1.maven.org/maven2/asm/asm-xml/3.1/asm-xml-3.1.pom Source7: http://repo1.maven.org/maven2/asm/asm-all/3.1/asm-all-3.1.pom Source8: http://repo1.maven.org/maven2/asm/asm-parent/3.1/asm-parent-3.1.pom Source9: asm-MANIFEST.MF Patch0: objectweb-asm-no-classpath-in-manifest.patch # Needed by asm-xml.jar Requires: xml-commons-apis PreReq: jpackage-utils >= 1.7.4 BuildRequires: jpackage-utils >= 1.7.4 BuildRequires: java-devel BuildRequires: ant >= 1.6.5 BuildRequires: objectweb-anttask BuildRequires: xml-commons-apis BuildRequires: zip BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description ASM is a Java bytecode manipulation framework. It can be used to dynamically generate stub classes or other proxy classes, directly in binary form, or to dynamically modify classes at load time, i.e., just before they are loaded into the Java Virtual Machine. ASM offers similar functionalities as BCEL or SERP, but is much smaller. %package javadoc License: BSD 3-clause (or similar) Summary: Javadoc for %{name} Group: Development/Libraries/Java %description javadoc ASM is a Java bytecode manipulation framework. It can be used to dynamically generate stub classes or other proxy classes, directly in binary form, or to dynamically modify classes at load time, i.e., just before they are loaded into the Java Virtual Machine. ASM offers similar functionalities as BCEL or SERP, but is much smaller. %prep %setup -q -n asm-%{version} %patch0 -p1 perl -pi -e 's/\r$//g' LICENSE.txt README.txt mkdir META-INF cp -p %{SOURCE9} META-INF/MANIFEST.MF %build export CLASSPATH= export OPT_JAR_LIST=: ant -Dobjectweb.ant.tasks.path=$(build-classpath objectweb-anttask) jar jdoc %install # jars install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/%{name} for jar in output/dist/lib/*.jar; do install -m 644 ${jar} \ $RPM_BUILD_ROOT%{_javadir}/%{name}/`basename ${jar}` done touch META-INF/MANIFEST.MF zip -u output/dist/lib/all/asm-all-%{version}.jar META-INF/MANIFEST.MF install -m 644 output/dist/lib/all/asm-all-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/ (cd $RPM_BUILD_ROOT%{_javadir}/%{name} && for jar in *-%{version}*; do \ ln -sf ${jar} ${jar/-%{version}/}; done) # pom install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.objectweb-asm-asm.pom %add_to_maven_depmap org.objectweb.asm asm %{version} JPP/objectweb-asm asm install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.objectweb-asm-asm-analysis.pom %add_to_maven_depmap org.objectweb.asm asm-analysis %{version} JPP/objectweb-asm asm-analysis install -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.objectweb-asm-asm-commons.pom %add_to_maven_depmap org.objectweb.asm asm-commons %{version} JPP/objectweb-asm asm-commons install -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.objectweb-asm-asm-tree.pom %add_to_maven_depmap org.objectweb.asm asm-tree %{version} JPP/objectweb-asm asm-tree install -m 644 %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.objectweb-asm-asm-util.pom %add_to_maven_depmap org.objectweb.asm asm-util %{version} JPP/objectweb-asm asm-util install -m 644 %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.objectweb-asm-asm-xml.pom %add_to_maven_depmap org.objectweb.asm asm-xml %{version} JPP/objectweb-asm asm-xml install -m 644 %{SOURCE7} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.objectweb-asm-asm-all.pom %add_to_maven_depmap org.objectweb.asm asm-all %{version} JPP/objectweb-asm asm-all install -m 644 %{SOURCE8} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.objectweb-asm-asm-parent.pom %add_to_maven_depmap org.objectweb.asm asm-parent %{version} JPP/objectweb-asm asm-parent # javadoc install -p -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} cp -pr output/dist/doc/javadoc/user/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} %clean rm -rf $RPM_BUILD_ROOT %post %update_maven_depmap %postun %update_maven_depmap %files %defattr(0644,root,root,0755) %doc LICENSE.txt README.txt %dir %{_javadir}/%{name} %{_javadir}/%{name}/*.jar %{_datadir}/maven2/* %config %{_mavendepmapfragdir}/* %files javadoc %defattr(0644,root,root,0755) %{_javadocdir}/%{name}-%{version} %{_javadocdir}/%{name} %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor