changeset 275:e75ae2bc501e

Bug 3757: Update SPEC for modularity Reviewed-by: ykubota https://github.com/HeapStats/heapstats/pull/148
author Yasumasa Suenaga <yasuenag@gmail.com>
date Mon, 07 Oct 2019 21:16:19 +0900
parents 839f92246d30
children 5d5beb9883df
files ChangeLog specs/heapstats.spec
diffstat 2 files changed, 14 insertions(+), 78 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sat Oct 05 10:51:11 2019 +0900
+++ b/ChangeLog	Mon Oct 07 21:16:19 2019 +0900
@@ -1,3 +1,7 @@
+2019-10-07 Yasumasa Suenaga <yasuenag@gmail.com>
+
+	* Bug 3757: Update SPEC for modularity
+
 2019-10-05 Yasumasa Suenaga <yasuenag@gmail.com>
 
 	* Bug 3754: Could not bundle heapstats-cli launcher
--- a/specs/heapstats.spec	Sat Oct 05 10:51:11 2019 +0900
+++ b/specs/heapstats.spec	Mon Oct 07 21:16:19 2019 +0900
@@ -12,11 +12,6 @@
 #Patch0: none
 Buildroot: /var/tmp/heapstats
 
-# Check OpenJFX supported platform
-%if %{?fedora:%{fedora}}%{!?fedora:0} >= 26
-%define WITH_ANALYZER 1
-%endif
-
 # Requires for running
 Requires: pcre >= 6
 Requires: tbb
@@ -31,37 +26,9 @@
 BuildRequires: automake
 BuildRequires: tbb-devel
 
-%if 0%{?WITH_ANALYZER:1}
-BuildRequires: java-1.8.0-openjdk-openjfx-devel
-%endif
-
-%package cli
-Summary:   HeapStats CLI
-Group:     Development/Tools
-BuildArch: noarch
-
-%if 0%{?WITH_ANALYZER:1}
-%package analyzer
-Summary:   HeapStats Analyzer
-Group:     Development/Tools
-BuildArch: noarch
-Requires: java-1.8.0-openjdk-openjfx
-Requires: heapstats-cli
-%endif
-
 %description
 A lightweight monitoring JVMTI agent for Java HotSpot VM.
-Copyright (C) 2011-2018 Nippon Telegraph and Telephone Corporation.
-
-%description cli
-Commandline analysis tool for HeapStats.
-Copyright (C) 2011-2018 Nippon Telegraph and Telephone Corporation.
-
-%if 0%{?WITH_ANALYZER:1}
-%description analyzer
-HeapStats GUI Analyzer
-Copyright (C) 2011-2018 Nippon Telegraph and Telephone Corporation.
-%endif
+Copyright (C) 2011-2019 Nippon Telegraph and Telephone Corporation.
 
 %prep
 %setup -q -n heapstats-2.2
@@ -82,12 +49,7 @@
   --without-gcov \
   --disable-profile 
 
-%if 0%{?WITH_ANALYZER:1}
-  make
-%else
-  make agent mbean RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
-  mvn -am -pl analyzer/cli package
-%endif
+make agent mbean RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -97,24 +59,12 @@
 mkdir -p $RPM_BUILD_ROOT/usr/share/snmp/mibs/
 cp ./agent/mib/HeapStatsMibs.txt $RPM_BUILD_ROOT/usr/share/snmp/mibs/
 
-%if 0%{?WITH_ANALYZER:1}
-  make install DESTDIR=${RPM_BUILD_ROOT}
-%else
-  mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/heapstats
-  cd agent
-  make install DESTDIR=${RPM_BUILD_ROOT}
-  cd ../mbean
-  make install DESTDIR=${RPM_BUILD_ROOT}
-  cd ../
-
-  # We do not privide FX analyzer.
-  # So we install CLI analyzer manually.
-  mkdir -p ${RPM_BUILD_ROOT}/%{_libexecdir}/heapstats
-  cp -fR ./analyzer/cli/target/heapstats-cli-*-bin/heapstats-cli-*/* \
-                                    ${RPM_BUILD_ROOT}%{_libexecdir}/heapstats/
-  cp -f ./analyzer/cli/heapstats-cli ${RPM_BUILD_ROOT}%{_bindir}
-  chmod a+x ${RPM_BUILD_ROOT}%{_bindir}/heapstats-cli
-%endif
+mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/heapstats
+cd agent
+make install DESTDIR=${RPM_BUILD_ROOT}
+cd ../mbean
+make install DESTDIR=${RPM_BUILD_ROOT}
+cd ../
 
 %post
 /sbin/ldconfig
@@ -147,27 +97,9 @@
 /etc/ld.so.conf.d/heapstats-agent.conf
 /usr/share/snmp/mibs/HeapStatsMibs.txt
 
-%files cli
-/usr/bin/heapstats-cli
-%dir %{_libexecdir}/heapstats/
-%{_libexecdir}/heapstats/heapstats-cli.jar
-%dir %{_libexecdir}/heapstats/lib/
-%{_libexecdir}/heapstats/lib/heapstats-core.jar
-%{_libexecdir}/heapstats/lib/heapstats-mbean.jar
-%{_libexecdir}/heapstats/lib/heapstats-jmx-helper.jar
-
-%if 0%{?WITH_ANALYZER:1}
-%files analyzer
-/usr/bin/heapstats-analyzer
-%{_libexecdir}/heapstats/heapstats-analyzer.jar
-%{_libexecdir}/heapstats/THIRD_PARTY_README
-%{_libexecdir}/heapstats/filterDefine.xsd
-%{_libexecdir}/heapstats/heapstats.properties
-%{_libexecdir}/heapstats/lib/jgraphx.jar
-%{_libexecdir}/heapstats/lib/heapstats-plugin-api.jar
-%endif
-
 %changelog
+* Sun Oct 06 2019 Yasumasa Suenaga <yasuenag@gmail.com>
+- Update SPEC for modularity
 * Wed Apr 04 2018 Yasumasa Suenaga <yasuenag@gmail.com>
 - Update version number to 2.2.trunk
 * Tue Jan 23 2018 KUBOTA Yuji <kubota.yuji@lab.ntt.co.jp>