diff --git a/.fmf/version b/.fmf/version
new file mode 100644
index 0000000..d00491f
--- /dev/null
+++ b/.fmf/version
@@ -0,0 +1 @@
+1
diff --git a/.gitignore b/.gitignore
index b5e72d6..5b2eb60 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,15 @@
+/results_*
+/*.src.rpm
+
/bcel-5.2-src.tar.gz
/bcel-1592769.tar.xz
+/bcel-6.1-src.tar.gz
+/bcel-6.2-src.tar.gz
+/bcel-6.3-src.tar.gz
+/bcel-6.3.1-src.tar.gz
+/bcel-6.4.1-src.tar.gz
+/bcel-6.5.0-src.tar.gz
+/bcel-6.7.0-src.tar.gz
+/bcel-6.8.0-src.tar.gz
+/bcel-6.8.1-src.tar.gz
+/bcel-6.10.0-src.tar.gz
diff --git a/bcel-pom.xml b/bcel-pom.xml
deleted file mode 100644
index d3a119a..0000000
--- a/bcel-pom.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-
- 4.0.0
- org.apache.bcel
- bcel
- 6.0
- bundle
-
- ISO-8859-1
-
-
-
- junit
- junit
- any
- test
-
-
- regexp
- regexp
- 1.2
-
-
-
- src/main/java
-
-
- org.apache.felix
- maven-bundle-plugin
- true
-
-
- <_nouses>true
- org.apache.bcel.*
-
-
-
-
-
-
diff --git a/bcel.spec b/bcel.spec
index 3c9f5bb..54856cc 100644
--- a/bcel.spec
+++ b/bcel.spec
@@ -1,26 +1,20 @@
-%global svnrev 1592769
-
Name: bcel
-Version: 6.0
-Release: 0.3.20140406svn%{svnrev}%{?dist}
-Epoch: 0
+Version: 6.10.0
+Release: %autorelease
Summary: Byte Code Engineering Library
-License: ASL 2.0
-URL: http://commons.apache.org/proper/commons-bcel/
-# Source for releases:
-# Source0: http://archive.apache.org/dist/commons/bcel/source/bcel-%{version}-src.tar.gz
-
-# svn export http://svn.apache.org/repos/asf/commons/proper/bcel/trunk bcel
-# tar cJf bcel-1592769.tar.xz bcel
-Source0: bcel-%{svnrev}.tar.xz
-# Upstream uses Maven 1, which is not available in Fedora.
-# The following is upstream project.xml converted to Maven 2/3.
-Source1: %{name}-pom.xml
+License: Apache-2.0
+URL: https://commons.apache.org/proper/commons-bcel/
BuildArch: noarch
+ExclusiveArch: %{java_arches} noarch
-BuildRequires: maven-local
-BuildRequires: mvn(regexp:regexp)
+Source0: http://archive.apache.org/dist/commons/bcel/source/bcel-%{version}-src.tar.gz
+
+BuildRequires: maven-local-openjdk25
+BuildRequires: mvn(org.apache.commons:commons-lang3)
+BuildRequires: mvn(org.apache.commons:commons-parent:pom:)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
+# TODO Remove in Fedora 46
+Obsoletes: %{name}-javadoc < 6.8.1-14
%description
The Byte Code Engineering Library (formerly known as JavaClass) is
@@ -38,206 +32,25 @@ being used successfully in several projects such as compilers,
optimizers, obsfuscators and analysis tools, the most popular probably
being the Xalan XSLT processor at Apache.
-%package javadoc
-Summary: API documentation for %{name}
-Obsoletes: %{name}-manual < %{version}-%{release}
-
-%description javadoc
-This package provides %{summary}.
-
%prep
-%setup -q -n %{name}
-cp -p %{SOURCE1} pom.xml
+%autosetup -p1 -C
+
+%pom_remove_plugin :maven-source-plugin
+%pom_remove_plugin :spotbugs-maven-plugin
+%pom_remove_plugin :jacoco-maven-plugin
+
%mvn_alias : bcel: apache:
%mvn_file : %{name}
-# different path in test
-sed -i '\|lib/dt\.jar|s|javaHome|javaHome.substring(0, javaHome.length() - 4)|' \
- src/test/java/org/apache/bcel/PerformanceTest.java
-
%build
-%mvn_build
+%mvn_build -j -f
%install
%mvn_install
%files -f .mfiles
-%doc README.txt
-%doc LICENSE.txt NOTICE.txt
-
-%files javadoc -f .mfiles-javadoc
-%doc LICENSE.txt NOTICE.txt
+%doc RELEASE-NOTES.txt
+%license LICENSE.txt NOTICE.txt
%changelog
-* Mon Aug 11 2014 Mikolaj Izdebski - 0:6.0-0.3.20140406svn1592769
-- Add alias for apache:bcel
-
-* Sat Jun 07 2014 Fedora Release Engineering - 0:6.0-0.2.20140406svn1592769
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
-
-* Tue May 06 2014 Michael Simacek - 0:6.0-0.1.20140406svn1592769
-- Update to upstream snapshot compatible with Java 8
-
-* Sat Aug 03 2013 Fedora Release Engineering - 0:5.2-17
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
-
-* Fri Jun 14 2013 Mikolaj Izdebski - 0:5.2-16
-- Complete spec file rewrite
-- Build with Maven instead of Ant
-- Remove manual subpackage
-
-* Wed Feb 13 2013 Fedora Release Engineering - 0:5.2-15
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
-
-* Tue Nov 13 2012 Tom Callaway - 0:5.2-14
-- Package NOTICE.txt
-
-* Tue Aug 21 2012 Andy Grimm - 0:5.2-13
-- This package should not own _mavendepmapfragdir (RHBZ#850005)
-- Build with maven, and clean up deprecated spec constructs
-- Fix pom file (See http://jira.codehaus.org/browse/MEV-592)
-
-* Wed Jul 18 2012 Fedora Release Engineering - 0:5.2-12
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
-
-* Sun Jun 24 2012 Gerard Ryan - 0:5.2-11
-- Inject OSGI Manifest.
-
-* Wed Jan 11 2012 Ville Skyttä - 0:5.2-10
-- Specify explicit source encoding to fix build with Java 7.
-- Install jar and javadocs unversioned.
-- Crosslink with JDK javadocs.
-
-* Mon Feb 07 2011 Fedora Release Engineering - 0:5.2-9
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
-
-* Tue Jul 13 2010 Alexander Kurtakov 0:5.2-8
-- Use global.
-- Drop gcj_support.
-- Fix groups.
-- Fix build.
-
-* Fri Jul 24 2009 Fedora Release Engineering - 0:5.2-7.1
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
-
-* Mon Feb 23 2009 Fedora Release Engineering - 0:5.2-6.1
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
-
-* Thu Dec 04 2008 Permaine Cheung 0:5.2-5.1
-- Do not install poms in /usr/share/maven2/default_poms
-
-* Wed Jul 9 2008 Tom "spot" Callaway - 0:5.2-5
-- drop repotag
-
-* Tue Feb 19 2008 Fedora Release Engineering - 0:5.2-4jpp.2
-- Autorebuild for GCC 4.3
-
-* Tue Jan 22 2008 Permaine Cheung 0:5.2-3jpp.1
-- Merge with upstream
-
-* Mon Jan 07 2008 Permaine Cheung 0:5.2-2jpp.2
-- Fixed unowned directory (Bugzilla 246185)
-
-* Fri Nov 16 2007 Ralph Apel 0:5.2-3jpp
-- Install poms unconditionally
-- Add pom in ./maven2/default_poms
-- Add org.apache.bcel:bcel depmap frag
-
-* Wed Sep 19 2007 Permaine Cheung 0:5.2-2jpp.1
-- Update to 5.2 in Fedora
-
-* Mon Sep 4 2007 Jason Corley 0:5.2-2jpp
-- use official 5.2 release tarballs and location
-- change vendor and distribution to macros
-- add missing requires on and maven-plugin-test, maven-plugins-base, and
- maven-plugin-xdoc
-- macro bracket fixes
-- remove demo subpackage (examples are not included in the distribution tarball)
-- build in mock
-
-* Wed Jun 27 2007 Ralph Apel 0:5.2-1jpp
-- Upgrade to 5.2
-- Drop bootstrap option: not necessary any more
-- Add pom and depmap frags
-
-* Fri Feb 09 2007 Ralph Apel 0:5.1-10jpp
-- Fix empty-%%post and empty-%%postun
-- Fix no-cleaning-of-buildroot
-
-* Fri Feb 09 2007 Ralph Apel 0:5.1-9jpp
-- Optionally build without maven
-- Add bootstrap option
-
-* Thu Aug 10 2006 Matt Wringe 0:5.1-8jpp
-- Add missing requires for Javadoc task
-
-* Sun Jul 23 2006 Matt Wringe 0:5.1-7jpp
-- Add conditional native compilation
-- Change spec file encoding from ISO-8859-1 to UTF-8
-- Add missing BR werken.xpath and ant-apache-regexp
-
-* Tue Apr 11 2006 Ralph Apel 0:5.1-6jpp
-- First JPP-1.7 release
-- Use tidyed sources from svn
-- Add resources to build the manual
-- Add examples to -demo subpackage
-- Build with maven by default
-- Add option to build with straight ant
-
-* Fri Nov 19 2004 David Walluck 0:5.1-5jpp
-- rebuild to fix packager
-
-* Sat Nov 06 2004 David Walluck 0:5.1-4jpp
-- rebuild with javac 1.4.2
-
-* Sat Oct 16 2004 David Walluck 0:5.1-3jpp
-- rebuild for JPackage 1.6
-
-* Fri Aug 20 2004 Ralph Apel 0:5.1-2jpp
-- Build with ant-1.6.2
-
-* Sun May 11 2003 David Walluck 0:5.1-1jpp
-- 5.1
-- update for JPackage 1.5
-
-* Mon Mar 24 2003 Nicolas Mailhot - 5.0-6jpp
-- For jpackage-utils 1.5
-
-* Tue Feb 25 2003 Ville Skyttä - 5.0-5jpp
-- Rebuild to get docdir right on modern distros.
-- Fix License tag and source file perms.
-- Built with IBM's 1.3.1SR3 (doesn't build with Sun's 1.4.1_01).
-
-* Tue Jun 11 2002 Henri Gomez 5.0-4jpp
-- use sed instead of bash 2.x extension in link area to make spec compatible
- with distro using bash 1.1x
-
-* Tue May 07 2002 Guillaume Rousse 5.0-3jpp
-- vendor, distribution, group tags
-
-* Wed Jan 23 2002 Guillaume Rousse 5.0-2jpp
-- section macro
-- no dependencies for manual and javadoc package
-
-* Tue Jan 22 2002 Henri Gomez 5.0-1jpp
-- bcel is now a jakarta apache project
-- dependency on jakarta-regexp instead of gnu.regexp
-- created manual package
-
-* Sat Dec 8 2001 Guillaume Rousse 4.4.1-2jpp
-- javadoc into javadoc package
-- Requires: and BuildRequires: gnu.regexp
-
-* Wed Nov 21 2001 Christian Zoffoli 4.4.1-1jpp
-- removed packager tag
-- new jpp extension
-- 4.4.1
-
-* Thu Oct 11 2001 Guillaume Rousse 4.4.0-2jpp
-- first unified release
-- used lower case for name
-- used original tarball
-- s/jPackage/JPackage
-
-* Mon Aug 27 2001 Guillaume Rousse 4.4.0-1mdk
-- first Mandrake release
+%autochangelog
diff --git a/changelog b/changelog
new file mode 100644
index 0000000..3aca486
--- /dev/null
+++ b/changelog
@@ -0,0 +1,292 @@
+* Wed Jul 17 2024 Fedora Release Engineering - 6.8.1-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
+
+* Tue Feb 27 2024 Jiri Vanek - 6.8.1-2
+- Rebuilt for java-21-openjdk as system jdk
+
+* Thu Feb 01 2024 Mikolaj Izdebski - 6.8.1-1
+- Update to upstream version 6.8.1
+
+* Tue Jan 23 2024 Fedora Release Engineering - 6.8.0-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
+
+* Fri Jan 19 2024 Fedora Release Engineering - 6.8.0-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
+
+* Mon Dec 11 2023 Marian Koncek - 6.8.0-1
+- Update to upstream version 6.8.0
+
+* Fri Sep 01 2023 Mikolaj Izdebski - 6.7.0-3
+- Convert License tag to SPDX format
+
+* Fri Aug 18 2023 Mikolaj Izdebski - 6.7.0-2
+- Add missing build-requires
+
+* Fri Aug 18 2023 Mikolaj Izdebski - 6.7.0-1
+- Update to upstream version 6.7.0
+
+* Wed Jul 19 2023 Fedora Release Engineering - 6.5.0-5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
+
+* Wed Jan 18 2023 Fedora Release Engineering - 6.5.0-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
+
+* Thu Dec 01 2022 Mikolaj Izdebski - 6.5.0-3
+- Fix arbitrary bytecode produced via out-of-bounds writing
+- Resolves: CVE-2022-42920
+
+* Wed Jul 20 2022 Fedora Release Engineering - 6.5.0-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
+
+* Sun Apr 24 2022 Mikolaj Izdebski - 6.5.0-1
+- Update to upstream version 6.5.0
+
+* Sat Feb 05 2022 Jiri Vanek - 6.4.1-9
+- Rebuilt for java-17-openjdk as system jdk
+
+* Wed Jan 19 2022 Fedora Release Engineering - 6.4.1-8
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
+
+* Wed Jul 21 2021 Fedora Release Engineering - 6.4.1-7
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
+
+* Mon Jun 28 2021 Mikolaj Izdebski - 6.4.1-6
+- Remove dependency on jna
+
+* Tue Jan 26 2021 Fedora Release Engineering - 0:6.4.1-5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
+
+* Mon Jul 27 2020 Fedora Release Engineering - 0:6.4.1-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
+
+* Fri Jul 10 2020 Jiri Vanek - 0:6.4.1-3
+- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
+
+* Tue Jan 28 2020 Fedora Release Engineering - 0:6.4.1-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
+
+* Tue Nov 05 2019 Mikolaj Izdebski - 6.4.1-2
+- Mass rebuild for javapackages-tools 201902
+
+* Wed Oct 16 2019 Marian Koncek - 6.4.1-1
+- Update to upstream version 6.4.1
+
+* Fri Oct 04 2019 Fabio Valentini - 0:6.4.1-1
+- Update to version 6.4.1.
+
+* Wed Jul 24 2019 Fedora Release Engineering - 0:6.3.1-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
+
+* Fri May 24 2019 Mikolaj Izdebski - 6.3.1-2
+- Mass rebuild for javapackages-tools 201901
+
+* Mon May 06 2019 Marian Koncek - 0:6.3.1-1
+- Update to upstream version 6.3.1
+- Fixes: RHBZ #1692150
+
+* Tue Feb 05 2019 Marian Koncek - 0:6.3-1
+- Update to upstream version 6.3
+- Fixes: RHBZ #1670025
+
+* Thu Jan 31 2019 Fedora Release Engineering - 0:6.2-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
+
+* Thu Jul 12 2018 Fedora Release Engineering - 0:6.2-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
+
+* Wed Feb 07 2018 Fedora Release Engineering - 0:6.2-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
+
+* Sun Dec 10 2017 Michael Simacek - 0:6.2-1
+- Update to upstream version 6.2
+
+* Fri Sep 22 2017 Mikolaj Izdebski - 0:6.1-2
+- Conditionally build without jna
+
+* Tue Sep 19 2017 Michael Simacek - 0:6.1-1
+- Update to upstream version 6.1
+
+* Wed Jul 26 2017 Fedora Release Engineering - 0:6.0-0.7.20140406svn1592769
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
+
+* Fri Feb 10 2017 Fedora Release Engineering - 0:6.0-0.6.20140406svn1592769
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
+
+* Wed Feb 03 2016 Fedora Release Engineering - 0:6.0-0.5.20140406svn1592769
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
+
+* Wed Jun 17 2015 Fedora Release Engineering - 0:6.0-0.4.20140406svn1592769
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
+
+* Mon Aug 11 2014 Mikolaj Izdebski - 0:6.0-0.3.20140406svn1592769
+- Add alias for apache:bcel
+
+* Sat Jun 07 2014 Fedora Release Engineering - 0:6.0-0.2.20140406svn1592769
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
+
+* Tue May 06 2014 Michael Simacek - 0:6.0-0.1.20140406svn1592769
+- Update to upstream snapshot compatible with Java 8
+
+* Sat Aug 03 2013 Fedora Release Engineering - 0:5.2-17
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
+
+* Fri Jun 14 2013 Mikolaj Izdebski - 0:5.2-16
+- Complete spec file rewrite
+- Build with Maven instead of Ant
+- Remove manual subpackage
+
+* Wed Feb 13 2013 Fedora Release Engineering - 0:5.2-15
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
+
+* Tue Nov 13 2012 Tom Callaway - 0:5.2-14
+- Package NOTICE.txt
+
+* Tue Aug 21 2012 Andy Grimm - 0:5.2-13
+- This package should not own _mavendepmapfragdir (RHBZ#850005)
+- Build with maven, and clean up deprecated spec constructs
+- Fix pom file (See http://jira.codehaus.org/browse/MEV-592)
+
+* Wed Jul 18 2012 Fedora Release Engineering - 0:5.2-12
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
+
+* Sun Jun 24 2012 Gerard Ryan - 0:5.2-11
+- Inject OSGI Manifest.
+
+* Wed Jan 11 2012 Ville Skyttä - 0:5.2-10
+- Specify explicit source encoding to fix build with Java 7.
+- Install jar and javadocs unversioned.
+- Crosslink with JDK javadocs.
+
+* Mon Feb 07 2011 Fedora Release Engineering - 0:5.2-9
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Tue Jul 13 2010 Alexander Kurtakov 0:5.2-8
+- Use global.
+- Drop gcj_support.
+- Fix groups.
+- Fix build.
+
+* Fri Jul 24 2009 Fedora Release Engineering - 0:5.2-7.1
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Mon Feb 23 2009 Fedora Release Engineering - 0:5.2-6.1
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Thu Dec 04 2008 Permaine Cheung 0:5.2-5.1
+- Do not install poms in /usr/share/maven2/default_poms
+
+* Wed Jul 9 2008 Tom "spot" Callaway - 0:5.2-5
+- drop repotag
+
+* Tue Feb 19 2008 Fedora Release Engineering - 0:5.2-4jpp.2
+- Autorebuild for GCC 4.3
+
+* Tue Jan 22 2008 Permaine Cheung 0:5.2-3jpp.1
+- Merge with upstream
+
+* Mon Jan 07 2008 Permaine Cheung 0:5.2-2jpp.2
+- Fixed unowned directory (Bugzilla 246185)
+
+* Fri Nov 16 2007 Ralph Apel 0:5.2-3jpp
+- Install poms unconditionally
+- Add pom in ./maven2/default_poms
+- Add org.apache.bcel:bcel depmap frag
+
+* Wed Sep 19 2007 Permaine Cheung 0:5.2-2jpp.1
+- Update to 5.2 in Fedora
+
+* Mon Sep 4 2007 Jason Corley 0:5.2-2jpp
+- use official 5.2 release tarballs and location
+- change vendor and distribution to macros
+- add missing requires on and maven-plugin-test, maven-plugins-base, and
+ maven-plugin-xdoc
+- macro bracket fixes
+- remove demo subpackage (examples are not included in the distribution tarball)
+- build in mock
+
+* Wed Jun 27 2007 Ralph Apel 0:5.2-1jpp
+- Upgrade to 5.2
+- Drop bootstrap option: not necessary any more
+- Add pom and depmap frags
+
+* Fri Feb 09 2007 Ralph Apel 0:5.1-10jpp
+- Fix empty-%%post and empty-%%postun
+- Fix no-cleaning-of-buildroot
+
+* Fri Feb 09 2007 Ralph Apel 0:5.1-9jpp
+- Optionally build without maven
+- Add bootstrap option
+
+* Thu Aug 10 2006 Matt Wringe 0:5.1-8jpp
+- Add missing requires for Javadoc task
+
+* Sun Jul 23 2006 Matt Wringe 0:5.1-7jpp
+- Add conditional native compilation
+- Change spec file encoding from ISO-8859-1 to UTF-8
+- Add missing BR werken.xpath and ant-apache-regexp
+
+* Tue Apr 11 2006 Ralph Apel 0:5.1-6jpp
+- First JPP-1.7 release
+- Use tidyed sources from svn
+- Add resources to build the manual
+- Add examples to -demo subpackage
+- Build with maven by default
+- Add option to build with straight ant
+
+* Fri Nov 19 2004 David Walluck 0:5.1-5jpp
+- rebuild to fix packager
+
+* Sat Nov 06 2004 David Walluck 0:5.1-4jpp
+- rebuild with javac 1.4.2
+
+* Sat Oct 16 2004 David Walluck 0:5.1-3jpp
+- rebuild for JPackage 1.6
+
+* Fri Aug 20 2004 Ralph Apel 0:5.1-2jpp
+- Build with ant-1.6.2
+
+* Sun May 11 2003 David Walluck 0:5.1-1jpp
+- 5.1
+- update for JPackage 1.5
+
+* Mon Mar 24 2003 Nicolas Mailhot - 5.0-6jpp
+- For jpackage-utils 1.5
+
+* Tue Feb 25 2003 Ville Skyttä - 5.0-5jpp
+- Rebuild to get docdir right on modern distros.
+- Fix License tag and source file perms.
+- Built with IBM's 1.3.1SR3 (doesn't build with Sun's 1.4.1_01).
+
+* Tue Jun 11 2002 Henri Gomez 5.0-4jpp
+- use sed instead of bash 2.x extension in link area to make spec compatible
+ with distro using bash 1.1x
+
+* Tue May 07 2002 Guillaume Rousse 5.0-3jpp
+- vendor, distribution, group tags
+
+* Wed Jan 23 2002 Guillaume Rousse 5.0-2jpp
+- section macro
+- no dependencies for manual and javadoc package
+
+* Tue Jan 22 2002 Henri Gomez 5.0-1jpp
+- bcel is now a jakarta apache project
+- dependency on jakarta-regexp instead of gnu.regexp
+- created manual package
+
+* Sat Dec 8 2001 Guillaume Rousse 4.4.1-2jpp
+- javadoc into javadoc package
+- Requires: and BuildRequires: gnu.regexp
+
+* Wed Nov 21 2001 Christian Zoffoli 4.4.1-1jpp
+- removed packager tag
+- new jpp extension
+- 4.4.1
+
+* Thu Oct 11 2001 Guillaume Rousse 4.4.0-2jpp
+- first unified release
+- used lower case for name
+- used original tarball
+- s/jPackage/JPackage
+
+* Mon Aug 27 2001 Guillaume Rousse 4.4.0-1mdk
+- first Mandrake release
diff --git a/ci.fmf b/ci.fmf
new file mode 100644
index 0000000..c5aa0e0
--- /dev/null
+++ b/ci.fmf
@@ -0,0 +1 @@
+resultsdb-testcase: separate
diff --git a/gating.yaml b/gating.yaml
new file mode 100644
index 0000000..7b6e38f
--- /dev/null
+++ b/gating.yaml
@@ -0,0 +1,9 @@
+--- !Policy
+product_versions:
+ - fedora-*
+decision_contexts:
+ - bodhi_update_push_testing
+ - bodhi_update_push_stable
+rules:
+ - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/smoke.functional}
+ - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/javapackages.functional}
diff --git a/plans/javapackages.fmf b/plans/javapackages.fmf
new file mode 100644
index 0000000..ae17c0c
--- /dev/null
+++ b/plans/javapackages.fmf
@@ -0,0 +1,7 @@
+summary: Run javapackages-specific tests
+discover:
+ how: fmf
+ url: https://gitlab.com/redhat/centos-stream/tests/javapackages.git
+ ref: f43
+execute:
+ how: tmt
diff --git a/plans/smoke.fmf b/plans/smoke.fmf
new file mode 100644
index 0000000..a1e7bfd
--- /dev/null
+++ b/plans/smoke.fmf
@@ -0,0 +1,5 @@
+summary: Basic smoke test
+discover:
+ how: fmf
+execute:
+ how: tmt
diff --git a/sources b/sources
index 8ce4687..2a1c63f 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-1ad6d683fa3f6fb611673bbaf1f34c1a bcel-1592769.tar.xz
+SHA512 (bcel-6.10.0-src.tar.gz) = 7ea129a048bf510ed15212a17680dfa37fe8c4adcc75504fa9a6ff35ef97d25f267547ad019fe146cd2fea9a3ef0eaca432d4c9cac7570ba5e68897f21c29a14
diff --git a/tests/Sanity/upstream-tests/main.fmf b/tests/Sanity/upstream-tests/main.fmf
new file mode 100644
index 0000000..a3a52fb
--- /dev/null
+++ b/tests/Sanity/upstream-tests/main.fmf
@@ -0,0 +1,8 @@
+summary: BCEL upstream tests
+description: |
+ Run BCEL upstream tests that are packaged in the SRPM.
+require:
+ - bcel
+ - javapackages-tools
+ - maven
+ - cpio
diff --git a/tests/Sanity/upstream-tests/runtest.sh b/tests/Sanity/upstream-tests/runtest.sh
new file mode 100755
index 0000000..9c38473
--- /dev/null
+++ b/tests/Sanity/upstream-tests/runtest.sh
@@ -0,0 +1,47 @@
+#!/bin/bash
+# Author: Mikolaj Izdebski
+. /usr/share/beakerlib/beakerlib.sh
+
+rlJournalStart
+
+ rlPhaseStartSetup
+ rlAssertRpm bcel
+ rlRun "pushd \$(mktemp -d)"
+ rlPhaseEnd
+
+ rlPhaseStartTest "prepare test sources"
+ rlFetchSrcForInstalled bcel
+ srpm=$(echo bcel-*.src.rpm)
+ rlAssertExists ${srpm}
+ rlRun "rpm2cpio ${srpm} | cpio -id"
+ tarball=$(echo bcel-*.tar.gz)
+ rlAssertExists ${tarball}
+ rlRun "tar xf ${tarball}"
+ basedir=$(echo bcel-*-src)
+ rlAssertExists ${basedir}/
+ jar=$(find-jar bcel)
+ rlAssertExists ${jar}
+ rlRun "mkdir ${basedir}/target"
+ rlRun "ln -s ${jar} ${basedir}/target/classes"
+ rlPhaseEnd
+
+ mvn="mvn -V -B -f ${basedir}"
+
+ rlPhaseStartTest "compile test sources"
+ rlRun -s "${mvn} compiler:testCompile"
+ rlAssertGrep "BUILD SUCCESS" $rlRun_LOG
+ rlPhaseEnd
+
+ rlPhaseStartTest "generate test resources"
+ rlRun -s "${mvn} resources:testResources"
+ rlAssertGrep "BUILD SUCCESS" $rlRun_LOG
+ rlPhaseEnd
+
+ rlPhaseStartTest "run tests"
+ rlRun -s "${mvn} surefire:test -Dsurefire.excludes=JdkGenericDumpTestCase,ConstantPoolModuleToStringTestCase,ConstantPoolModuleAccessTestCase,BCELifierTestCase"
+ rlAssertGrep "BUILD SUCCESS" $rlRun_LOG
+ rlAssertGrep "Failures: 0, Errors: 0" $rlRun_LOG
+ rlPhaseEnd
+
+rlJournalEnd
+rlJournalPrintText
diff --git a/tests/main.fmf b/tests/main.fmf
new file mode 100644
index 0000000..4116d53
--- /dev/null
+++ b/tests/main.fmf
@@ -0,0 +1,5 @@
+contact: Mikolaj Izdebski
+framework: beakerlib
+test: ./runtest.sh
+tier: 0
+component: bcel