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