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