Blame SPECS/objectweb-asm5.spec

b6a154
%global pkg_name objectweb-asm5
b6a154
%{?scl:%scl_package %{pkg_name}}
b6a154
%{?java_common_find_provides_and_requires}
b6a154
b6a154
Name:           %{?scl_prefix}%{pkg_name}
b6a154
Version:        5.0.3
b6a154
Release:        1.4%{?dist}
b6a154
Summary:        Java bytecode manipulation and analysis framework
b6a154
License:        BSD
b6a154
URL:            http://asm.ow2.org/
b6a154
BuildArch:      noarch
b6a154
b6a154
Source0:        http://download.forge.ow2.org/asm/asm-%{version}.tar.gz
b6a154
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt
b6a154
b6a154
BuildRequires:  %{?scl_prefix}ant
b6a154
BuildRequires:  %{?scl_prefix_maven}aqute-bnd
b6a154
BuildRequires:  %{?scl_prefix}maven-local
b6a154
b6a154
%description
b6a154
ASM is an all purpose Java bytecode manipulation and analysis
b6a154
framework.  It can be used to modify existing classes or dynamically
b6a154
generate classes, directly in binary form.  Provided common
b6a154
transformations and analysis algorithms allow to easily assemble
b6a154
custom complex transformations and code analysis tools.
b6a154
b6a154
%package        javadoc
b6a154
Summary:        API documentation for %{pkg_name}
b6a154
b6a154
%description    javadoc
b6a154
This package provides %{summary}.
b6a154
b6a154
%prep
b6a154
%{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"}
b6a154
set -e -x
b6a154
%setup -q -n asm-%{version}
b6a154
find -name *.jar -delete
b6a154
b6a154
sed -i /Class-Path/d archive/*.bnd
b6a154
sed -i "s/Import-Package:/&org.objectweb.asm,org.objectweb.asm.util,/" archive/asm-xml.bnd
b6a154
sed -i "s|\${config}/biz.aQute.bnd.jar|`build-classpath aqute-bnd`|" archive/*.xml
b6a154
sed -i -e '/kind="lib"/d' -e 's|output/eclipse|output/build|' .classpath
b6a154
b6a154
%mvn_compat_version : 5 5.0.3
b6a154
%{?scl:EOF}
b6a154
b6a154
%build
b6a154
%{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"}
b6a154
set -e -x
b6a154
%ant -Dobjectweb.ant.tasks.path= jar jdoc
b6a154
%{?scl:EOF}
b6a154
b6a154
%install
b6a154
%{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"}
b6a154
set -e -x
b6a154
# missing dep org.ow2:ow2 (nothing interesting in there anyway)
b6a154
%pom_remove_parent output/dist/lib/asm-parent-%{version}.pom
b6a154
b6a154
%mvn_artifact output/dist/lib/asm-parent-%{version}.pom
b6a154
for m in asm asm-analysis asm-commons asm-tree asm-util asm-xml all/asm-all all/asm-debug-all; do
b6a154
    %mvn_artifact output/dist/lib/${m}-%{version}.pom \
b6a154
                  output/dist/lib/${m}-%{version}.jar
b6a154
done
b6a154
%mvn_install -J output/dist/doc/javadoc/user
b6a154
%{?scl:EOF}
b6a154
b6a154
%files -f .mfiles
b6a154
%doc LICENSE.txt README.txt
b6a154
%dir %{_javadir}/%{pkg_name}
b6a154
%dir %{_mavenpomdir}/%{pkg_name}
b6a154
b6a154
%files javadoc -f .mfiles-javadoc
b6a154
%doc LICENSE.txt
b6a154
b6a154
%changelog
b6a154
* Wed Jan 14 2015 Michal Srb <msrb@redhat.com> - 5.0.3-1.4
b6a154
- Fix directory ownership
b6a154
b6a154
* Tue Jan 13 2015 Michael Simacek <msimacek@redhat.com> - 5.0.3-1.3
b6a154
- Mass rebuild 2015-01-13
b6a154
b6a154
* Fri Jan 09 2015 Michal Srb <msrb@redhat.com> - 5.0.3-1.2
b6a154
- Mass rebuild 2015-01-09
b6a154
b6a154
* Tue Jan 06 2015 Michal Srb <msrb@redhat.com> - 5.0.3-1.1
b6a154
- SCL-ize spec file
b6a154
- Remove dependency on unavailable parent POM
b6a154
- Drop jpackage_script
b6a154
- Make it a compat package
b6a154
b6a154
* Sun Jul 20 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 5.0.3-1
b6a154
- Update to upstream version 5.0.3
b6a154
b6a154
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0.2-2
b6a154
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b6a154
b6a154
* Mon May  5 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 5.0.2-1
b6a154
- Update to upstream version 5.0.2
b6a154
b6a154
* Mon Apr 14 2014 Mat Booth <mat.booth@redhat.com> - 5.0.1-2
b6a154
- SCL-ize package.
b6a154
- Fix bogus dates in changelog.
b6a154
b6a154
* Mon Mar 24 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 5.0.1-1
b6a154
- Update to upstream version 5.0.1
b6a154
b6a154
* Wed Mar 19 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 5.0-0.3.beta
b6a154
- Enable asm-debug-all module
b6a154
b6a154
* Mon Jan 20 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 5.0-0.2.beta
b6a154
- Remove Eclipse Orbit alias
b6a154
b6a154
* Tue Dec  3 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 5.0-0.1.beta
b6a154
- Update to 5.0 beta
b6a154
b6a154
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:3.3.1-8
b6a154
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
b6a154
b6a154
* Wed Mar  6 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:3.3.1-7
b6a154
- Make jetty orbit depmap point to asm-all jar
b6a154
- Resolves: rhbz#917625
b6a154
b6a154
* Mon Mar  4 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:3.3.1-6
b6a154
- Add depmap for org.eclipse.jetty.orbit
b6a154
- Resolves: rhbz#917625
b6a154
b6a154
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:3.3.1-5
b6a154
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b6a154
b6a154
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:3.3.1-4
b6a154
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b6a154
b6a154
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:3.3.1-3
b6a154
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
b6a154
b6a154
* Fri Sep 16 2011 Alexander Kurtakov <akurtako@redhat.com> 0:3.3.1-2
b6a154
- Use poms produced by the build not foreign ones.
b6a154
- Adpat to current guidelines.
b6a154
b6a154
* Mon Apr 04 2011 Chris Aniszczyk <zx@redhat.com> 0:3.3.1
b6a154
- Upgrade to 3.3.1
b6a154
b6a154
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:3.2-3
b6a154
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
b6a154
b6a154
* Tue Jul 13 2010 Orion Poplawski <orion@cora.nwra.com>  0:3.2.1-2
b6a154
- Change depmap parent id to asm (bug #606659)
b6a154
b6a154
* Thu Apr 15 2010 Fernando Nasser <fnasser@redhat.com> 0:3.2.1
b6a154
- Upgrade to 3.2
b6a154
b6a154
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:3.1-7.1
b6a154
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
b6a154
b6a154
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:3.1-6.1
b6a154
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
b6a154
b6a154
* Thu Oct 23 2008 David Walluck <dwalluck@redhat.com> 0:3.1-5.1
b6a154
- build for Fedora
b6a154
b6a154
* Thu Oct 23 2008 David Walluck <dwalluck@redhat.com> 0:3.1-5
b6a154
- add OSGi manifest (Alexander Kurtakov)
b6a154
b6a154
* Mon Oct 20 2008 David Walluck <dwalluck@redhat.com> 0:3.1-4
b6a154
- remove Class-Path from MANIFEST.MF
b6a154
- add unversioned javadoc symlink
b6a154
- remove javadoc scriptlets
b6a154
- fix directory ownership
b6a154
- remove build requirement on dos2unix
b6a154
b6a154
* Fri Feb 08 2008 Ralph Apel <r.apel@r-apel.de> - 0:3.1-3jpp
b6a154
- Add poms and depmap frags with groupId of org.objectweb.asm !
b6a154
- Add asm-all.jar 
b6a154
- Add -javadoc Requires post and postun
b6a154
- Restore Vendor, Distribution
b6a154
b6a154
* Thu Nov 22 2007 Fernando Nasser <fnasser@redhat.com> - 0:3.1-2jpp
b6a154
- Fix EOL of txt files
b6a154
- Add dependency on jaxp 
b6a154
b6a154
* Thu Nov 22 2007 Fernando Nasser <fnasser@redhat.com> - 0:3.1-1jpp
b6a154
- Upgrade to 3.1
b6a154
b6a154
* Wed Aug 22 2007 Fernando Nasser <fnasser@redhat.com> - 0:3.0-1jpp
b6a154
- Upgrade to 3.0
b6a154
- Rename to include objectweb- prefix as requested by ObjectWeb
b6a154
b6a154
* Thu Jan 05 2006 Fernando Nasser <fnasser@redhat.com> - 0:2.1-2jpp
b6a154
- First JPP 1.7 build
b6a154
b6a154
* Thu Oct 06 2005 Ralph Apel <r.apel at r-apel.de> 0:2.1-1jpp
b6a154
- Upgrade to 2.1
b6a154
b6a154
* Fri Mar 11 2005 Sebastiano Vigna <vigna at acm.org> 0:2.0.RC1-1jpp
b6a154
- First release of the 2.0 line.