|
|
495eb1 |
%global pkg_name objectweb-asm
|
|
|
495eb1 |
%{?scl:%scl_package %{pkg_name}}
|
|
|
495eb1 |
%{?java_common_find_provides_and_requires}
|
|
|
495eb1 |
|
|
|
495eb1 |
# Copyright (c) 2000-2008, JPackage Project
|
|
|
495eb1 |
# All rights reserved.
|
|
|
495eb1 |
#
|
|
|
495eb1 |
# Redistribution and use in source and binary forms, with or without
|
|
|
495eb1 |
# modification, are permitted provided that the following conditions
|
|
|
495eb1 |
# are met:
|
|
|
495eb1 |
#
|
|
|
495eb1 |
# 1. Redistributions of source code must retain the above copyright
|
|
|
495eb1 |
# notice, this list of conditions and the following disclaimer.
|
|
|
495eb1 |
# 2. Redistributions in binary form must reproduce the above copyright
|
|
|
495eb1 |
# notice, this list of conditions and the following disclaimer in the
|
|
|
495eb1 |
# documentation and/or other materials provided with the
|
|
|
495eb1 |
# distribution.
|
|
|
495eb1 |
# 3. Neither the name of the JPackage Project nor the names of its
|
|
|
495eb1 |
# contributors may be used to endorse or promote products derived
|
|
|
495eb1 |
# from this software without specific prior written permission.
|
|
|
495eb1 |
#
|
|
|
495eb1 |
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
495eb1 |
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
495eb1 |
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
|
495eb1 |
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
495eb1 |
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
495eb1 |
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
495eb1 |
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
495eb1 |
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
495eb1 |
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
495eb1 |
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
495eb1 |
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
495eb1 |
#
|
|
|
495eb1 |
|
|
|
495eb1 |
Name: %{?scl_prefix}%{pkg_name}
|
|
|
495eb1 |
Version: 3.3.1
|
|
|
495eb1 |
Release: 9.14%{?dist}
|
|
|
495eb1 |
Epoch: 0
|
|
|
495eb1 |
Summary: A code manipulation tool to implement adaptable systems
|
|
|
495eb1 |
License: BSD
|
|
|
495eb1 |
URL: http://asm.objectweb.org/
|
|
|
495eb1 |
Source0: http://download.forge.objectweb.org/asm/asm-3.3.1.tar.gz
|
|
|
495eb1 |
Source1: asm-MANIFEST.MF
|
|
|
495eb1 |
Patch0: objectweb-asm-no-classpath-in-manifest.patch
|
|
|
495eb1 |
BuildRequires: %{?scl_prefix}javapackages-tools
|
|
|
495eb1 |
BuildRequires: %{?scl_prefix}ant >= 0:1.6.5
|
|
|
495eb1 |
BuildRequires: %{?scl_prefix_maven}objectweb-anttask
|
|
|
495eb1 |
BuildRequires: zip
|
|
|
495eb1 |
BuildArch: noarch
|
|
|
495eb1 |
|
|
|
495eb1 |
%description
|
|
|
495eb1 |
ASM is a code manipulation tool to implement adaptable systems.
|
|
|
495eb1 |
|
|
|
495eb1 |
%package javadoc
|
|
|
495eb1 |
Summary: Javadoc for %{pkg_name}
|
|
|
495eb1 |
|
|
|
495eb1 |
%description javadoc
|
|
|
495eb1 |
Javadoc for %{pkg_name}.
|
|
|
495eb1 |
|
|
|
495eb1 |
%prep
|
|
|
495eb1 |
%setup -q -n asm-%{version}
|
|
|
495eb1 |
%{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"}
|
|
|
495eb1 |
set -e -x
|
|
|
495eb1 |
%patch0 -p1
|
|
|
495eb1 |
perl -pi -e 's/\r$//g' LICENSE.txt README.txt
|
|
|
495eb1 |
|
|
|
495eb1 |
mkdir META-INF
|
|
|
495eb1 |
cp -p %{SOURCE1} META-INF/MANIFEST.MF
|
|
|
495eb1 |
%{?scl:EOF}
|
|
|
495eb1 |
|
|
|
495eb1 |
%build
|
|
|
495eb1 |
%{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"}
|
|
|
495eb1 |
set -e -x
|
|
|
495eb1 |
ant -Dobjectweb.ant.tasks.path=$(build-classpath objectweb-anttask) jar jdoc
|
|
|
495eb1 |
%{?scl:EOF}
|
|
|
495eb1 |
|
|
|
495eb1 |
%install
|
|
|
495eb1 |
%{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"}
|
|
|
495eb1 |
set -e -x
|
|
|
495eb1 |
# jars
|
|
|
495eb1 |
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/%{pkg_name}
|
|
|
495eb1 |
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
|
|
|
495eb1 |
|
|
|
495eb1 |
for jar in output/dist/lib/*.jar; do
|
|
|
495eb1 |
install -m 644 ${jar} \
|
|
|
495eb1 |
$RPM_BUILD_ROOT%{_javadir}/%{pkg_name}/`basename ${jar/-%{version}/}`
|
|
|
495eb1 |
done
|
|
|
495eb1 |
|
|
|
495eb1 |
touch META-INF/MANIFEST.MF
|
|
|
495eb1 |
zip -u output/dist/lib/all/asm-all-%{version}.jar META-INF/MANIFEST.MF
|
|
|
495eb1 |
|
|
|
495eb1 |
install -m 644 output/dist/lib/all/asm-all-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{pkg_name}/asm-all.jar
|
|
|
495eb1 |
install -m 644 output/dist/lib/all/asm-all-%{version}.pom $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.objectweb-asm-asm-all.pom
|
|
|
495eb1 |
|
|
|
495eb1 |
# pom
|
|
|
495eb1 |
for pom in output/dist/lib/*.pom; do
|
|
|
495eb1 |
install -m 644 ${pom} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.objectweb-asm-`basename ${pom/-%{version}/}`
|
|
|
495eb1 |
done
|
|
|
495eb1 |
%add_maven_depmap JPP.objectweb-asm-asm.pom %{pkg_name}/asm.jar
|
|
|
495eb1 |
%add_maven_depmap JPP.objectweb-asm-asm-analysis.pom %{pkg_name}/asm-analysis.jar
|
|
|
495eb1 |
%add_maven_depmap JPP.objectweb-asm-asm-commons.pom %{pkg_name}/asm-commons.jar
|
|
|
495eb1 |
%add_maven_depmap JPP.objectweb-asm-asm-tree.pom %{pkg_name}/asm-tree.jar
|
|
|
495eb1 |
%add_maven_depmap JPP.objectweb-asm-asm-util.pom %{pkg_name}/asm-util.jar
|
|
|
495eb1 |
%add_maven_depmap JPP.objectweb-asm-asm-xml.pom %{pkg_name}/asm-xml.jar
|
|
|
495eb1 |
%add_maven_depmap JPP.objectweb-asm-asm-all.pom %{pkg_name}/asm-all.jar -a "org.eclipse.jetty.orbit:org.objectweb.asm"
|
|
|
495eb1 |
%add_maven_depmap JPP.objectweb-asm-asm-parent.pom
|
|
|
495eb1 |
|
|
|
495eb1 |
# javadoc
|
|
|
495eb1 |
install -p -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
|
|
495eb1 |
cp -pr output/dist/doc/javadoc/user/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
|
|
495eb1 |
%{?scl:EOF}
|
|
|
495eb1 |
|
|
|
495eb1 |
%files -f .mfiles
|
|
|
495eb1 |
%doc LICENSE.txt README.txt
|
|
|
495eb1 |
%dir %{_javadir}/%{pkg_name}
|
|
|
495eb1 |
|
|
|
495eb1 |
%files javadoc
|
|
|
495eb1 |
%{_javadocdir}/%{name}
|
|
|
495eb1 |
|
|
|
495eb1 |
%changelog
|
|
|
495eb1 |
* Tue Jan 13 2015 Michael Simacek <msimacek@redhat.com> - 0:3.3.1-9.14
|
|
|
495eb1 |
- Mass rebuild 2015-01-13
|
|
|
495eb1 |
|
|
|
495eb1 |
* Fri Jan 09 2015 Michal Srb <msrb@redhat.com> - 0:3.3.1-9.13
|
|
|
495eb1 |
- Mass rebuild 2015-01-09
|
|
|
495eb1 |
|
|
|
495eb1 |
* Wed Jan 07 2015 Michal Srb <msrb@redhat.com> - 3.3.1-9.12
|
|
|
495eb1 |
- Migrate to .mfiles
|
|
|
495eb1 |
|
|
|
495eb1 |
* Tue Dec 16 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:3.3.1-9.11
|
|
|
495eb1 |
- Migrate requires and build-requires to rh-java-common
|
|
|
495eb1 |
|
|
|
495eb1 |
* Mon Dec 15 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:3.3.1-9.10
|
|
|
495eb1 |
- Mass rebuild 2014-12-15
|
|
|
495eb1 |
|
|
|
495eb1 |
* Mon Dec 15 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:3.3.1-9.9
|
|
|
495eb1 |
- Rebuild for rh-java-common collection
|
|
|
495eb1 |
|
|
|
495eb1 |
* Mon May 26 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:3.3.1-9.8
|
|
|
495eb1 |
- Mass rebuild 2014-05-26
|
|
|
495eb1 |
|
|
|
495eb1 |
* Thu Feb 20 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:3.3.1-9.7
|
|
|
495eb1 |
- Remove requires on xml-commons-apis
|
|
|
495eb1 |
|
|
|
495eb1 |
* Wed Feb 19 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:3.3.1-9.6
|
|
|
495eb1 |
- Mass rebuild 2014-02-19
|
|
|
495eb1 |
|
|
|
495eb1 |
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:3.3.1-9.5
|
|
|
495eb1 |
- Mass rebuild 2014-02-18
|
|
|
495eb1 |
|
|
|
495eb1 |
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:3.3.1-9.4
|
|
|
495eb1 |
- Remove requires on java
|
|
|
495eb1 |
|
|
|
495eb1 |
* Mon Feb 17 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:3.3.1-9.3
|
|
|
495eb1 |
- SCL-ize build-requires
|
|
|
495eb1 |
|
|
|
495eb1 |
* Thu Feb 13 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:3.3.1-9.2
|
|
|
495eb1 |
- Rebuild to regenerate auto-requires
|
|
|
495eb1 |
|
|
|
495eb1 |
* Tue Feb 11 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:3.3.1-9.1
|
|
|
495eb1 |
- First maven30 software collection build
|
|
|
495eb1 |
|
|
|
495eb1 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 03.3.1-9
|
|
|
495eb1 |
- Mass rebuild 2013-12-27
|
|
|
495eb1 |
|
|
|
495eb1 |
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:3.3.1-8
|
|
|
495eb1 |
- Rebuild to regenerate API documentation
|
|
|
495eb1 |
- Resolves: CVE-2013-1571
|
|
|
495eb1 |
|
|
|
495eb1 |
* Wed Mar 6 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:3.3.1-7
|
|
|
495eb1 |
- Make jetty orbit depmap point to asm-all jar
|
|
|
495eb1 |
- Resolves: rhbz#917625
|
|
|
495eb1 |
|
|
|
495eb1 |
* Mon Mar 4 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:3.3.1-6
|
|
|
495eb1 |
- Add depmap for org.eclipse.jetty.orbit
|
|
|
495eb1 |
- Resolves: rhbz#917625
|
|
|
495eb1 |
|
|
|
495eb1 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:3.3.1-5
|
|
|
495eb1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
495eb1 |
|
|
|
495eb1 |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:3.3.1-4
|
|
|
495eb1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
495eb1 |
|
|
|
495eb1 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:3.3.1-3
|
|
|
495eb1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
495eb1 |
|
|
|
495eb1 |
* Fri Sep 16 2011 Alexander Kurtakov <akurtako@redhat.com> 0:3.3.1-2
|
|
|
495eb1 |
- Use poms produced by the build not foreign ones.
|
|
|
495eb1 |
- Adpat to current guidelines.
|
|
|
495eb1 |
|
|
|
495eb1 |
* Mon Apr 04 2011 Chris Aniszczyk <zx@redhat.com> 0:3.3.1
|
|
|
495eb1 |
- Upgrade to 3.3.1
|
|
|
495eb1 |
|
|
|
495eb1 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:3.2-3
|
|
|
495eb1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
495eb1 |
|
|
|
495eb1 |
* Tue Jul 13 2010 Orion Poplawski <orion@cora.nwra.com> 0:3.2.1-2
|
|
|
495eb1 |
- Change depmap parent id to asm (bug #606659)
|
|
|
495eb1 |
|
|
|
495eb1 |
* Thu Apr 15 2010 Fernando Nasser <fnasser@redhat.com> 0:3.2.1
|
|
|
495eb1 |
- Upgrade to 3.2
|
|
|
495eb1 |
|
|
|
495eb1 |
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:3.1-7.1
|
|
|
495eb1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
495eb1 |
|
|
|
495eb1 |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:3.1-6.1
|
|
|
495eb1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
495eb1 |
|
|
|
495eb1 |
* Tue Oct 23 2008 David Walluck <dwalluck@redhat.com> 0:3.1-5.1
|
|
|
495eb1 |
- build for Fedora
|
|
|
495eb1 |
|
|
|
495eb1 |
* Tue Oct 23 2008 David Walluck <dwalluck@redhat.com> 0:3.1-5
|
|
|
495eb1 |
- add OSGi manifest (Alexander Kurtakov)
|
|
|
495eb1 |
|
|
|
495eb1 |
* Mon Oct 20 2008 David Walluck <dwalluck@redhat.com> 0:3.1-4
|
|
|
495eb1 |
- remove Class-Path from MANIFEST.MF
|
|
|
495eb1 |
- add unversioned javadoc symlink
|
|
|
495eb1 |
- remove javadoc scriptlets
|
|
|
495eb1 |
- fix directory ownership
|
|
|
495eb1 |
- remove build requirement on dos2unix
|
|
|
495eb1 |
|
|
|
495eb1 |
* Fri Feb 08 2008 Ralph Apel <r.apel@r-apel.de> - 0:3.1-3jpp
|
|
|
495eb1 |
- Add poms and depmap frags with groupId of org.objectweb.asm !
|
|
|
495eb1 |
- Add asm-all.jar
|
|
|
495eb1 |
- Add -javadoc Requires post and postun
|
|
|
495eb1 |
- Restore Vendor, Distribution
|
|
|
495eb1 |
|
|
|
495eb1 |
* Thu Nov 22 2007 Fernando Nasser <fnasser@redhat.com> - 0:3.1-2jpp
|
|
|
495eb1 |
- Fix EOL of txt files
|
|
|
495eb1 |
- Add dependency on jaxp
|
|
|
495eb1 |
|
|
|
495eb1 |
* Thu Nov 22 2007 Fernando Nasser <fnasser@redhat.com> - 0:3.1-1jpp
|
|
|
495eb1 |
- Upgrade to 3.1
|
|
|
495eb1 |
|
|
|
495eb1 |
* Wed Aug 22 2007 Fernando Nasser <fnasser@redhat.com> - 0:3.0-1jpp
|
|
|
495eb1 |
- Upgrade to 3.0
|
|
|
495eb1 |
- Rename to include objectweb- prefix as requested by ObjectWeb
|
|
|
495eb1 |
|
|
|
495eb1 |
* Thu Jan 05 2006 Fernando Nasser <fnasser@redhat.com> - 0:2.1-2jpp
|
|
|
495eb1 |
- First JPP 1.7 build
|
|
|
495eb1 |
|
|
|
495eb1 |
* Thu Oct 06 2005 Ralph Apel <r.apel at r-apel.de> 0:2.1-1jpp
|
|
|
495eb1 |
- Upgrade to 2.1
|
|
|
495eb1 |
|
|
|
495eb1 |
* Fri Mar 11 2005 Sebastiano Vigna <vigna at acm.org> 0:2.0.RC1-1jpp
|
|
|
495eb1 |
- First release of the 2.0 line.
|