Blame SPECS/bcel.spec

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