[java-1.5.0-gcj/f19] - Add missing manpages - Resolves: rhbz#948444

Jon VanAlten jvanalte at fedoraproject.org
Tue May 28 22:34:19 UTC 2013


commit 9f62990f6bd91f9fb85a9ac470b040793f7ef881
Author: Jon VanAlten <jon.vanalten at redhat.com>
Date:   Tue May 28 18:31:25 2013 -0400

    - Add missing manpages
    - Resolves: rhbz#948444

 aot-compile-rpm.1   |   18 ++++++++++++++++++
 aot-compile.1       |   35 +++++++++++++++++++++++++++++++++++
 java-1.5.0-gcj.spec |   27 ++++++++++++++++++++++++++-
 rebuild-gcj-db.1    |   10 ++++++++++
 4 files changed, 89 insertions(+), 1 deletions(-)
---
diff --git a/aot-compile-rpm.1 b/aot-compile-rpm.1
new file mode 100644
index 0000000..0e62683
--- /dev/null
+++ b/aot-compile-rpm.1
@@ -0,0 +1,18 @@
+.TH AOT-COMPILE-RPM "1" "May 2013" 
+.SH NAME
+aot-compile-rpm \- manual page for aot-compile-rpm script
+.SH SYNOPSIS
+.B aot-compile-rpm [--exclude PATH]...\fR
+.SH DESCRIPTION
+aot-compile-rpm is a modified version of aot-compile.  Instead of taking command
+line options like aot-compile, default values appropriate to building rpm packages
+are used.  Because some jar files contain bytecode that gcj is not yet able to
+AOT-compile, the --exclude option is still supported.  This command may not be run
+except when building rpm packages.
+.SH OPTIONS
+.TP 20
+\fB\-\-exclude=PATH\fR
+do not compile PATH
+.SH AUTHOR
+This manual page was written by Jon VanAlten <jon.vanalten at redhat.com>.
+
diff --git a/aot-compile.1 b/aot-compile.1
new file mode 100644
index 0000000..11eb0af
--- /dev/null
+++ b/aot-compile.1
@@ -0,0 +1,35 @@
+.TH AOT-COMPILE "1" "May 2013" 
+.SH NAME
+aot-compile \- manual page for aot-compile script
+.SH SYNOPSIS
+.B aot-compile [OPTIONS...] SRCDIR DSTDIR\fR
+.SH DESCRIPTION
+AOT-compile all Java bytecode in SRCDIR into DSTDIR.
+.SH OPTIONS
+.TP 20
+\fB\-M \-\-make=PATH\fR
+make executable to use
+.TP
+\fB\-C \-\-gcj=PATH\fR
+gcj executable to use
+.TP
+\fB\-D \-\-dbtool=PATH\fR
+gcj-dbtool executable to use
+.TP
+\fB\-m \-\-makeflags=FLAGS\fR
+flags to pass to make during build, in addition to those passed by environment variables.
+.TP
+\fB\-c \-\-gcjflags=FLAGS\fR
+flags to pass to gcj during compilation, in addition to those passed by environment variables.
+.TP
+\fB\-l \-\-ldflags=FLAGS\fR
+flags to pass to gcj during linking, in addition to those passed by environment variables.
+.TP
+\fB\-e \-\-exclude=PATH\fR
+do not compile PATH
+.br
+.PP
+Extra flags may also be passed using the AOT_MAKEFLAGS, AOT_GCJFLAGS and AOT_LDFLAGS environment variables.
+.SH AUTHOR
+This manual page was written by Jon VanAlten <jon.vanalten at redhat.com>.
+
diff --git a/java-1.5.0-gcj.spec b/java-1.5.0-gcj.spec
index db30dda..a85829f 100644
--- a/java-1.5.0-gcj.spec
+++ b/java-1.5.0-gcj.spec
@@ -55,7 +55,7 @@
 
 Name:    %{name}
 Version: %{javaver}.%{buildver}
-Release: 42%{?dist}
+Release: 43%{?dist}
 Summary: JPackage runtime compatibility layer for GCJ
 Group:   Development/Languages
 # The LICENSE file has the classpath exception, but nothing in this package
@@ -64,6 +64,9 @@ License: GPLv2+
 URL:     http://sources.redhat.com/rhug/java-gcj-compat.html
 Source0: ftp://sources.redhat.com/pub/rhug/java-gcj-compat-%{jgcver}.tar.gz
 Source1: javadoc-workaround.patch
+Source2: aot-compile.1
+Source3: aot-compile-rpm.1
+Source4: rebuild-gcj-db.1
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
@@ -71,6 +74,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 # and rebuild-gcj-db
 BuildRequires: gcc%{gccsuffix}-java >= %{gccver}
 BuildRequires: libgcj%{gccsuffix}-src >= %{gccver}
+# required to prepare manpages
+BuildRequires: gzip
 # required for cacerts generation
 %ifnarch %{ix86}
 BuildRequires: openssl
@@ -275,6 +280,9 @@ plugin for applets.
 
 %prep
 %setup -q -n java-gcj-compat-%{jgcver}
+cp %{SOURCE2} aot-compile.1
+cp %{SOURCE3} aot-compile-rpm.1
+cp %{SOURCE4} rebuild-gcj-db.1
 
 %build
 # Print kernel version in logs.
@@ -291,6 +299,10 @@ make
 # to equal aotcompile.py.in's timestamp. (205216)
 touch --reference=aotcompile.py.in aotcompile.py
 
+gzip aot-compile.1
+gzip aot-compile-rpm.1
+gzip rebuild-gcj-db.1
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
@@ -427,6 +439,12 @@ rm -f $RPM_BUILD_ROOT/%{_jvmdir}/%{sdkdir}/bin/javac
 echo "export PATH=%{_jvmdir}/%{sdkdir}/bin:\${PATH}" > $RPM_BUILD_ROOT/%{_jvmdir}/%{sdkdir}/bin/javac 
 echo "%{_bindir}/ecj \"\$@\"" >> $RPM_BUILD_ROOT/%{_jvmdir}/%{sdkdir}/bin/javac
 
+# install manpages
+mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
+install -m 644 -p aot-compile.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/aot-compile.1.gz
+install -m 644 -p aot-compile-rpm.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/aot-compile-rpm.1.gz
+install -m 644 -p rebuild-gcj-db.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/rebuild-gcj-db.1.gz
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -729,6 +747,7 @@ fi
 %{_sysconfdir}/java/security/security.d/1002-gnu.javax.crypto.jce.GnuSasl
 %{_sysconfdir}/java/security/security.d/1003-gnu.javax.net.ssl.provider.Jessie
 %{_sysconfdir}/java/security/security.d/1004-gnu.javax.security.auth.callback.GnuCallbacks
+%{_mandir}/man1/rebuild-gcj-db.1.gz
 
 %files devel
 %defattr(-,root,root,-)
@@ -758,6 +777,8 @@ fi
 %ghost %{_jvmdir}/%{sdkdir}/include/linux/jawt_md.h
 %ghost %{_jvmdir}/%{sdkdir}/include/linux/jni_md.h
 %ghost %{_jvmdir}/%{sdkdir}/lib/tools.jar
+%{_mandir}/man1/aot-compile.1.gz
+%{_mandir}/man1/aot-compile-rpm.1.gz
 
 %files src
 %defattr(-,root,root,-)
@@ -782,6 +803,10 @@ fi
 %endif
 
 %changelog
+* Tue May 28 2013 Jon VanAlten <jon.vanalten at redhat.com> - 1.5.0.0-43
+- Add missing manpages
+- Resolves: rhbz#948444
+
 * Thu Feb 21 2013 Jon VanAlten <jon.vanalten at redhat.com> - 1.5.0.0-42
 - Removed virtual-provides of java, java-devel, java-javadoc, and java-plugin
 
diff --git a/rebuild-gcj-db.1 b/rebuild-gcj-db.1
new file mode 100644
index 0000000..4f20b14
--- /dev/null
+++ b/rebuild-gcj-db.1
@@ -0,0 +1,10 @@
+.TH REBUILD-GCJ-DB "1" "May 2013" 
+.SH NAME
+rebuild-gcj-db \- man page for rebuild-gcj-db script
+.SH SYNOPSIS
+.B rebuild-gcj-db\fR
+.SH DESCRIPTION
+gcj-dbtool is used to manipulate class file mapping databases for libgcj.  rebuild-gcj-db is a wrapper script designed to update all the standard databases.  Root permissions are required to run, as these standard databases are system-wide.
+.SH AUTHOR
+This manual page was written by Jon VanAlten <jon.vanalten at redhat.com>.
+


More information about the scm-commits mailing list