From d8d67daa700ec6666abccc10904682f1943369e7 Mon Sep 17 00:00:00 2001 From: Marek Goldmann Date: Wed, 5 Jun 2013 09:03:19 +0200 Subject: [PATCH 01/62] New guidelines --- byteman.spec | 48 +++++++++--------------------------------------- 1 file changed, 9 insertions(+), 39 deletions(-) diff --git a/byteman.spec b/byteman.spec index fd6ecb7..b7dccfc 100644 --- a/byteman.spec +++ b/byteman.spec @@ -3,7 +3,7 @@ Name: byteman Version: 2.0.4 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Java agent-based bytecode injection tool Group: Development/Libraries License: LGPLv2+ @@ -71,9 +71,9 @@ sed -i "s|java-cup|java_cup|" agent/pom.xml %mvn_build %install +%mvn_install + install -d -m 755 $RPM_BUILD_ROOT%{_bindir} -install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/%{name} -install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir} install -d -m 755 $RPM_BUILD_ROOT%{homedir} install -d -m 755 $RPM_BUILD_ROOT%{homedir}/lib @@ -97,55 +97,25 @@ done chmod 755 $RPM_BUILD_ROOT%{_bindir}/* -for m in install sample submit; do - # JAR - install -pm 644 ${m}/target/%{name}-${m}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}-${m}.jar - # POM - install -pm 644 ${m}/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-%{name}-${m}.pom - # DEPMAP - %add_maven_depmap JPP.%{name}-%{name}-${m}.pom %{name}/%{name}-${m}.jar -done - -# Contrib -for m in bmunit dtest; do - # JAR - install -pm 644 contrib/${m}/target/%{name}-${m}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}-${m}.jar - # POM - install -pm 644 contrib/${m}/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-%{name}-${m}.pom - # DEPMAP - %add_maven_depmap JPP.%{name}-%{name}-${m}.pom %{name}/%{name}-${m}.jar -done - -# JAR -install -pm 644 agent/target/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}.jar -# POM -install -pm 644 agent/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-%{name}.pom -# DEPMAP -%add_maven_depmap JPP.%{name}-%{name}.pom %{name}/%{name}.jar - -# APIDOCS -install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name} -cp -rp target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name} - for m in bmunit dtest install sample submit; do ln -s %{_javadir}/byteman/byteman-${m}.jar $RPM_BUILD_ROOT%{homedir}/lib/byteman-${m}.jar done ln -s %{_javadir}/byteman/byteman.jar $RPM_BUILD_ROOT%{homedir}/lib/byteman.jar -%files -%{_mavenpomdir}/* -%{_mavendepmapfragdir}/* +%files -f .mfiles +%dir %{_javadir}/%{name} %{homedir}/* %{_bindir}/* -%{_javadir}/* %doc README docs/ProgrammersGuide.pdf docs/copyright.txt -%files javadoc -%{_javadocdir}/%{name} +%files javadoc -f .mfiles-javadoc %doc docs/copyright.txt %changelog +* Wed May 29 2013 Marek Goldmann - 2.0.4-4 +- New guidelines + * Thu Apr 25 2013 Marek Goldmann - 2.0.4-3 - Fixes to the launch scripts From 51d4ec3a1cfc5eefadefa862a08f2f93f7c1e632 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Wed, 5 Jun 2013 16:16:23 +0200 Subject: [PATCH 02/62] Remove tools.jar from dependencyManagement --- byteman.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/byteman.spec b/byteman.spec index b7dccfc..dff2aff 100644 --- a/byteman.spec +++ b/byteman.spec @@ -3,7 +3,7 @@ Name: byteman Version: 2.0.4 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Java agent-based bytecode injection tool Group: Development/Libraries License: LGPLv2+ @@ -67,6 +67,11 @@ This package contains the API documentation for %{name}. sed -i "s|net.sf.squirrel-sql.thirdparty-non-maven|java_cup|" agent/pom.xml sed -i "s|java-cup|java_cup|" agent/pom.xml +# Remove tools.jar from dependencyManagement (Fedora-specific patch). +# In Fedora tools.jar doesn't need to use system scope or provide +# systemPath - Maven will find it anyways. +%pom_remove_dep com.sun:tools + %build %mvn_build @@ -113,6 +118,9 @@ ln -s %{_javadir}/byteman/byteman.jar $RPM_BUILD_ROOT%{homedir}/lib/byteman.jar %doc docs/copyright.txt %changelog +* Wed Jun 5 2013 Mikolaj Izdebski - 2.0.4-5 +- Remove tools.jar from dependencyManagement + * Wed May 29 2013 Marek Goldmann - 2.0.4-4 - New guidelines From 6a95492dd626182f52ca34d478a79bbeb1c0d27e Mon Sep 17 00:00:00 2001 From: Marek Goldmann Date: Thu, 4 Jul 2013 13:57:33 +0200 Subject: [PATCH 03/62] Upstream release 2.1.2 --- .gitignore | 1 + byteman.spec | 15 ++++++--------- sources | 2 +- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index d9c4a38..4878f03 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /byteman-1.5.2-full-clean.tar.gz /byteman-2.0.4.tar.xz +/2.1.2.tar.gz diff --git a/byteman.spec b/byteman.spec index dff2aff..45e4460 100644 --- a/byteman.spec +++ b/byteman.spec @@ -2,16 +2,12 @@ %global bindir %{homedir}/bin Name: byteman -Version: 2.0.4 -Release: 5%{?dist} +Version: 2.1.2 +Release: 1%{?dist} Summary: Java agent-based bytecode injection tool -Group: Development/Libraries License: LGPLv2+ URL: http://www.jboss.org/byteman - -# git clone git://github.com/bytemanproject/byteman.git -# cd byteman/ && git archive --format=tar --prefix=byteman-2.0.4/ 2.0.4 | xz > byteman-2.0.4.tar.xz -Source0: byteman-%{version}.tar.xz +Source0: https://github.com/bytemanproject/byteman/archive/%{version}.tar.gz BuildArch: noarch @@ -54,8 +50,6 @@ code and reinstall different code while the application continues to execute. %package javadoc Summary: Javadocs for %{name} -Group: Documentation -Requires: jpackage-utils %description javadoc This package contains the API documentation for %{name}. @@ -118,6 +112,9 @@ ln -s %{_javadir}/byteman/byteman.jar $RPM_BUILD_ROOT%{homedir}/lib/byteman.jar %doc docs/copyright.txt %changelog +* Thu Jul 04 2013 Marek Goldmann - 2.1.2-1 +- Upstream release 2.1.2 + * Wed Jun 5 2013 Mikolaj Izdebski - 2.0.4-5 - Remove tools.jar from dependencyManagement diff --git a/sources b/sources index bae5cc1..2367484 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -75bf4c1694817939f2f6f1e7d9df8a37 byteman-2.0.4.tar.xz +e8a022de5f3d13332f8ca3b61ddc933c 2.1.2.tar.gz From a93d5952491bceae37a1d54e8f06ac554e3d78f3 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Fri, 2 Aug 2013 23:10:15 -0500 Subject: [PATCH 04/62] - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild --- byteman.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/byteman.spec b/byteman.spec index 45e4460..a8d231a 100644 --- a/byteman.spec +++ b/byteman.spec @@ -3,7 +3,7 @@ Name: byteman Version: 2.1.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Java agent-based bytecode injection tool License: LGPLv2+ URL: http://www.jboss.org/byteman @@ -112,6 +112,9 @@ ln -s %{_javadir}/byteman/byteman.jar $RPM_BUILD_ROOT%{homedir}/lib/byteman.jar %doc docs/copyright.txt %changelog +* Sat Aug 03 2013 Fedora Release Engineering - 2.1.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + * Thu Jul 04 2013 Marek Goldmann - 2.1.2-1 - Upstream release 2.1.2 From 07c3ffe556f6fba56013ee4fdae6ec94262f4e8f Mon Sep 17 00:00:00 2001 From: Marek Goldmann Date: Fri, 14 Feb 2014 14:09:40 +0100 Subject: [PATCH 05/62] Upstream release 2.1.4.1 --- .gitignore | 1 + byteman.spec | 21 +++++++++++++++------ sources | 2 +- 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 4878f03..9f04920 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /byteman-1.5.2-full-clean.tar.gz /byteman-2.0.4.tar.xz /2.1.2.tar.gz +/373601b4e608ea622b2fec947824b99cd0edb124.tar.gz diff --git a/byteman.spec b/byteman.spec index a8d231a..4c47cfd 100644 --- a/byteman.spec +++ b/byteman.spec @@ -1,13 +1,14 @@ %global homedir %{_datadir}/%{name} %global bindir %{homedir}/bin +%global hash 373601b4e608ea622b2fec947824b99cd0edb124 Name: byteman -Version: 2.1.2 -Release: 2%{?dist} +Version: 2.1.4.1 +Release: 1%{?dist} Summary: Java agent-based bytecode injection tool License: LGPLv2+ URL: http://www.jboss.org/byteman -Source0: https://github.com/bytemanproject/byteman/archive/%{version}.tar.gz +Source0: https://github.com/bytemanproject/byteman/archive/%{hash}.tar.gz BuildArch: noarch @@ -34,8 +35,13 @@ Requires: java-devel # Bundling #BuildRequires: java_cup = 1:0.11a-12 #BuildRequires: objectweb-asm = 0:3.3.1-7 -Provides: bundled(java_cup) = 1:0.11a-12 -Provides: bundled(objectweb-asm) = 0:3.3.1-7 +Provides: bundled(java_cup) = 1:0.11a-15 + +%if 0%{?fedora} > 20 +Provides: bundled(objectweb-asm) = 0:5.0-0.2.beta +%else +Provides: bundled(objectweb-asm) = 0:3.3.1-8 +%endif %description Byteman is a tool which simplifies tracing and testing of Java programs. @@ -55,7 +61,7 @@ Summary: Javadocs for %{name} This package contains the API documentation for %{name}. %prep -%setup -q +%setup -q -n byteman-%{hash} # Fix the gid:aid for java_cup sed -i "s|net.sf.squirrel-sql.thirdparty-non-maven|java_cup|" agent/pom.xml @@ -112,6 +118,9 @@ ln -s %{_javadir}/byteman/byteman.jar $RPM_BUILD_ROOT%{homedir}/lib/byteman.jar %doc docs/copyright.txt %changelog +* Fri Feb 14 2014 Marek Goldmann - 2.1.4.1-1 +- Upstream release 2.1.4.1 + * Sat Aug 03 2013 Fedora Release Engineering - 2.1.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild diff --git a/sources b/sources index 2367484..579bf24 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -e8a022de5f3d13332f8ca3b61ddc933c 2.1.2.tar.gz +dc505eb23c4cd44a395f74223f83b73a 373601b4e608ea622b2fec947824b99cd0edb124.tar.gz From 69ae543bb306266a5c5d667f9b94e0fcdaaca949 Mon Sep 17 00:00:00 2001 From: Michael Simacek Date: Fri, 28 Mar 2014 12:58:22 +0100 Subject: [PATCH 06/62] Use Requires: java-headless rebuild (#1067528) Signed-off-by: Michael Simacek Signed-off-by: Mikolaj Izdebski --- byteman.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/byteman.spec b/byteman.spec index 4c47cfd..db390c0 100644 --- a/byteman.spec +++ b/byteman.spec @@ -4,7 +4,7 @@ Name: byteman Version: 2.1.4.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Java agent-based bytecode injection tool License: LGPLv2+ URL: http://www.jboss.org/byteman @@ -118,6 +118,9 @@ ln -s %{_javadir}/byteman/byteman.jar $RPM_BUILD_ROOT%{homedir}/lib/byteman.jar %doc docs/copyright.txt %changelog +* Fri Mar 28 2014 Michael Simacek - 2.1.4.1-2 +- Use Requires: java-headless rebuild (#1067528) + * Fri Feb 14 2014 Marek Goldmann - 2.1.4.1-1 - Upstream release 2.1.4.1 From a5b854cefbbab88dd69421d255afcd9b53c2ab53 Mon Sep 17 00:00:00 2001 From: Marek Goldmann Date: Fri, 18 Apr 2014 08:39:59 +0200 Subject: [PATCH 07/62] Rebuilding for objectweb-asm update, RHBZ#1083570 --- byteman.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/byteman.spec b/byteman.spec index db390c0..2bc80bc 100644 --- a/byteman.spec +++ b/byteman.spec @@ -4,7 +4,7 @@ Name: byteman Version: 2.1.4.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Java agent-based bytecode injection tool License: LGPLv2+ URL: http://www.jboss.org/byteman @@ -35,12 +35,13 @@ Requires: java-devel # Bundling #BuildRequires: java_cup = 1:0.11a-12 #BuildRequires: objectweb-asm = 0:3.3.1-7 -Provides: bundled(java_cup) = 1:0.11a-15 %if 0%{?fedora} > 20 -Provides: bundled(objectweb-asm) = 0:5.0-0.2.beta +Provides: bundled(objectweb-asm) = 0:5.0.1-1 +Provides: bundled(java_cup) = 1:0.11a-16 %else Provides: bundled(objectweb-asm) = 0:3.3.1-8 +Provides: bundled(java_cup) = 1:0.11a-15 %endif %description @@ -118,6 +119,9 @@ ln -s %{_javadir}/byteman/byteman.jar $RPM_BUILD_ROOT%{homedir}/lib/byteman.jar %doc docs/copyright.txt %changelog +* Fri Apr 18 2014 Marek Goldmann - 2.1.4.1-3 +- Rebuilding for objectweb-asm update, RHBZ#1083570 + * Fri Mar 28 2014 Michael Simacek - 2.1.4.1-2 - Use Requires: java-headless rebuild (#1067528) From 1a621474b12636f3d103487f657fd8cd43f6488c Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Fri, 6 Jun 2014 22:46:34 -0500 Subject: [PATCH 08/62] - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild --- byteman.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/byteman.spec b/byteman.spec index 2bc80bc..df30124 100644 --- a/byteman.spec +++ b/byteman.spec @@ -4,7 +4,7 @@ Name: byteman Version: 2.1.4.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Java agent-based bytecode injection tool License: LGPLv2+ URL: http://www.jboss.org/byteman @@ -119,6 +119,9 @@ ln -s %{_javadir}/byteman/byteman.jar $RPM_BUILD_ROOT%{homedir}/lib/byteman.jar %doc docs/copyright.txt %changelog +* Sat Jun 07 2014 Fedora Release Engineering - 2.1.4.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + * Fri Apr 18 2014 Marek Goldmann - 2.1.4.1-3 - Rebuilding for objectweb-asm update, RHBZ#1083570 From ef86e6d64e5cccadfabb7cd5debab7f772228b3e Mon Sep 17 00:00:00 2001 From: Michal Srb Date: Fri, 27 Feb 2015 13:16:42 +0100 Subject: [PATCH 09/62] Fix FTBFS - Rebuild to generate new metadata --- byteman.spec | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/byteman.spec b/byteman.spec index df30124..d401471 100644 --- a/byteman.spec +++ b/byteman.spec @@ -4,7 +4,7 @@ Name: byteman Version: 2.1.4.1 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Java agent-based bytecode injection tool License: LGPLv2+ URL: http://www.jboss.org/byteman @@ -21,12 +21,12 @@ BuildRequires: maven-failsafe-plugin BuildRequires: maven-jar-plugin BuildRequires: maven-surefire-plugin BuildRequires: maven-surefire-provider-testng -BuildRequires: maven-surefire-provider-junit4 +BuildRequires: maven-surefire-provider-junit BuildRequires: maven-verifier-plugin BuildRequires: java_cup BuildRequires: jarjar -BuildRequires: objectweb-asm -BuildRequires: junit4 +BuildRequires: objectweb-asm3 +BuildRequires: junit BuildRequires: testng Requires: jpackage-utils @@ -68,6 +68,9 @@ This package contains the API documentation for %{name}. sed -i "s|net.sf.squirrel-sql.thirdparty-non-maven|java_cup|" agent/pom.xml sed -i "s|java-cup|java_cup|" agent/pom.xml +# org.jboss.byteman:byteman-download requires "-sources" and "-javadoc" artifacts +%mvn_package ':::{sources,javadoc}:' __default + # Remove tools.jar from dependencyManagement (Fedora-specific patch). # In Fedora tools.jar doesn't need to use system scope or provide # systemPath - Maven will find it anyways. @@ -119,6 +122,10 @@ ln -s %{_javadir}/byteman/byteman.jar $RPM_BUILD_ROOT%{homedir}/lib/byteman.jar %doc docs/copyright.txt %changelog +* Fri Feb 27 2015 Michal Srb - 2.1.4.1-5 +- Fix FTBFS +- Rebuild to generate new metadata + * Sat Jun 07 2014 Fedora Release Engineering - 2.1.4.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild From 4478207ff1efc2a444534219b57da1af14ff5b99 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Wed, 17 Jun 2015 02:11:54 +0000 Subject: [PATCH 10/62] - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild --- byteman.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/byteman.spec b/byteman.spec index d401471..59bf651 100644 --- a/byteman.spec +++ b/byteman.spec @@ -4,7 +4,7 @@ Name: byteman Version: 2.1.4.1 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Java agent-based bytecode injection tool License: LGPLv2+ URL: http://www.jboss.org/byteman @@ -122,6 +122,9 @@ ln -s %{_javadir}/byteman/byteman.jar $RPM_BUILD_ROOT%{homedir}/lib/byteman.jar %doc docs/copyright.txt %changelog +* Wed Jun 17 2015 Fedora Release Engineering - 2.1.4.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + * Fri Feb 27 2015 Michal Srb - 2.1.4.1-5 - Fix FTBFS - Rebuild to generate new metadata From 016d0f4e349018613cf430041b9a06473653b0dd Mon Sep 17 00:00:00 2001 From: gil Date: Thu, 6 Aug 2015 14:52:07 +0200 Subject: [PATCH 11/62] Fix FTBFS rhbz#1239392 Signed-off-by: Mikolaj Izdebski --- byteman.spec | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/byteman.spec b/byteman.spec index 59bf651..898c2b1 100644 --- a/byteman.spec +++ b/byteman.spec @@ -4,7 +4,7 @@ Name: byteman Version: 2.1.4.1 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Java agent-based bytecode injection tool License: LGPLv2+ URL: http://www.jboss.org/byteman @@ -12,9 +12,6 @@ Source0: https://github.com/bytemanproject/byteman/archive/%{hash}.tar. BuildArch: noarch -BuildRequires: jpackage-utils -BuildRequires: javapackages-tools -BuildRequires: java-devel BuildRequires: maven-local BuildRequires: maven-shade-plugin BuildRequires: maven-failsafe-plugin @@ -29,9 +26,6 @@ BuildRequires: objectweb-asm3 BuildRequires: junit BuildRequires: testng -Requires: jpackage-utils -Requires: java-devel - # Bundling #BuildRequires: java_cup = 1:0.11a-12 #BuildRequires: objectweb-asm = 0:3.3.1-7 @@ -56,13 +50,15 @@ repackage or redeploy your application. In fact you can remove injected code and reinstall different code while the application continues to execute. %package javadoc -Summary: Javadocs for %{name} +Summary: Javadoc for %{name} %description javadoc This package contains the API documentation for %{name}. %prep %setup -q -n byteman-%{hash} +# Fix doclint problem +%pom_xpath_inject "pom:plugin[pom:artifactId = 'maven-javadoc-plugin']/pom:configuration" "-Xdoclint:none" # Fix the gid:aid for java_cup sed -i "s|net.sf.squirrel-sql.thirdparty-non-maven|java_cup|" agent/pom.xml @@ -113,15 +109,20 @@ done ln -s %{_javadir}/byteman/byteman.jar $RPM_BUILD_ROOT%{homedir}/lib/byteman.jar %files -f .mfiles -%dir %{_javadir}/%{name} %{homedir}/* %{_bindir}/* -%doc README docs/ProgrammersGuide.pdf docs/copyright.txt +%doc README docs/ProgrammersGuide.pdf +%license docs/copyright.txt %files javadoc -f .mfiles-javadoc -%doc docs/copyright.txt +%license docs/copyright.txt %changelog +* Thu Aug 06 2015 gil cattaneo 2.1.4.1-7 +- Fix FTBFS rhbz#1239392 +- Remove duplicate files +- Introduce license macro + * Wed Jun 17 2015 Fedora Release Engineering - 2.1.4.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild From 1d1c3a5da94533f657cfd73ab7aa8fd12c9eb250 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Wed, 3 Feb 2016 17:19:12 +0000 Subject: [PATCH 12/62] - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild --- byteman.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/byteman.spec b/byteman.spec index 898c2b1..5df6141 100644 --- a/byteman.spec +++ b/byteman.spec @@ -4,7 +4,7 @@ Name: byteman Version: 2.1.4.1 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Java agent-based bytecode injection tool License: LGPLv2+ URL: http://www.jboss.org/byteman @@ -118,6 +118,9 @@ ln -s %{_javadir}/byteman/byteman.jar $RPM_BUILD_ROOT%{homedir}/lib/byteman.jar %license docs/copyright.txt %changelog +* Wed Feb 03 2016 Fedora Release Engineering - 2.1.4.1-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + * Thu Aug 06 2015 gil cattaneo 2.1.4.1-7 - Fix FTBFS rhbz#1239392 - Remove duplicate files From ebba2b99f2cf759ff96ceeb886d0ef347d9cdea6 Mon Sep 17 00:00:00 2001 From: Severin Gehwolf Date: Thu, 18 Feb 2016 14:14:18 +0100 Subject: [PATCH 13/62] Update to latest upstream 3.0.4 release. --- .gitignore | 2 ++ byteman.spec | 47 +++++++++++++++++++++++------------------------ sources | 2 +- 3 files changed, 26 insertions(+), 25 deletions(-) diff --git a/.gitignore b/.gitignore index 9f04920..96e1453 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ /byteman-2.0.4.tar.xz /2.1.2.tar.gz /373601b4e608ea622b2fec947824b99cd0edb124.tar.gz +/3.0.4.tar.gz +/byteman-3.0.4/ diff --git a/byteman.spec b/byteman.spec index 5df6141..9b9cec5 100644 --- a/byteman.spec +++ b/byteman.spec @@ -1,14 +1,14 @@ %global homedir %{_datadir}/%{name} %global bindir %{homedir}/bin -%global hash 373601b4e608ea622b2fec947824b99cd0edb124 Name: byteman -Version: 2.1.4.1 -Release: 8%{?dist} +Version: 3.0.4 +Release: 1%{?dist} Summary: Java agent-based bytecode injection tool License: LGPLv2+ URL: http://www.jboss.org/byteman -Source0: https://github.com/bytemanproject/byteman/archive/%{hash}.tar.gz +# wget -O 3.0.4.tar.gz https://github.com/bytemanproject/byteman/archive/3.0.4.tar.gz +Source0: https://github.com/bytemanproject/byteman/archive/%{version}.tar.gz BuildArch: noarch @@ -20,23 +20,17 @@ BuildRequires: maven-surefire-plugin BuildRequires: maven-surefire-provider-testng BuildRequires: maven-surefire-provider-junit BuildRequires: maven-verifier-plugin +BuildRequires: maven-dependency-plugin BuildRequires: java_cup BuildRequires: jarjar -BuildRequires: objectweb-asm3 +BuildRequires: objectweb-asm BuildRequires: junit BuildRequires: testng +# JBoss modules byteman plugin requires it +BuildRequires: mvn(org.jboss.modules:jboss-modules) -# Bundling -#BuildRequires: java_cup = 1:0.11a-12 -#BuildRequires: objectweb-asm = 0:3.3.1-7 - -%if 0%{?fedora} > 20 -Provides: bundled(objectweb-asm) = 0:5.0.1-1 -Provides: bundled(java_cup) = 1:0.11a-16 -%else -Provides: bundled(objectweb-asm) = 0:3.3.1-8 -Provides: bundled(java_cup) = 1:0.11a-15 -%endif +Provides: bundled(objectweb-asm) = 0:5.0.4-2 +Provides: bundled(java_cup) = 1:0.11b-3 %description Byteman is a tool which simplifies tracing and testing of Java programs. @@ -56,7 +50,7 @@ Summary: Javadoc for %{name} This package contains the API documentation for %{name}. %prep -%setup -q -n byteman-%{hash} +%setup -q -n byteman-%{version} # Fix doclint problem %pom_xpath_inject "pom:plugin[pom:artifactId = 'maven-javadoc-plugin']/pom:configuration" "-Xdoclint:none" @@ -64,16 +58,18 @@ This package contains the API documentation for %{name}. sed -i "s|net.sf.squirrel-sql.thirdparty-non-maven|java_cup|" agent/pom.xml sed -i "s|java-cup|java_cup|" agent/pom.xml -# org.jboss.byteman:byteman-download requires "-sources" and "-javadoc" artifacts -%mvn_package ':::{sources,javadoc}:' __default +# Remove scope=system and systemPath for com.sun:tools +%pom_xpath_remove "pom:profiles/pom:profile/pom:dependencies/pom:dependency[pom:artifactId='tools']/pom:scope" install +%pom_xpath_remove "pom:profiles/pom:profile/pom:dependencies/pom:dependency[pom:artifactId='tools']/pom:systemPath" install +%pom_xpath_remove "pom:profiles/pom:profile/pom:dependencies/pom:dependency[pom:artifactId='tools']/pom:scope" contrib/bmunit +%pom_xpath_remove "pom:profiles/pom:profile/pom:dependencies/pom:dependency[pom:artifactId='tools']/pom:systemPath" contrib/bmunit -# Remove tools.jar from dependencyManagement (Fedora-specific patch). -# In Fedora tools.jar doesn't need to use system scope or provide -# systemPath - Maven will find it anyways. -%pom_remove_dep com.sun:tools +# Don't ship download module +%pom_disable_module download %build -%mvn_build +# Tests fail on ARM. Bad! +%mvn_build -f %install %mvn_install @@ -118,6 +114,9 @@ ln -s %{_javadir}/byteman/byteman.jar $RPM_BUILD_ROOT%{homedir}/lib/byteman.jar %license docs/copyright.txt %changelog +* Thu Feb 18 2016 Severin Gehwolf - 3.0.4-1 +- Update to latest upstream 3.0.4 release. + * Wed Feb 03 2016 Fedora Release Engineering - 2.1.4.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild diff --git a/sources b/sources index 579bf24..e1efa67 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -dc505eb23c4cd44a395f74223f83b73a 373601b4e608ea622b2fec947824b99cd0edb124.tar.gz +899a36c012515fee4ff07c44b6f35778 3.0.4.tar.gz From 75b8babcf2273656fafe198e4e18088d3a83a7e3 Mon Sep 17 00:00:00 2001 From: Severin Gehwolf Date: Mon, 14 Mar 2016 14:39:44 +0100 Subject: [PATCH 14/62] Some packaging improvements. - Remove generated requires on bundled libs. - Split maven rulecheck plugin into separate package - Run some tests during build --- byteman.spec | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/byteman.spec b/byteman.spec index 9b9cec5..5ef1a37 100644 --- a/byteman.spec +++ b/byteman.spec @@ -1,9 +1,12 @@ +%global javacup_or_asm java_cup:java_cup|org.ow2.asm:asm-all +%global __requires_exclude ^.*mvn\\(%{javacup_or_asm}\\)$ + %global homedir %{_datadir}/%{name} %global bindir %{homedir}/bin Name: byteman Version: 3.0.4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Java agent-based bytecode injection tool License: LGPLv2+ URL: http://www.jboss.org/byteman @@ -49,6 +52,12 @@ Summary: Javadoc for %{name} %description javadoc This package contains the API documentation for %{name}. +%package rulecheck-maven-plugin +Summary: Maven plugin for checking Byteman rules. + +%description rulecheck-maven-plugin +This package contains the Byteman rule check maven plugin. + %prep %setup -q -n byteman-%{version} # Fix doclint problem @@ -67,9 +76,15 @@ sed -i "s|java-cup|java_cup|" agent/pom.xml # Don't ship download module %pom_disable_module download +# Some tests fail intermittently during builds. Disable them. +%pom_disable_module tests contrib/jboss-modules-system +%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-surefire-plugin']/pom:executions" contrib/bmunit +%pom_xpath_set "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-surefire-plugin']/pom:configuration" 'true' contrib/bmunit + +%mvn_package ":byteman-rulecheck-maven-plugin" rulecheck-maven-plugin + %build -# Tests fail on ARM. Bad! -%mvn_build -f +%mvn_build %install %mvn_install @@ -113,7 +128,15 @@ ln -s %{_javadir}/byteman/byteman.jar $RPM_BUILD_ROOT%{homedir}/lib/byteman.jar %files javadoc -f .mfiles-javadoc %license docs/copyright.txt +%files rulecheck-maven-plugin -f .mfiles-rulecheck-maven-plugin +%license docs/copyright.txt + %changelog +* Mon Mar 14 2016 Severin Gehwolf - 3.0.4-2 +- Enable some tests during build +- Fix generated requires by filtering requires for bundled libs. +- Split maven plugin into separate package. + * Thu Feb 18 2016 Severin Gehwolf - 3.0.4-1 - Update to latest upstream 3.0.4 release. From 1ad9b3258361090b9c024ae147fa6c65b73edeaa Mon Sep 17 00:00:00 2001 From: Severin Gehwolf Date: Mon, 13 Jun 2016 15:08:49 +0200 Subject: [PATCH 15/62] Update to latest 3.0.6 release. --- .gitignore | 2 ++ byteman.spec | 17 +++++++++++------ sources | 2 +- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 96e1453..c2e1295 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,5 @@ /373601b4e608ea622b2fec947824b99cd0edb124.tar.gz /3.0.4.tar.gz /byteman-3.0.4/ +/3.0.6.tar.gz +/byteman-3.0.6/ diff --git a/byteman.spec b/byteman.spec index 5ef1a37..c834ca7 100644 --- a/byteman.spec +++ b/byteman.spec @@ -5,12 +5,12 @@ %global bindir %{homedir}/bin Name: byteman -Version: 3.0.4 -Release: 2%{?dist} +Version: 3.0.6 +Release: 1%{?dist} Summary: Java agent-based bytecode injection tool License: LGPLv2+ URL: http://www.jboss.org/byteman -# wget -O 3.0.4.tar.gz https://github.com/bytemanproject/byteman/archive/3.0.4.tar.gz +# wget -O 3.0.6.tar.gz https://github.com/bytemanproject/byteman/archive/3.0.6.tar.gz Source0: https://github.com/bytemanproject/byteman/archive/%{version}.tar.gz BuildArch: noarch @@ -73,14 +73,16 @@ sed -i "s|java-cup|java_cup|" agent/pom.xml %pom_xpath_remove "pom:profiles/pom:profile/pom:dependencies/pom:dependency[pom:artifactId='tools']/pom:scope" contrib/bmunit %pom_xpath_remove "pom:profiles/pom:profile/pom:dependencies/pom:dependency[pom:artifactId='tools']/pom:systemPath" contrib/bmunit -# Don't ship download module -%pom_disable_module download - # Some tests fail intermittently during builds. Disable them. %pom_disable_module tests contrib/jboss-modules-system %pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-surefire-plugin']/pom:executions" contrib/bmunit %pom_xpath_set "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-surefire-plugin']/pom:configuration" 'true' contrib/bmunit +# Don't build download, docs modules +%pom_disable_module download +%pom_disable_module docs + +# Put maven plugin into a separate package %mvn_package ":byteman-rulecheck-maven-plugin" rulecheck-maven-plugin %build @@ -132,6 +134,9 @@ ln -s %{_javadir}/byteman/byteman.jar $RPM_BUILD_ROOT%{homedir}/lib/byteman.jar %license docs/copyright.txt %changelog +* Mon Jun 13 2016 Severin Gehwolf - 3.0.6-1 +- Update to latest upstream release. + * Mon Mar 14 2016 Severin Gehwolf - 3.0.4-2 - Enable some tests during build - Fix generated requires by filtering requires for bundled libs. diff --git a/sources b/sources index e1efa67..de5d31f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -899a36c012515fee4ff07c44b6f35778 3.0.4.tar.gz +945cf839a10ce71fdf21fb9992555bcb 3.0.6.tar.gz From 5fc4f52d3d6ef447954d22f34a31ba12c18d89bd Mon Sep 17 00:00:00 2001 From: Severin Gehwolf Date: Fri, 9 Dec 2016 10:39:46 +0100 Subject: [PATCH 16/62] Fix FTBFS. - Add BRs maven-plugin-bundle, maven-source-plugin, maven-plugin-plugin - Resolves: RHBZ#1402998 --- byteman.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/byteman.spec b/byteman.spec index c834ca7..0acb200 100644 --- a/byteman.spec +++ b/byteman.spec @@ -6,7 +6,7 @@ Name: byteman Version: 3.0.6 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Java agent-based bytecode injection tool License: LGPLv2+ URL: http://www.jboss.org/byteman @@ -17,6 +17,9 @@ BuildArch: noarch BuildRequires: maven-local BuildRequires: maven-shade-plugin +BuildRequires: maven-source-plugin +BuildRequires: maven-plugin-plugin +BuildRequires: maven-plugin-bundle BuildRequires: maven-failsafe-plugin BuildRequires: maven-jar-plugin BuildRequires: maven-surefire-plugin @@ -134,6 +137,11 @@ ln -s %{_javadir}/byteman/byteman.jar $RPM_BUILD_ROOT%{homedir}/lib/byteman.jar %license docs/copyright.txt %changelog +* Fri Dec 09 2016 Severin Gehwolf - 3.0.6-2 +- Add BRs, maven-plugin-bundle, maven-source-plugin and + maven-plugin-plugin, fixing FTBFS. +- Resolves: RHBZ#1402998 + * Mon Jun 13 2016 Severin Gehwolf - 3.0.6-1 - Update to latest upstream release. From 917db4201d7ee487ebe00a5182b852b7d7fdabac Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 10 Feb 2017 07:09:51 +0000 Subject: [PATCH 17/62] - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild --- byteman.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/byteman.spec b/byteman.spec index 0acb200..356c092 100644 --- a/byteman.spec +++ b/byteman.spec @@ -6,7 +6,7 @@ Name: byteman Version: 3.0.6 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Java agent-based bytecode injection tool License: LGPLv2+ URL: http://www.jboss.org/byteman @@ -137,6 +137,9 @@ ln -s %{_javadir}/byteman/byteman.jar $RPM_BUILD_ROOT%{homedir}/lib/byteman.jar %license docs/copyright.txt %changelog +* Fri Feb 10 2017 Fedora Release Engineering - 3.0.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + * Fri Dec 09 2016 Severin Gehwolf - 3.0.6-2 - Add BRs, maven-plugin-bundle, maven-source-plugin and maven-plugin-plugin, fixing FTBFS. From 03bb780e93fccb76c4d7a2966a418fee60bf6ea0 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 26 Jul 2017 04:22:11 +0000 Subject: [PATCH 18/62] - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild --- byteman.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/byteman.spec b/byteman.spec index 356c092..9ac4823 100644 --- a/byteman.spec +++ b/byteman.spec @@ -6,7 +6,7 @@ Name: byteman Version: 3.0.6 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Java agent-based bytecode injection tool License: LGPLv2+ URL: http://www.jboss.org/byteman @@ -137,6 +137,9 @@ ln -s %{_javadir}/byteman/byteman.jar $RPM_BUILD_ROOT%{homedir}/lib/byteman.jar %license docs/copyright.txt %changelog +* Wed Jul 26 2017 Fedora Release Engineering - 3.0.6-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + * Fri Feb 10 2017 Fedora Release Engineering - 3.0.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild From 91c43203c2a8114b320bb959857cbef878e147f8 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 7 Feb 2018 04:21:02 +0000 Subject: [PATCH 19/62] - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- byteman.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/byteman.spec b/byteman.spec index 9ac4823..76f86e5 100644 --- a/byteman.spec +++ b/byteman.spec @@ -6,7 +6,7 @@ Name: byteman Version: 3.0.6 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Java agent-based bytecode injection tool License: LGPLv2+ URL: http://www.jboss.org/byteman @@ -137,6 +137,9 @@ ln -s %{_javadir}/byteman/byteman.jar $RPM_BUILD_ROOT%{homedir}/lib/byteman.jar %license docs/copyright.txt %changelog +* Wed Feb 07 2018 Fedora Release Engineering - 3.0.6-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + * Wed Jul 26 2017 Fedora Release Engineering - 3.0.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild From 29eb35a278e71882e79c4575afc249371f3eb736 Mon Sep 17 00:00:00 2001 From: Severin Gehwolf Date: Fri, 27 Apr 2018 16:45:10 +0200 Subject: [PATCH 20/62] Update to latest upstream 4.0.2 release. --- .gitignore | 1 + byteman.spec | 35 +++++++++++++++---- ...submit_integration_test_verification.patch | 14 ++++++++ sources | 2 +- 4 files changed, 44 insertions(+), 8 deletions(-) create mode 100644 remove_submit_integration_test_verification.patch diff --git a/.gitignore b/.gitignore index c2e1295..bc090c9 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /byteman-3.0.4/ /3.0.6.tar.gz /byteman-3.0.6/ +/4.0.2.tar.gz diff --git a/byteman.spec b/byteman.spec index 76f86e5..6851995 100644 --- a/byteman.spec +++ b/byteman.spec @@ -5,21 +5,24 @@ %global bindir %{homedir}/bin Name: byteman -Version: 3.0.6 -Release: 5%{?dist} +Version: 4.0.2 +Release: 1%{?dist} Summary: Java agent-based bytecode injection tool License: LGPLv2+ URL: http://www.jboss.org/byteman -# wget -O 3.0.6.tar.gz https://github.com/bytemanproject/byteman/archive/3.0.6.tar.gz +# wget -O 4.0.2.tar.gz https://github.com/bytemanproject/byteman/archive/4.0.2.tar.gz Source0: https://github.com/bytemanproject/byteman/archive/%{version}.tar.gz BuildArch: noarch +# Byteman 4.0.2 requires JDK 9+ to build. Require JDK 10 explicitly. +BuildRequires: java-10-openjdk-devel BuildRequires: maven-local BuildRequires: maven-shade-plugin BuildRequires: maven-source-plugin BuildRequires: maven-plugin-plugin BuildRequires: maven-plugin-bundle +BuildRequires: maven-assembly-plugin BuildRequires: maven-failsafe-plugin BuildRequires: maven-jar-plugin BuildRequires: maven-surefire-plugin @@ -35,8 +38,11 @@ BuildRequires: testng # JBoss modules byteman plugin requires it BuildRequires: mvn(org.jboss.modules:jboss-modules) -Provides: bundled(objectweb-asm) = 0:5.0.4-2 -Provides: bundled(java_cup) = 1:0.11b-3 +Provides: bundled(objectweb-asm) = 6.1.1 +Provides: bundled(java_cup) = 1:0.11b-8 + +# Related pieces removed via pom_xpath_remove macros +Patch1: remove_submit_integration_test_verification.patch %description Byteman is a tool which simplifies tracing and testing of Java programs. @@ -69,6 +75,17 @@ This package contains the Byteman rule check maven plugin. # Fix the gid:aid for java_cup sed -i "s|net.sf.squirrel-sql.thirdparty-non-maven|java_cup|" agent/pom.xml sed -i "s|java-cup|java_cup|" agent/pom.xml +sed -i "s|net.sf.squirrel-sql.thirdparty-non-maven|java_cup|" tests/pom.xml +sed -i "s|java-cup|java_cup|" tests/pom.xml + +# Remove Submit integration test invocations (agent) +%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-failsafe-plugin']/pom:executions/pom:execution[pom:id='submit.TestSubmit']" agent +%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-failsafe-plugin']/pom:executions/pom:execution[pom:id='submit.TestSubmit.compiled']" agent +%patch1 -p2 + +# Remove Submit integration test invocations (tests) +%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-failsafe-plugin']/pom:executions/pom:execution[pom:id='submit.TestSubmit']" tests +%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-failsafe-plugin']/pom:executions/pom:execution[pom:id='submit.TestSubmit.compiled']" tests # Remove scope=system and systemPath for com.sun:tools %pom_xpath_remove "pom:profiles/pom:profile/pom:dependencies/pom:dependency[pom:artifactId='tools']/pom:scope" install @@ -77,7 +94,6 @@ sed -i "s|java-cup|java_cup|" agent/pom.xml %pom_xpath_remove "pom:profiles/pom:profile/pom:dependencies/pom:dependency[pom:artifactId='tools']/pom:systemPath" contrib/bmunit # Some tests fail intermittently during builds. Disable them. -%pom_disable_module tests contrib/jboss-modules-system %pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-surefire-plugin']/pom:executions" contrib/bmunit %pom_xpath_set "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-surefire-plugin']/pom:configuration" 'true' contrib/bmunit @@ -89,6 +105,7 @@ sed -i "s|java-cup|java_cup|" agent/pom.xml %mvn_package ":byteman-rulecheck-maven-plugin" rulecheck-maven-plugin %build +export JAVA_HOME=/usr/lib/jvm/java-10-openjdk %mvn_build %install @@ -127,7 +144,7 @@ ln -s %{_javadir}/byteman/byteman.jar $RPM_BUILD_ROOT%{homedir}/lib/byteman.jar %files -f .mfiles %{homedir}/* %{_bindir}/* -%doc README docs/ProgrammersGuide.pdf +%doc README %license docs/copyright.txt %files javadoc -f .mfiles-javadoc @@ -137,6 +154,10 @@ ln -s %{_javadir}/byteman/byteman.jar $RPM_BUILD_ROOT%{homedir}/lib/byteman.jar %license docs/copyright.txt %changelog +* Fri Apr 27 2018 Severin Gehwolf - 4.0.2-1 +- Update to latest upstream 4.0.2 release. +- Adds support for modular JDKs. + * Wed Feb 07 2018 Fedora Release Engineering - 3.0.6-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild diff --git a/remove_submit_integration_test_verification.patch b/remove_submit_integration_test_verification.patch new file mode 100644 index 0000000..dae9507 --- /dev/null +++ b/remove_submit_integration_test_verification.patch @@ -0,0 +1,14 @@ +diff --git a/byteman-4.0.2/agent/verification.xml b/byteman-4.0.2/agent/verification.xml +index f530cfe..52ece06 100644 +--- a/byteman-4.0.2/agent/verification.xml ++++ b/byteman-4.0.2/agent/verification.xml +@@ -171,9 +171,5 @@ + target/failsafe-reports/org.jboss.byteman.tests.misc.TestThrowBinding.txt + + +- +- target/failsafe-reports/org.jboss.byteman.tests.submit.TestSubmit.txt +- +- + + diff --git a/sources b/sources index de5d31f..e276057 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -945cf839a10ce71fdf21fb9992555bcb 3.0.6.tar.gz +SHA512 (4.0.2.tar.gz) = 50e85cf73d1f820ed42ba43672504edb5057ed8ddcd9d14a2b8c6b92fbf39d382937675ce9e10b3b1336359971909d9f246bd8be5ed08666da14ee3c57abd5f8 From b16bdaa1c68ea2b0c98c0db0fd8d3dff74dfe9a9 Mon Sep 17 00:00:00 2001 From: Severin Gehwolf Date: Tue, 3 Jul 2018 11:11:41 +0200 Subject: [PATCH 21/62] Update to latest upstream 4.0.3 release. --- .gitignore | 1 + byteman.spec | 9 ++++++--- sources | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index bc090c9..c6f0cb2 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /3.0.6.tar.gz /byteman-3.0.6/ /4.0.2.tar.gz +/4.0.3.tar.gz diff --git a/byteman.spec b/byteman.spec index 6851995..5f1c4de 100644 --- a/byteman.spec +++ b/byteman.spec @@ -5,17 +5,17 @@ %global bindir %{homedir}/bin Name: byteman -Version: 4.0.2 +Version: 4.0.3 Release: 1%{?dist} Summary: Java agent-based bytecode injection tool License: LGPLv2+ URL: http://www.jboss.org/byteman -# wget -O 4.0.2.tar.gz https://github.com/bytemanproject/byteman/archive/4.0.2.tar.gz +# wget -O 4.0.3.tar.gz https://github.com/bytemanproject/byteman/archive/4.0.3.tar.gz Source0: https://github.com/bytemanproject/byteman/archive/%{version}.tar.gz BuildArch: noarch -# Byteman 4.0.2 requires JDK 9+ to build. Require JDK 10 explicitly. +# Byteman 4.x requires JDK 9+ to build. Require JDK 10 explicitly. BuildRequires: java-10-openjdk-devel BuildRequires: maven-local BuildRequires: maven-shade-plugin @@ -154,6 +154,9 @@ ln -s %{_javadir}/byteman/byteman.jar $RPM_BUILD_ROOT%{homedir}/lib/byteman.jar %license docs/copyright.txt %changelog +* Tue Jul 03 2018 Severin Gehwolf - 4.0.3-1 +- Update to latest upstream 4.0.3 release. + * Fri Apr 27 2018 Severin Gehwolf - 4.0.2-1 - Update to latest upstream 4.0.2 release. - Adds support for modular JDKs. diff --git a/sources b/sources index e276057..dca51e6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (4.0.2.tar.gz) = 50e85cf73d1f820ed42ba43672504edb5057ed8ddcd9d14a2b8c6b92fbf39d382937675ce9e10b3b1336359971909d9f246bd8be5ed08666da14ee3c57abd5f8 +SHA512 (4.0.3.tar.gz) = 9d8692e3464fde26cd28bbc6a268d8e9125104c792a577f13183159fb3d42cc9bdc5c157c42f67735c882dcdd24f6b9e3251c18761097ba4534eb0c075d87709 From bfb4d668ca56d70d8aa76ae089ac686d72ba3b4c Mon Sep 17 00:00:00 2001 From: Severin Gehwolf Date: Thu, 5 Jul 2018 17:06:28 +0200 Subject: [PATCH 22/62] Use Xmvn for javadoc generation. --- byteman.spec | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/byteman.spec b/byteman.spec index 5f1c4de..334b5af 100644 --- a/byteman.spec +++ b/byteman.spec @@ -6,7 +6,7 @@ Name: byteman Version: 4.0.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Java agent-based bytecode injection tool License: LGPLv2+ URL: http://www.jboss.org/byteman @@ -69,8 +69,6 @@ This package contains the Byteman rule check maven plugin. %prep %setup -q -n byteman-%{version} -# Fix doclint problem -%pom_xpath_inject "pom:plugin[pom:artifactId = 'maven-javadoc-plugin']/pom:configuration" "-Xdoclint:none" # Fix the gid:aid for java_cup sed -i "s|net.sf.squirrel-sql.thirdparty-non-maven|java_cup|" agent/pom.xml @@ -101,6 +99,10 @@ sed -i "s|java-cup|java_cup|" tests/pom.xml %pom_disable_module download %pom_disable_module docs +# Don't use javadoc plugin, use XMvn for javadocs +%pom_remove_plugin -r :maven-javadoc-plugin +%pom_xpath_remove 'pom:execution[pom:id="make-javadoc-assembly"]' byteman + # Put maven plugin into a separate package %mvn_package ":byteman-rulecheck-maven-plugin" rulecheck-maven-plugin @@ -154,6 +156,9 @@ ln -s %{_javadir}/byteman/byteman.jar $RPM_BUILD_ROOT%{homedir}/lib/byteman.jar %license docs/copyright.txt %changelog +* Thu Jul 05 2018 Severin Gehwolf - 4.0.3-2 +- Don't use maven-javadoc-plugin. Use XMvn instead. + * Tue Jul 03 2018 Severin Gehwolf - 4.0.3-1 - Update to latest upstream 4.0.3 release. From d197d727fe4d8fd81aea13693e5ebc18f7374283 Mon Sep 17 00:00:00 2001 From: Severin Gehwolf Date: Wed, 11 Jul 2018 10:32:11 +0200 Subject: [PATCH 23/62] Update to upstream 4.0.4 release. - Split subpackages requiring junit at runtime: byteman-dtest, byteman-bmunit - Fix filtering of asm requirements. They shouldn't be there since asm gets bundled. - java-headless >= 1:1.9 would get generated, but byteman 4.x runs on JDK 6+. Require >= JDK 8 - Properly install structure for jboss-modules-plugin to work: bminstall -m --- .gitignore | 1 + byteman.spec | 75 ++++++++++++++++++++++++++++++++++++++++++++++------ sources | 2 +- 3 files changed, 69 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index c6f0cb2..a40962f 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ /byteman-3.0.6/ /4.0.2.tar.gz /4.0.3.tar.gz +/4.0.4.tar.gz diff --git a/byteman.spec b/byteman.spec index 334b5af..56e74e5 100644 --- a/byteman.spec +++ b/byteman.spec @@ -1,16 +1,25 @@ -%global javacup_or_asm java_cup:java_cup|org.ow2.asm:asm-all -%global __requires_exclude ^.*mvn\\(%{javacup_or_asm}\\)$ +# Note to the interested reader: +# fedpkg mockbuild --without tests +# will make mvn_build macro skip tests. +# See: https://github.com/fedora-java/javapackages/issues/62 + +%global javacup_or_asm java_cup:java_cup|org\\.ow2\\.asm:asm.* +# Don't have generated mvn()-style requires for java_cup or asm +%global mvn_javacup_or_asm_matcher .*mvn\\(%{javacup_or_asm}\\) +# Don't have generated requires for java-headless >= 1:1.9 +%global java_headless_matcher java-headless >= 1:(1\\.9|9) +%global __requires_exclude ^%{mvn_javacup_or_asm_matcher}|%{java_headless_matcher}$ %global homedir %{_datadir}/%{name} %global bindir %{homedir}/bin Name: byteman -Version: 4.0.3 -Release: 2%{?dist} +Version: 4.0.4 +Release: 1%{?dist} Summary: Java agent-based bytecode injection tool License: LGPLv2+ URL: http://www.jboss.org/byteman -# wget -O 4.0.3.tar.gz https://github.com/bytemanproject/byteman/archive/4.0.3.tar.gz +# wget -O 4.0.4.tar.gz https://github.com/bytemanproject/byteman/archive/4.0.4.tar.gz Source0: https://github.com/bytemanproject/byteman/archive/%{version}.tar.gz BuildArch: noarch @@ -38,8 +47,11 @@ BuildRequires: testng # JBoss modules byteman plugin requires it BuildRequires: mvn(org.jboss.modules:jboss-modules) -Provides: bundled(objectweb-asm) = 6.1.1 +Provides: bundled(objectweb-asm) = 6.2 Provides: bundled(java_cup) = 1:0.11b-8 +# We are filtering java-headless >= 1:1.9 requirement. Add +# JDK 8 requirement here explicitly which shouldn't match the filter. +Requires: java-headless >= 1:1.8 # Related pieces removed via pom_xpath_remove macros Patch1: remove_submit_integration_test_verification.patch @@ -67,6 +79,21 @@ Summary: Maven plugin for checking Byteman rules. %description rulecheck-maven-plugin This package contains the Byteman rule check maven plugin. +%package bmunit +Summary: TestNG and JUnit integration for Byteman. + +%description bmunit +The Byteman bmunit jar provides integration of Byteman into +TestNG and JUnit tests. + +%package dtest +Summary: Remote byteman instrumented testing. + +%description dtest +The Byteman dtest jar supports instrumentation of test code executed on +remote server hosts and validation of assertions describing the expected +operation of the instrumented methods. + %prep %setup -q -n byteman-%{version} @@ -103,8 +130,12 @@ sed -i "s|java-cup|java_cup|" tests/pom.xml %pom_remove_plugin -r :maven-javadoc-plugin %pom_xpath_remove 'pom:execution[pom:id="make-javadoc-assembly"]' byteman -# Put maven plugin into a separate package +# Put byteman-rulecheck-maven-plugin into a separate package %mvn_package ":byteman-rulecheck-maven-plugin" rulecheck-maven-plugin +# Put byteman-bmunit/byteman-dtest into a separate packages since they +# runtime require junit +%mvn_package ":byteman-bmunit" bmunit +%mvn_package ":byteman-dtest" dtest %build export JAVA_HOME=/usr/lib/jvm/java-10-openjdk @@ -141,10 +172,21 @@ for m in bmunit dtest install sample submit; do ln -s %{_javadir}/byteman/byteman-${m}.jar $RPM_BUILD_ROOT%{homedir}/lib/byteman-${m}.jar done +# Create contrib/jboss-module-system structure since bminstall expects it +# for the -m option. +install -d -m 755 $RPM_BUILD_ROOT%{homedir}/contrib +install -d -m 755 $RPM_BUILD_ROOT%{homedir}/contrib/jboss-modules-system +ln -s %{_javadir}/byteman/byteman-jboss-modules-plugin.jar $RPM_BUILD_ROOT%{homedir}/contrib/jboss-modules-system/byteman-jboss-modules-plugin.jar + ln -s %{_javadir}/byteman/byteman.jar $RPM_BUILD_ROOT%{homedir}/lib/byteman.jar %files -f .mfiles -%{homedir}/* +%{homedir}/lib/byteman.jar +%{homedir}/lib/byteman-install.jar +%{homedir}/lib/byteman-sample.jar +%{homedir}/lib/byteman-submit.jar +%{homedir}/contrib/* +%{bindir}/* %{_bindir}/* %doc README %license docs/copyright.txt @@ -155,7 +197,24 @@ ln -s %{_javadir}/byteman/byteman.jar $RPM_BUILD_ROOT%{homedir}/lib/byteman.jar %files rulecheck-maven-plugin -f .mfiles-rulecheck-maven-plugin %license docs/copyright.txt +%files bmunit -f .mfiles-bmunit +%license docs/copyright.txt +%{homedir}/lib/byteman-bmunit.jar + +%files dtest -f .mfiles-dtest +%license docs/copyright.txt +%{homedir}/lib/byteman-dtest.jar + %changelog +* Tue Jul 10 2018 Severin Gehwolf - 4.0.4-1 +- Update to latest upstream 4.0.4 release. +- Split junit-dependent packages into sub-packages: + byteman-dtest, byteman-bmunit +- Fix automatically generated requirements: + - ASM is BR-only and bundled. + - java-headless >= 1:1.9 would get generated, but byteman 4.x + runs on JDK 8 too (would even work for JDK 6) + * Thu Jul 05 2018 Severin Gehwolf - 4.0.3-2 - Don't use maven-javadoc-plugin. Use XMvn instead. diff --git a/sources b/sources index dca51e6..812b9a2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (4.0.3.tar.gz) = 9d8692e3464fde26cd28bbc6a268d8e9125104c792a577f13183159fb3d42cc9bdc5c157c42f67735c882dcdd24f6b9e3251c18761097ba4534eb0c075d87709 +SHA512 (4.0.4.tar.gz) = 1d6b45dfa535a6c2a4615db679c1dcc51cfd84923ac2c1ba97716572af2baece0b39119aff7b3266e9d1838dc8b47f678b7efc5bbaf9500329728e982dd7774c From 86377359cb863878b58c608928b5bb4da5fe6dc7 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 12 Jul 2018 21:27:12 +0000 Subject: [PATCH 24/62] - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- byteman.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/byteman.spec b/byteman.spec index 56e74e5..1a865ec 100644 --- a/byteman.spec +++ b/byteman.spec @@ -15,7 +15,7 @@ Name: byteman Version: 4.0.4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Java agent-based bytecode injection tool License: LGPLv2+ URL: http://www.jboss.org/byteman @@ -206,6 +206,9 @@ ln -s %{_javadir}/byteman/byteman.jar $RPM_BUILD_ROOT%{homedir}/lib/byteman.jar %{homedir}/lib/byteman-dtest.jar %changelog +* Thu Jul 12 2018 Fedora Release Engineering - 4.0.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + * Tue Jul 10 2018 Severin Gehwolf - 4.0.4-1 - Update to latest upstream 4.0.4 release. - Split junit-dependent packages into sub-packages: From 6393d2ea80421f02f67ebbffe723f722808eaa60 Mon Sep 17 00:00:00 2001 From: Severin Gehwolf Date: Wed, 21 Nov 2018 20:06:58 +0100 Subject: [PATCH 25/62] Update to latest upstream 4.0.5 release. --- .gitignore | 1 + byteman.spec | 15 +++++++++------ sources | 2 +- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index a40962f..8b2baed 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ /4.0.2.tar.gz /4.0.3.tar.gz /4.0.4.tar.gz +/4.0.5.tar.gz diff --git a/byteman.spec b/byteman.spec index 1a865ec..2ac8281 100644 --- a/byteman.spec +++ b/byteman.spec @@ -14,18 +14,18 @@ %global bindir %{homedir}/bin Name: byteman -Version: 4.0.4 -Release: 2%{?dist} +Version: 4.0.5 +Release: 1%{?dist} Summary: Java agent-based bytecode injection tool License: LGPLv2+ URL: http://www.jboss.org/byteman -# wget -O 4.0.4.tar.gz https://github.com/bytemanproject/byteman/archive/4.0.4.tar.gz +# wget -O 4.0.5.tar.gz https://github.com/bytemanproject/byteman/archive/4.0.5.tar.gz Source0: https://github.com/bytemanproject/byteman/archive/%{version}.tar.gz BuildArch: noarch # Byteman 4.x requires JDK 9+ to build. Require JDK 10 explicitly. -BuildRequires: java-10-openjdk-devel +BuildRequires: java-11-openjdk-devel BuildRequires: maven-local BuildRequires: maven-shade-plugin BuildRequires: maven-source-plugin @@ -47,7 +47,7 @@ BuildRequires: testng # JBoss modules byteman plugin requires it BuildRequires: mvn(org.jboss.modules:jboss-modules) -Provides: bundled(objectweb-asm) = 6.2 +Provides: bundled(objectweb-asm) = 7.0 Provides: bundled(java_cup) = 1:0.11b-8 # We are filtering java-headless >= 1:1.9 requirement. Add # JDK 8 requirement here explicitly which shouldn't match the filter. @@ -138,7 +138,7 @@ sed -i "s|java-cup|java_cup|" tests/pom.xml %mvn_package ":byteman-dtest" dtest %build -export JAVA_HOME=/usr/lib/jvm/java-10-openjdk +export JAVA_HOME=/usr/lib/jvm/java-11-openjdk %mvn_build %install @@ -206,6 +206,9 @@ ln -s %{_javadir}/byteman/byteman.jar $RPM_BUILD_ROOT%{homedir}/lib/byteman.jar %{homedir}/lib/byteman-dtest.jar %changelog +* Wed Nov 21 2018 Severin Gehwolf - 4.0.5-1 +- Update to latest upstream 4.0.5 release. + * Thu Jul 12 2018 Fedora Release Engineering - 4.0.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild diff --git a/sources b/sources index 812b9a2..a32d102 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (4.0.4.tar.gz) = 1d6b45dfa535a6c2a4615db679c1dcc51cfd84923ac2c1ba97716572af2baece0b39119aff7b3266e9d1838dc8b47f678b7efc5bbaf9500329728e982dd7774c +SHA512 (4.0.5.tar.gz) = 2a9bd3d19ccfe2208c791422fc7bb89c2c322779c5ce4b917b50a9ec131ed23ca78f374e6e3c457774a06934446019a92ad4aea6402757ab6a82e8d6dd3afae7 From f74fa510677ca5f586ee1ef823f8629d51856f05 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 31 Jan 2019 15:04:50 +0000 Subject: [PATCH 26/62] - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- byteman.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/byteman.spec b/byteman.spec index 2ac8281..cef7105 100644 --- a/byteman.spec +++ b/byteman.spec @@ -15,7 +15,7 @@ Name: byteman Version: 4.0.5 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Java agent-based bytecode injection tool License: LGPLv2+ URL: http://www.jboss.org/byteman @@ -206,6 +206,9 @@ ln -s %{_javadir}/byteman/byteman.jar $RPM_BUILD_ROOT%{homedir}/lib/byteman.jar %{homedir}/lib/byteman-dtest.jar %changelog +* Thu Jan 31 2019 Fedora Release Engineering - 4.0.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + * Wed Nov 21 2018 Severin Gehwolf - 4.0.5-1 - Update to latest upstream 4.0.5 release. From d145b9e4af8952b1a63432ec67d7109161f83617 Mon Sep 17 00:00:00 2001 From: Severin Gehwolf Date: Mon, 6 May 2019 11:06:25 +0200 Subject: [PATCH 27/62] Use XMvn javadoc so as to fix FTBFS --- byteman.spec | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/byteman.spec b/byteman.spec index cef7105..969f43e 100644 --- a/byteman.spec +++ b/byteman.spec @@ -15,7 +15,7 @@ Name: byteman Version: 4.0.5 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Java agent-based bytecode injection tool License: LGPLv2+ URL: http://www.jboss.org/byteman @@ -139,7 +139,11 @@ sed -i "s|java-cup|java_cup|" tests/pom.xml %build export JAVA_HOME=/usr/lib/jvm/java-11-openjdk -%mvn_build +# Use --xmvn-javadoc so as to avoid maven-javadoc-plugin issue +# (fixed in 3.1.0, fedora has 3.0.1): +# See https://issues.apache.org/jira/browse/MJAVADOC-555 +# https://bugs.openjdk.java.net/browse/JDK-8212233 +%mvn_build --xmvn-javadoc %install %mvn_install @@ -206,6 +210,10 @@ ln -s %{_javadir}/byteman/byteman.jar $RPM_BUILD_ROOT%{homedir}/lib/byteman.jar %{homedir}/lib/byteman-dtest.jar %changelog +* Mon May 06 2019 Severin Gehwolf - 4.0.5-3 +- Use XMvn javadoc so as to work-around maven-javadoc-plugin issue. +- Fixes FTBFS. + * Thu Jan 31 2019 Fedora Release Engineering - 4.0.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild From 7e2daf708c3e84c9e9855640beb7d1d284ac59cb Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 24 Jul 2019 19:44:30 +0000 Subject: [PATCH 28/62] - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- byteman.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/byteman.spec b/byteman.spec index 969f43e..ab0ec35 100644 --- a/byteman.spec +++ b/byteman.spec @@ -15,7 +15,7 @@ Name: byteman Version: 4.0.5 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Java agent-based bytecode injection tool License: LGPLv2+ URL: http://www.jboss.org/byteman @@ -210,6 +210,9 @@ ln -s %{_javadir}/byteman/byteman.jar $RPM_BUILD_ROOT%{homedir}/lib/byteman.jar %{homedir}/lib/byteman-dtest.jar %changelog +* Wed Jul 24 2019 Fedora Release Engineering - 4.0.5-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + * Mon May 06 2019 Severin Gehwolf - 4.0.5-3 - Use XMvn javadoc so as to work-around maven-javadoc-plugin issue. - Fixes FTBFS. From 337efe8a9e309abafa10e5540ae4fc993eac3bed Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 28 Jan 2020 13:28:21 +0000 Subject: [PATCH 29/62] - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- byteman.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/byteman.spec b/byteman.spec index ab0ec35..b24a821 100644 --- a/byteman.spec +++ b/byteman.spec @@ -15,7 +15,7 @@ Name: byteman Version: 4.0.5 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Java agent-based bytecode injection tool License: LGPLv2+ URL: http://www.jboss.org/byteman @@ -210,6 +210,9 @@ ln -s %{_javadir}/byteman/byteman.jar $RPM_BUILD_ROOT%{homedir}/lib/byteman.jar %{homedir}/lib/byteman-dtest.jar %changelog +* Tue Jan 28 2020 Fedora Release Engineering - 4.0.5-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + * Wed Jul 24 2019 Fedora Release Engineering - 4.0.5-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild From 7328eeb7ee1d076096b0b3b8b9ca80df72117fb2 Mon Sep 17 00:00:00 2001 From: Severin Gehwolf Date: Tue, 28 Jan 2020 18:29:04 +0100 Subject: [PATCH 30/62] Remove jarjar BR which is not needed Fixes FTBFS. --- byteman.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/byteman.spec b/byteman.spec index b24a821..3aa12ce 100644 --- a/byteman.spec +++ b/byteman.spec @@ -40,7 +40,6 @@ BuildRequires: maven-surefire-provider-junit BuildRequires: maven-verifier-plugin BuildRequires: maven-dependency-plugin BuildRequires: java_cup -BuildRequires: jarjar BuildRequires: objectweb-asm BuildRequires: junit BuildRequires: testng @@ -210,6 +209,9 @@ ln -s %{_javadir}/byteman/byteman.jar $RPM_BUILD_ROOT%{homedir}/lib/byteman.jar %{homedir}/lib/byteman-dtest.jar %changelog +* Tue Jan 28 2020 Severin Gehwolf - 4.0.5-5 +- Drop not needed BR jarjar. Fixes FTBFS. + * Tue Jan 28 2020 Fedora Release Engineering - 4.0.5-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild From 2a0f245e821b5fa63032b0159c7a259c59e98bba Mon Sep 17 00:00:00 2001 From: Jayashree Huttanagoudar Date: Tue, 3 Mar 2020 15:42:48 +0530 Subject: [PATCH 31/62] Upgraded to latest upstream version 4.0.11 --- byteman.spec | 15 ++++++++++++--- sources | 2 +- tests_pom_xml.patch | 22 ++++++++++++++++++++++ 3 files changed, 35 insertions(+), 4 deletions(-) create mode 100644 tests_pom_xml.patch diff --git a/byteman.spec b/byteman.spec index 3aa12ce..c270436 100644 --- a/byteman.spec +++ b/byteman.spec @@ -14,12 +14,12 @@ %global bindir %{homedir}/bin Name: byteman -Version: 4.0.5 -Release: 5%{?dist} +Version: 4.0.11 +Release: 1%{?dist} Summary: Java agent-based bytecode injection tool License: LGPLv2+ URL: http://www.jboss.org/byteman -# wget -O 4.0.5.tar.gz https://github.com/bytemanproject/byteman/archive/4.0.5.tar.gz +# wget -O 4.0.11.tar.gz https://github.com/bytemanproject/byteman/archive/4.0.11.tar.gz Source0: https://github.com/bytemanproject/byteman/archive/%{version}.tar.gz BuildArch: noarch @@ -37,11 +37,13 @@ BuildRequires: maven-jar-plugin BuildRequires: maven-surefire-plugin BuildRequires: maven-surefire-provider-testng BuildRequires: maven-surefire-provider-junit +BuildRequires: maven-surefire-provider-junit5 BuildRequires: maven-verifier-plugin BuildRequires: maven-dependency-plugin BuildRequires: java_cup BuildRequires: objectweb-asm BuildRequires: junit +BuildRequires: junit5 BuildRequires: testng # JBoss modules byteman plugin requires it BuildRequires: mvn(org.jboss.modules:jboss-modules) @@ -54,6 +56,7 @@ Requires: java-headless >= 1:1.8 # Related pieces removed via pom_xpath_remove macros Patch1: remove_submit_integration_test_verification.patch +Patch2: tests_pom_xml.patch %description Byteman is a tool which simplifies tracing and testing of Java programs. @@ -106,6 +109,7 @@ sed -i "s|java-cup|java_cup|" tests/pom.xml %pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-failsafe-plugin']/pom:executions/pom:execution[pom:id='submit.TestSubmit']" agent %pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-failsafe-plugin']/pom:executions/pom:execution[pom:id='submit.TestSubmit.compiled']" agent %patch1 -p2 +%patch2 -p2 # Remove Submit integration test invocations (tests) %pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-failsafe-plugin']/pom:executions/pom:execution[pom:id='submit.TestSubmit']" tests @@ -209,6 +213,11 @@ ln -s %{_javadir}/byteman/byteman.jar $RPM_BUILD_ROOT%{homedir}/lib/byteman.jar %{homedir}/lib/byteman-dtest.jar %changelog +* Tue Mar 03 2020 Jayashree Huttanagoudar - 4.0.11-1 +- Upgrated to latest upstream version 4.0.11 +- Added a patch to fix rpm build issue caused due to misconfiguration in upstream +- Added required additional plugins required for build + * Tue Jan 28 2020 Severin Gehwolf - 4.0.5-5 - Drop not needed BR jarjar. Fixes FTBFS. diff --git a/sources b/sources index a32d102..3e309e2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (4.0.5.tar.gz) = 2a9bd3d19ccfe2208c791422fc7bb89c2c322779c5ce4b917b50a9ec131ed23ca78f374e6e3c457774a06934446019a92ad4aea6402757ab6a82e8d6dd3afae7 +SHA512 (4.0.11.tar.gz) = 05e82df5e6747934c3b80932534118c25571482c4dd0f0be0468a683e6185ca4ae039f7bdabc0151067c2c61cf450b19636c50840ae6749df461dc0a1f305f69 diff --git a/tests_pom_xml.patch b/tests_pom_xml.patch new file mode 100644 index 0000000..4b76997 --- /dev/null +++ b/tests_pom_xml.patch @@ -0,0 +1,22 @@ +diff --git a/byteman-4.0.11/tests/pom.xml b/byteman-4.0.11/tests/pom.xml +index 60e4e1a..1a2abed 100644 +--- a/byteman-4.0.11/tests/pom.xml ++++ b/byteman-4.0.11/tests/pom.xml +@@ -1166,7 +1166,7 @@ + + org/jboss/byteman/tests/bugfixes/TestTraceOpenAndWrite.class + +- -javaagent:${project.build.directory}/byteman-${project.version}.jar=script:${project.build.testOutputDirectory}/scripts/bugfixes/TestTraceOpenAndWrite.btm ++ -javaagent:${project.build.directory}/../../byteman/target/byteman-${project.version}.jar=script:${project.build.directory}/../../agent/src/test/resources/scripts/bugfixes/TestTraceOpenAndWrite.btm + + +