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