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