77fd4d3
# Copyright (c) 2000-2008, JPackage Project
c0aa290
# All rights reserved.
c0aa290
#
c0aa290
# Redistribution and use in source and binary forms, with or without
c0aa290
# modification, are permitted provided that the following conditions
c0aa290
# are met:
c0aa290
#
c0aa290
# 1. Redistributions of source code must retain the above copyright
c0aa290
#    notice, this list of conditions and the following disclaimer.
c0aa290
# 2. Redistributions in binary form must reproduce the above copyright
c0aa290
#    notice, this list of conditions and the following disclaimer in the
c0aa290
#    documentation and/or other materials provided with the
c0aa290
#    distribution.
c0aa290
# 3. Neither the name of the JPackage Project nor the names of its
c0aa290
#    contributors may be used to endorse or promote products derived
c0aa290
#    from this software without specific prior written permission.
c0aa290
#
c0aa290
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
c0aa290
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
c0aa290
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
c0aa290
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
c0aa290
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
c0aa290
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
c0aa290
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
c0aa290
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
c0aa290
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
c0aa290
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
c0aa290
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
c0aa290
#
c0aa290
c0aa290
%define section free
c0aa290
c0aa290
Name:           objectweb-asm
c0aa290
Version:        3.1
c215446
Release:        7.1%{?dist}
c0aa290
Epoch:          0
c0aa290
Summary:        A code manipulation tool to implement adaptable systems
c0aa290
License:        BSD
c0aa290
URL:            http://asm.objectweb.org/
c0aa290
Group:          Development/Libraries/Java
c0aa290
Source0:        http://download.forge.objectweb.org/asm/asm-3.1.tar.gz
77fd4d3
Source1:        http://repo1.maven.org/maven2/asm/asm/3.1/asm-3.1.pom
77fd4d3
Source2:        http://repo1.maven.org/maven2/asm/asm-analysis/3.1/asm-analysis-3.1.pom
77fd4d3
Source3:        http://repo1.maven.org/maven2/asm/asm-commons/3.1/asm-commons-3.1.pom
77fd4d3
Source4:        http://repo1.maven.org/maven2/asm/asm-tree/3.1/asm-tree-3.1.pom
77fd4d3
Source5:        http://repo1.maven.org/maven2/asm/asm-util/3.1/asm-util-3.1.pom
77fd4d3
Source6:        http://repo1.maven.org/maven2/asm/asm-xml/3.1/asm-xml-3.1.pom
77fd4d3
Source7:        http://repo1.maven.org/maven2/asm/asm-all/3.1/asm-all-3.1.pom
77fd4d3
Source8:        http://repo1.maven.org/maven2/asm/asm-parent/3.1/asm-parent-3.1.pom
77fd4d3
Source9:        asm-MANIFEST.MF
77fd4d3
Patch0:         objectweb-asm-no-classpath-in-manifest.patch
c0aa290
# Needed by asm-xml.jar
c0aa290
Requires:       xml-commons-jaxp-1.3-apis
77fd4d3
Requires(post): jpackage-utils >= 0:1.7.4
77fd4d3
Requires(postun): jpackage-utils >= 0:1.7.4
77fd4d3
BuildRequires:  jpackage-utils >= 0:1.7.4
77fd4d3
BuildRequires:  java-devel >= 0:1.5.0
77fd4d3
BuildRequires:  ant >= 0:1.6.5
77fd4d3
BuildRequires:  objectweb-anttask
77fd4d3
BuildRequires:  xml-commons-jaxp-1.3-apis
77fd4d3
BuildRequires:  zip
c0aa290
BuildArch:      noarch
77fd4d3
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
c0aa290
c0aa290
%description
c0aa290
ASM is a code manipulation tool to implement adaptable systems.
c0aa290
c0aa290
%package        javadoc
c0aa290
Summary:        Javadoc for %{name}
c0aa290
Group:          Development/Documentation
c0aa290
c0aa290
%description    javadoc
c0aa290
Javadoc for %{name}.
c0aa290
c0aa290
%prep
c0aa290
%setup -q -n asm-%{version}
77fd4d3
%patch0 -p1
77fd4d3
perl -pi -e 's/\r$//g' LICENSE.txt README.txt
77fd4d3
77fd4d3
mkdir META-INF
77fd4d3
cp -p %{SOURCE9} META-INF/MANIFEST.MF
c0aa290
c0aa290
%build
77fd4d3
export CLASSPATH=
77fd4d3
export OPT_JAR_LIST=:
c0aa290
ant -Dobjectweb.ant.tasks.path=$(build-classpath objectweb-anttask) jar jdoc
c0aa290
c0aa290
%install
c0aa290
rm -rf $RPM_BUILD_ROOT
c0aa290
c0aa290
# jars
c0aa290
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/%{name}
c0aa290
c0aa290
for jar in output/dist/lib/*.jar; do
c0aa290
install -m 644 ${jar} \
c0aa290
$RPM_BUILD_ROOT%{_javadir}/%{name}/`basename ${jar}`
c0aa290
done
c0aa290
77fd4d3
touch META-INF/MANIFEST.MF
77fd4d3
zip -u output/dist/lib/all/asm-all-%{version}.jar META-INF/MANIFEST.MF
Andrew Overholt 1991ee8
77fd4d3
install -m 644 output/dist/lib/all/asm-all-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/
Andrew Overholt 1991ee8
c0aa290
(cd $RPM_BUILD_ROOT%{_javadir}/%{name} && for jar in *-%{version}*; do \
c0aa290
ln -sf ${jar} ${jar/-%{version}/}; done)
c0aa290
77fd4d3
# pom
77fd4d3
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
77fd4d3
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.objectweb-asm-asm.pom
77fd4d3
%add_to_maven_depmap org.objectweb.asm asm %{version} JPP/objectweb-asm asm
77fd4d3
install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.objectweb-asm-asm-analysis.pom
77fd4d3
%add_to_maven_depmap org.objectweb.asm asm-analysis %{version} JPP/objectweb-asm asm-analysis
77fd4d3
install -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.objectweb-asm-asm-commons.pom
77fd4d3
%add_to_maven_depmap org.objectweb.asm asm-commons %{version} JPP/objectweb-asm asm-commons
77fd4d3
install -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.objectweb-asm-asm-tree.pom
77fd4d3
%add_to_maven_depmap org.objectweb.asm asm-tree %{version} JPP/objectweb-asm asm-tree
77fd4d3
install -m 644 %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.objectweb-asm-asm-util.pom
77fd4d3
%add_to_maven_depmap org.objectweb.asm asm-util %{version} JPP/objectweb-asm asm-util
77fd4d3
install -m 644 %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.objectweb-asm-asm-xml.pom
77fd4d3
%add_to_maven_depmap org.objectweb.asm asm-xml %{version} JPP/objectweb-asm asm-xml
77fd4d3
install -m 644 %{SOURCE7} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.objectweb-asm-asm-all.pom
77fd4d3
%add_to_maven_depmap org.objectweb.asm asm-all %{version} JPP/objectweb-asm asm-all
77fd4d3
install -m 644 %{SOURCE8} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.objectweb-asm-asm-parent.pom
77fd4d3
%add_to_maven_depmap org.objectweb.asm asm-parent %{version} JPP/objectweb-asm asm-parent
Andrew Overholt 1991ee8
c0aa290
# javadoc
c0aa290
install -p -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
c0aa290
cp -pr output/dist/doc/javadoc/user/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
77fd4d3
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
c0aa290
c0aa290
%clean
c0aa290
rm -rf $RPM_BUILD_ROOT
c0aa290
77fd4d3
%post
77fd4d3
%update_maven_depmap
77fd4d3
77fd4d3
%postun
77fd4d3
%update_maven_depmap
77fd4d3
c0aa290
%files
c0aa290
%defattr(0644,root,root,0755)
77fd4d3
%doc LICENSE.txt README.txt
c0aa290
%dir %{_javadir}/%{name}
c0aa290
%{_javadir}/%{name}/*.jar
77fd4d3
%{_datadir}/maven2/*
77fd4d3
%{_mavendepmapfragdir}/*
c0aa290
c0aa290
%files javadoc
c0aa290
%defattr(0644,root,root,0755)
77fd4d3
%{_javadocdir}/%{name}-%{version}
77fd4d3
%{_javadocdir}/%{name}
c0aa290
c0aa290
%changelog
c215446
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:3.1-7.1
c215446
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
c215446
e9d1374
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:3.1-6.1
e9d1374
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e9d1374
77fd4d3
* Tue Oct 23 2008 David Walluck <dwalluck@redhat.com> 0:3.1-5.1
77fd4d3
- build for Fedora
77fd4d3
77fd4d3
* Tue Oct 23 2008 David Walluck <dwalluck@redhat.com> 0:3.1-5
77fd4d3
- add OSGi manifest (Alexander Kurtakov)
77fd4d3
77fd4d3
* Mon Oct 20 2008 David Walluck <dwalluck@redhat.com> 0:3.1-4
77fd4d3
- remove Class-Path from MANIFEST.MF
77fd4d3
- add unversioned javadoc symlink
77fd4d3
- remove javadoc scriptlets
77fd4d3
- fix directory ownership
77fd4d3
- remove build requirement on dos2unix
77fd4d3
77fd4d3
* Fri Feb 08 2008 Ralph Apel <r.apel@r-apel.de> - 0:3.1-3jpp
77fd4d3
- Add poms and depmap frags with groupId of org.objectweb.asm !
77fd4d3
- Add asm-all.jar 
77fd4d3
- Add -javadoc Requires post and postun
77fd4d3
- Restore Vendor, Distribution
ff847c8
c0aa290
* Thu Nov 22 2007 Fernando Nasser <fnasser@redhat.com> - 0:3.1-2jpp
c0aa290
- Fix EOL of txt files
c0aa290
- Add dependency on jaxp 
c0aa290
c0aa290
* Thu Nov 22 2007 Fernando Nasser <fnasser@redhat.com> - 0:3.1-1jpp
c0aa290
- Upgrade to 3.1
c0aa290
c0aa290
* Wed Aug 22 2007 Fernando Nasser <fnasser@redhat.com> - 0:3.0-1jpp
c0aa290
- Upgrade to 3.0
c0aa290
- Rename to include objectweb- prefix as requested by ObjectWeb
c0aa290
c0aa290
* Thu Jan 05 2006 Fernando Nasser <fnasser@redhat.com> - 0:2.1-2jpp
c0aa290
- First JPP 1.7 build
c0aa290
c0aa290
* Thu Oct 06 2005 Ralph Apel <r.apel at r-apel.de> 0:2.1-1jpp
c0aa290
- Upgrade to 2.1
c0aa290
c0aa290
* Fri Mar 11 2005 Sebastiano Vigna <vigna at acm.org> 0:2.0.RC1-1jpp
c0aa290
- First release of the 2.0 line.