Search
j0ke.net Open Build Service
>
Projects
>
SUSE
:
Manager
:
1.2
>
asm
> asm.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File asm.spec of Package asm
# # spec file for package asm (Version 1.5.3) # # 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/ # # norootforbuild # icecream 0 Name: asm BuildRequires: ant objectweb-anttask xml-commons-apis java-1_6_0-ibm-devel unzip update-alternatives %define section free Version: 1.5.3 Release: 20.18 Summary: Java bytecode manipulation framework License: BSD 3-Clause Url: http://asm.objectweb.org/ Group: Development/Libraries/Java Source0: http://download.us.forge.objectweb.org/asm/asm-1.5.3.tar.gz Source1: http://asm.objectweb.org/current/asm-eng.pdf Source2: http://asm.objectweb.org/doc/faq.html Patch: %{name}-java14compat.patch 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 PreReq: coreutils Summary: Java bytecode manipulation framework (documentation) Group: Development/Libraries/Java %description javadoc Javadoc for asm. %prep %setup -q -n %{name}-%{version} %patch find . -name "*.jar" -exec rm -f {} \; install -m 644 %{SOURCE1} . install -m 644 %{SOURCE2} . %build 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 (cd $RPM_BUILD_ROOT%{_javadir}/%{name} && for jar in *-%{version}*; do \ ln -sf ${jar} ${jar/-%{version}/}; done) # 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} (cd $RPM_BUILD_ROOT%{_javadocdir} && ln -sf %{name}-%{version} %{name}) %clean rm -rf $RPM_BUILD_ROOT %post javadoc rm -f %{_javadocdir}/%{name} ln -s %{name}-%{version} %{_javadocdir}/%{name} %postun javadoc if [ $1 -eq 0 ]; then rm -f %{_javadocdir}/%{name} fi %files %defattr(0644,root,root,0755) %doc README.txt faq.html asm-eng.pdf %dir %{_javadir}/%{name} %{_javadir}/%{name}/*.jar %files javadoc %defattr(0644,root,root,0755) %dir %{_javadocdir}/%{name}-%{version} %{_javadocdir}/%{name}-%{version}/* %ghost %dir %{_javadocdir}/%{name} %changelog * Fri Sep 22 2006 skh@suse.de - don't use icecream - use source="1.4" and target="1.4" for build with java 1.5 * Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires * Mon Oct 17 2005 jsmeix@suse.de - Current version 1.5.3 from JPackage.org