bd7a73
Name:           bcel
bd7a73
Version:        6.4.1
0ef202
Release:        9%{?dist}
bd7a73
Summary:        Byte Code Engineering Library
bd7a73
License:        ASL 2.0
bd7a73
URL:            http://commons.apache.org/proper/commons-bcel/
bd7a73
BuildArch:      noarch
bd7a73
bd7a73
Source0:        http://archive.apache.org/dist/commons/bcel/source/bcel-%{version}-src.tar.gz
bd7a73
0ef202
Patch1:         0001-CVE-2022-42920.patch
0ef202
bd7a73
BuildRequires:  maven-local
bd7a73
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)
bd7a73
bd7a73
%description
bd7a73
The Byte Code Engineering Library (formerly known as JavaClass) is
bd7a73
intended to give users a convenient possibility to analyze, create, and
bd7a73
manipulate (binary) Java class files (those ending with .class). Classes
bd7a73
are represented by objects which contain all the symbolic information of
bd7a73
the given class: methods, fields and byte code instructions, in
bd7a73
particular.  Such objects can be read from an existing file, be
bd7a73
transformed by a program (e.g. a class loader at run-time) and dumped to
bd7a73
a file again. An even more interesting application is the creation of
bd7a73
classes from scratch at run-time. The Byte Code Engineering Library
bd7a73
(BCEL) may be also useful if you want to learn about the Java Virtual
bd7a73
Machine (JVM) and the format of Java .class files.  BCEL is already
bd7a73
being used successfully in several projects such as compilers,
bd7a73
optimizers, obsfuscators and analysis tools, the most popular probably
bd7a73
being the Xalan XSLT processor at Apache.
bd7a73
bd7a73
%package javadoc
bd7a73
Summary:        API documentation for %{name}
bd7a73
bd7a73
%description javadoc
bd7a73
This package provides %{summary}.
bd7a73
bd7a73
%prep
bd7a73
%setup -q -n %{name}-%{version}-src
0ef202
%patch1 -p1
bd7a73
bd7a73
%pom_remove_plugin :maven-source-plugin
bd7a73
bd7a73
%mvn_alias : bcel: apache:
bd7a73
%mvn_file : %{name}
bd7a73
bd7a73
%build
bd7a73
%mvn_build -f
bd7a73
bd7a73
%install
bd7a73
%mvn_install
bd7a73
bd7a73
%files -f .mfiles
bd7a73
%doc RELEASE-NOTES.txt
bd7a73
%license LICENSE.txt NOTICE.txt
bd7a73
bd7a73
%files javadoc -f .mfiles-javadoc
bd7a73
%license LICENSE.txt NOTICE.txt
bd7a73
bd7a73
%changelog
0ef202
* Thu Dec 01 2022 Mikolaj Izdebski <mizdebsk@redhat.com> - 6.4.1-9
0ef202
- Fix arbitrary bytecode produced via out-of-bounds writing
0ef202
- Resolves: CVE-2022-42920
0ef202
bd7a73
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 6.4.1-8
bd7a73
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
bd7a73
  Related: rhbz#1991688
bd7a73
bd7a73
* Mon Jun 28 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 6.4.1-7
bd7a73
- Remove dependency on jna
bd7a73
- Resolves: rhbz#1976996
bd7a73
bd7a73
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 0:6.4.1-6
bd7a73
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
bd7a73
bd7a73
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0:6.4.1-5
bd7a73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
bd7a73
bd7a73
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0:6.4.1-4
bd7a73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
bd7a73
bd7a73
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 0:6.4.1-3
bd7a73
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
bd7a73
bd7a73
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0:6.4.1-2
bd7a73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
bd7a73
bd7a73
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 6.4.1-2
bd7a73
- Mass rebuild for javapackages-tools 201902
bd7a73
bd7a73
* Wed Oct 16 2019 Marian Koncek <mkoncek@redhat.com> - 6.4.1-1
bd7a73
- Update to upstream version 6.4.1
bd7a73
bd7a73
* Fri Oct 04 2019 Fabio Valentini <decathorpe@gmail.com> - 0:6.4.1-1
bd7a73
- Update to version 6.4.1.
bd7a73
bd7a73
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0:6.3.1-2
bd7a73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
bd7a73
bd7a73
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 6.3.1-2
bd7a73
- Mass rebuild for javapackages-tools 201901
bd7a73
bd7a73
* Mon May 06 2019 Marian Koncek <mkoncek@redhat.com> - 0:6.3.1-1
bd7a73
- Update to upstream version 6.3.1
bd7a73
- Fixes: RHBZ #1692150
bd7a73
bd7a73
* Tue Feb 05 2019 Marian Koncek <mkoncek@redhat.com> - 0:6.3-1
bd7a73
- Update to upstream version 6.3
bd7a73
- Fixes: RHBZ #1670025
bd7a73
bd7a73
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0:6.2-4
bd7a73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
bd7a73
bd7a73
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0:6.2-3
bd7a73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
bd7a73
bd7a73
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0:6.2-2
bd7a73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
bd7a73
bd7a73
* Sun Dec 10 2017 Michael Simacek <msimacek@redhat.com> - 0:6.2-1
bd7a73
- Update to upstream version 6.2
bd7a73
bd7a73
* Fri Sep 22 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:6.1-2
bd7a73
- Conditionally build without jna
bd7a73
bd7a73
* Tue Sep 19 2017 Michael Simacek <msimacek@redhat.com> - 0:6.1-1
bd7a73
- Update to upstream version 6.1
bd7a73
bd7a73
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0:6.0-0.7.20140406svn1592769
bd7a73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
bd7a73
bd7a73
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0:6.0-0.6.20140406svn1592769
bd7a73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
bd7a73
bd7a73
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0:6.0-0.5.20140406svn1592769
bd7a73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
bd7a73
bd7a73
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:6.0-0.4.20140406svn1592769
bd7a73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
bd7a73
bd7a73
* Mon Aug 11 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:6.0-0.3.20140406svn1592769
bd7a73
- Add alias for apache:bcel
bd7a73
bd7a73
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:6.0-0.2.20140406svn1592769
bd7a73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
bd7a73
bd7a73
* Tue May 06 2014 Michael Simacek <msimacek@redhat.com> - 0:6.0-0.1.20140406svn1592769
bd7a73
- Update to upstream snapshot compatible with Java 8
bd7a73
bd7a73
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:5.2-17
bd7a73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
bd7a73
bd7a73
* Fri Jun 14 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:5.2-16
bd7a73
- Complete spec file rewrite
bd7a73
- Build with Maven instead of Ant
bd7a73
- Remove manual subpackage
bd7a73
bd7a73
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:5.2-15
bd7a73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
bd7a73
bd7a73
* Tue Nov 13 2012 Tom Callaway <spot@fedoraproject.org> - 0:5.2-14
bd7a73
- Package NOTICE.txt
bd7a73
bd7a73
* Tue Aug 21 2012 Andy Grimm <agrimm@gmail.com> - 0:5.2-13
bd7a73
- This package should not own _mavendepmapfragdir (RHBZ#850005)
bd7a73
- Build with maven, and clean up deprecated spec constructs
bd7a73
- Fix pom file (See http://jira.codehaus.org/browse/MEV-592)
bd7a73
bd7a73
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:5.2-12
bd7a73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
bd7a73
bd7a73
* Sun Jun 24 2012 Gerard Ryan <galileo@fedoraproject.org> - 0:5.2-11
bd7a73
- Inject OSGI Manifest.
bd7a73
bd7a73
* Wed Jan 11 2012 Ville Skyttä <ville.skytta@iki.fi> - 0:5.2-10
bd7a73
- Specify explicit source encoding to fix build with Java 7.
bd7a73
- Install jar and javadocs unversioned.
bd7a73
- Crosslink with JDK javadocs.
bd7a73
bd7a73
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:5.2-9
bd7a73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
bd7a73
bd7a73
* Tue Jul 13 2010 Alexander Kurtakov <akurtako@redhat.com> 0:5.2-8
bd7a73
- Use global.
bd7a73
- Drop gcj_support.
bd7a73
- Fix groups.
bd7a73
- Fix build.
bd7a73
bd7a73
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:5.2-7.1
bd7a73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
bd7a73
bd7a73
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:5.2-6.1
bd7a73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
bd7a73
bd7a73
* Thu Dec 04 2008 Permaine Cheung <pcheung at redhat.com> 0:5.2-5.1
bd7a73
- Do not install poms in /usr/share/maven2/default_poms
bd7a73
bd7a73
* Wed Jul  9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:5.2-5
bd7a73
- drop repotag
bd7a73
bd7a73
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0:5.2-4jpp.2
bd7a73
- Autorebuild for GCC 4.3
bd7a73
bd7a73
* Tue Jan 22 2008 Permaine Cheung <pcheung at redhat.com> 0:5.2-3jpp.1
bd7a73
- Merge with upstream
bd7a73
bd7a73
* Mon Jan 07 2008 Permaine Cheung <pcheung at redhat.com> 0:5.2-2jpp.2
bd7a73
- Fixed unowned directory (Bugzilla 246185)
bd7a73
bd7a73
* Fri Nov 16 2007 Ralph Apel <r.apel@r-apel.de> 0:5.2-3jpp
bd7a73
- Install poms unconditionally
bd7a73
- Add pom in ./maven2/default_poms
bd7a73
- Add org.apache.bcel:bcel depmap frag
bd7a73
bd7a73
* Wed Sep 19 2007 Permaine Cheung <pcheung at redhat.com> 0:5.2-2jpp.1
bd7a73
- Update to 5.2 in Fedora
bd7a73
bd7a73
* Mon Sep  4 2007 Jason Corley <jason.corley@gmail.com> 0:5.2-2jpp
bd7a73
- use official 5.2 release tarballs and location
bd7a73
- change vendor and distribution to macros
bd7a73
- add missing requires on and maven-plugin-test, maven-plugins-base, and
bd7a73
  maven-plugin-xdoc 
bd7a73
- macro bracket fixes
bd7a73
- remove demo subpackage (examples are not included in the distribution tarball)
bd7a73
- build in mock
bd7a73
bd7a73
* Wed Jun 27 2007 Ralph Apel <r.apel@r-apel.de> 0:5.2-1jpp
bd7a73
- Upgrade to 5.2
bd7a73
- Drop bootstrap option: not necessary any more
bd7a73
- Add pom and depmap frags
bd7a73
bd7a73
* Fri Feb 09 2007 Ralph Apel <r.apel@r-apel.de> 0:5.1-10jpp
bd7a73
- Fix empty-%%post and empty-%%postun
bd7a73
- Fix no-cleaning-of-buildroot
bd7a73
bd7a73
* Fri Feb 09 2007 Ralph Apel <r.apel@r-apel.de> 0:5.1-9jpp
bd7a73
- Optionally build without maven
bd7a73
- Add bootstrap option
bd7a73
bd7a73
* Thu Aug 10 2006 Matt Wringe <mwringe at redhat.com> 0:5.1-8jpp
bd7a73
- Add missing requires for Javadoc task
bd7a73
bd7a73
* Sun Jul 23 2006 Matt Wringe <mwringe at redhat.com> 0:5.1-7jpp
bd7a73
- Add conditional native compilation
bd7a73
- Change spec file encoding from ISO-8859-1 to UTF-8
bd7a73
- Add missing BR werken.xpath and ant-apache-regexp
bd7a73
bd7a73
* Tue Apr 11 2006 Ralph Apel <r.apel@r-apel.de> 0:5.1-6jpp
bd7a73
- First JPP-1.7 release
bd7a73
- Use tidyed sources from svn
bd7a73
- Add resources to build the manual
bd7a73
- Add examples to -demo subpackage
bd7a73
- Build with maven by default
bd7a73
- Add option to build with straight ant
bd7a73
bd7a73
* Fri Nov 19 2004 David Walluck <david@jpackage.org> 0:5.1-5jpp
bd7a73
- rebuild to fix packager
bd7a73
bd7a73
* Sat Nov 06 2004 David Walluck <david@jpackage.org> 0:5.1-4jpp
bd7a73
- rebuild with javac 1.4.2
bd7a73
bd7a73
* Sat Oct 16 2004 David Walluck <david@jpackage.org> 0:5.1-3jpp
bd7a73
- rebuild for JPackage 1.6
bd7a73
bd7a73
* Fri Aug 20 2004 Ralph Apel <r.apel at r-apel.de> 0:5.1-2jpp
bd7a73
- Build with ant-1.6.2
bd7a73
bd7a73
* Sun May 11 2003 David Walluck <david@anti-microsoft.org> 0:5.1-1jpp
bd7a73
- 5.1
bd7a73
- update for JPackage 1.5
bd7a73
bd7a73
* Mon Mar 24 2003 Nicolas Mailhot <Nicolas.Mailhot (at) JPackage.org> - 5.0-6jpp
bd7a73
- For jpackage-utils 1.5
bd7a73
bd7a73
* Tue Feb 25 2003 Ville Skyttä <ville.skytta@iki.fi> - 5.0-5jpp
bd7a73
- Rebuild to get docdir right on modern distros.
bd7a73
- Fix License tag and source file perms.
bd7a73
- Built with IBM's 1.3.1SR3 (doesn't build with Sun's 1.4.1_01).
bd7a73
bd7a73
* Tue Jun 11 2002 Henri Gomez <hgomez@slib.fr> 5.0-4jpp
bd7a73
- use sed instead of bash 2.x extension in link area to make spec compatible
bd7a73
  with distro using bash 1.1x
bd7a73
bd7a73
* Tue May 07 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 5.0-3jpp 
bd7a73
- vendor, distribution, group tags
bd7a73
bd7a73
* Wed Jan 23 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 5.0-2jpp 
bd7a73
- section macro
bd7a73
- no dependencies for manual and javadoc package
bd7a73
bd7a73
* Tue Jan 22 2002 Henri Gomez <hgomez@slib.fr> 5.0-1jpp
bd7a73
- bcel is now a jakarta apache project
bd7a73
- dependency on jakarta-regexp instead of gnu.regexp 
bd7a73
- created manual package
bd7a73
bd7a73
* Sat Dec 8 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 4.4.1-2jpp
bd7a73
- javadoc into javadoc package
bd7a73
- Requires: and BuildRequires: gnu.regexp
bd7a73
bd7a73
* Wed Nov 21 2001 Christian Zoffoli <czoffoli@littlepenguin.org> 4.4.1-1jpp
bd7a73
- removed packager tag
bd7a73
- new jpp extension
bd7a73
- 4.4.1
bd7a73
bd7a73
* Thu Oct 11 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 4.4.0-2jpp
bd7a73
- first unified release
bd7a73
- used lower case for name
bd7a73
- used original tarball
bd7a73
- s/jPackage/JPackage
bd7a73
bd7a73
* Mon Aug 27 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 4.4.0-1mdk
bd7a73
- first Mandrake release