From 16ae566678a5623ea51142c8748e64b5d1230283 Mon Sep 17 00:00:00 2001 From: Salman Siddiqui Date: Nov 07 2018 21:33:09 +0000 Subject: [PATCH 1/2] added manpage for jmc --- diff --git a/jmc/jmc.1 b/jmc/jmc.1 new file mode 100644 index 0000000..f537e06 --- /dev/null +++ b/jmc/jmc.1 @@ -0,0 +1,27 @@ +.TH JMC 1 +.SH NAME +jmc \- Java profiling and diagnostics tool +.SH SYNOPSIS +.B jmc +[\fB\-vm\fR \fIJVM\fR] +.SH DESCRIPTION +Java Mission Control is a powerful profiler for HotSpot JVMs and has an +advanced set of tools that enables efficient and detailed analysis of the +extensive data collected by Java Flight Recorder. +The tool chain enables developers and administrators to collect and analyze data +from Java applications running locally or deployed in production environments. +.SH OPTIONS +.TP +.BR \-vm \fIJVM\fR +Specify path to the JVM you wish to use for running Java Mission Control. +Defaults to system Java. +.SH FILES +.I /usr/share/jmc/jmc.ini +.RS +Startup options are specified here. +The -vm option can be set here as well to avoid specifying at startup. +Options specified at startup will override values in this file. +.SH BUGS +Report bugs to JMC mailing list: +.SH AUTHOR +Salman Siddiqui \ No newline at end of file diff --git a/jmc/jmc.spec b/jmc/jmc.spec index f907f19..00dbebc 100644 --- a/jmc/jmc.spec +++ b/jmc/jmc.spec @@ -51,10 +51,11 @@ BuildRequires: desktop-file-utils Requires: java-11-openjdk %description -Java Mission Control is an advanced set of tools that enables efficient and -detailed analysis of the extensive data collected by Java Flight Recorder. The -tool chain enables developers and administrators to collect and analyze data -from Java applications running locally or deployed in production environments. +Java Mission Control is a powerful profiler for HotSpot JVMs and has an +advanced set of tools that enables efficient and detailed analysis of the +extensive data collected by Java Flight Recorder. The tool chain enables +developers and administrators to collect and analyze data from Java +applications running locally or deployed in production environments. %global debug_package %{nil} From 316df9fa3564b04ace96f34c243c40e616b88829 Mon Sep 17 00:00:00 2001 From: Salman Siddiqui Date: Nov 08 2018 16:00:58 +0000 Subject: [PATCH 2/2] install jmc manpage --- diff --git a/jmc/jmc.spec b/jmc/jmc.spec index 00dbebc..8d204ec 100644 --- a/jmc/jmc.spec +++ b/jmc/jmc.spec @@ -10,6 +10,7 @@ URL: http://openjdk.java.net/projects/jmc/ # Execute this script to download and generate source tarball: # ./generate_jmc_tarball.sh Source0: %{name}-%{version}.tar.gz +Source1: %{name}.1 # Remove optional twitter related functionality Patch0: 0_remove_twitter.patch @@ -98,19 +99,24 @@ install -d -m 755 %{buildroot}%{_jmcdir}/ cp -p -r %{_builddir}/%{name}-%{version}/target/products/org.openjdk.jmc/linux/gtk/x86_64/* %{buildroot}%{_jmcdir}/ # create symlink to jmc in /usr/bin/ -install -d -m 751 %{buildroot}%{_bindir} +install -d -m 755 %{buildroot}%{_bindir} ln -s %{_jmcdir}/%{name} %{buildroot}%{_bindir}/%{name} # install pom file -install -d -m 644 %{buildroot}%{_datadir}/maven-poms/%{name} +install -d -m 755 %{buildroot}%{_datadir}/maven-poms/%{name} install -p -m 644 %{_builddir}/%{name}-%{version}/pom.xml \ %{buildroot}%{_datadir}/maven-poms/%{name}/%{name}.pom +# install manpage +install -d -m 755 %{buildroot}%{_mandir}/man1 +install -p -m 644 %{SOURCE1} %{buildroot}%{_mandir}/man1/%{name}.1 + %files %license license/LICENSE.txt %license license/THIRDPARTYREADME.txt %doc README.md -%{_jmcdir}/ +%{_jmcdir} +%{_mandir} %{_bindir}/%{name} %{_datadir}/maven-poms/%{name}