[icu/f18] added manpages for gennorm2, gencfu and icuinfo, rhbz#884035

Eike Rathke erack at fedoraproject.org
Mon Feb 25 13:14:39 UTC 2013


commit 3425d66004719aeaa5e54cba838b51980a49d95f
Author: Eike Rathke <erack at redhat.com>
Date:   Fri Feb 22 22:18:54 2013 +0100

    added manpages for gennorm2, gencfu and icuinfo, rhbz#884035
    
    Rebased patch from
    http://patch-tracker.debian.org/patch/series/view/icu/4.8.1.1-10/gennorm2-man.patch
    Upstream tracked as https://ssl.icu-project.org/trac/ticket/7554
    
    Rebased patch from
    http://patch-tracker.debian.org/patch/series/view/icu/4.8.1.1-10/gencfu-man.patch
    Upstream tracked as https://ssl.icu-project.org/trac/ticket/7409
    
    Rebased patch from
    http://patch-tracker.debian.org/patch/series/view/icu/4.8.1.1-10/icuinfo-man.patch
    Upstream tracked as https://ssl.icu-project.org/trac/ticket/7665

 gencfu-man.patch   |  122 ++++++++++++++++++++++++++++++++++++++++++++
 gennorm2-man.patch |  128 ++++++++++++++++++++++++++++++++++++++++++++++
 icu.spec           |   13 ++++-
 icuinfo-man.patch  |  143 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 405 insertions(+), 1 deletions(-)
---
diff --git a/gencfu-man.patch b/gencfu-man.patch
new file mode 100644
index 0000000..ecb965c
--- /dev/null
+++ b/gencfu-man.patch
@@ -0,0 +1,122 @@
+Description: supply manual page for program that doesn't have one
+Author: Jay Berkenbilt <qjb at debian.org>
+Bug: http://bugs.icu-project.org/trac/ticket/7409
+
+diff -r -u -N icu.orig/source/tools/gencfu/gencfu.1.in icu/source/tools/gencfu/gencfu.1.in
+--- icu.orig/source/tools/gencfu/gencfu.1.in	1970-01-01 01:00:00.000000000 +0100
++++ icu/source/tools/gencfu/gencfu.1.in	2013-02-23 04:00:27.336665360 +0100
+@@ -0,0 +1,91 @@
++.\" Hey, Emacs! This is -*-nroff-*- you know...
++.\"
++.\" gencfu.1: manual page for the gencfu utility
++.\"
++.\" Copyright (C) 2005-2006 International Business Machines Corporation and others
++.\"
++.TH GENCFU 1 "24 May 2009" "ICU MANPAGE" "ICU @VERSION@ Manual"
++.SH NAME
++.B gencfu
++\- Generates Unicode Confusable data files
++.SH SYNOPSIS
++.B gencfu
++[
++.BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
++]
++[
++.BR "\-V\fP, \fB\-\-version"
++]
++[
++.BR "\-c\fP, \fB\-\-copyright"
++]
++[
++.BR "\-v\fP, \fB\-\-verbose"
++]
++[
++.BI "\-d\fP, \fB\-\-destdir" " destination"
++]
++[
++.BI "\-i\fP, \fB\-\-icudatadir" " directory"
++]
++.BI "\-r\fP, \fB\-\-rules" " rule\-file"
++.BI "\-w\fP, \fB\-\-wsrules" " whole\-script\-rule\-file"
++.BI "\-o\fP, \fB\-\-out" " output\-file"
++.SH DESCRIPTION
++.B gencfu
++reads confusable character definitions in the input file, which are
++plain text files containing confusable character
++definitions in the input format defined by Unicode UAX39 for the files
++.I confusables.txt
++and
++.I confusablesWholeScript.txt.
++This source (.txt) format is also accepted by ICU spoof detectors.
++The files must be encoded in utf-8 format, with or without a BOM.
++Normally the output data file has the
++.B .cfu
++extension.
++.SH OPTIONS
++.TP
++.BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
++Print help about usage and exit.
++.TP
++.BR "\-V\fP, \fB\-\-version"
++Print the version of
++.B gencfu
++and exit.
++.TP
++.BR "\-c\fP, \fB\-\-copyright"
++Embeds the standard ICU copyright into the
++.IR output-file .
++.TP
++.BR "\-v\fP, \fB\-\-verbose"
++Display extra informative messages during execution.
++.TP
++.BI "\-d\fP, \fB\-\-destdir" " destination"
++Set the destination directory of the
++.IR output-file
++to
++.IR destination .
++.TP
++.BI "\-i\fP, \fB\-\-icudatadir" " directory"
++Look for any necessary ICU data files in
++.IR directory .
++For example, the file
++.B pnames.icu
++must be located when ICU's data is not built as a shared library.
++The default ICU data directory is specified by the environment variable
++.BR ICU_DATA .
++Most configurations of ICU do not require this argument.
++.TP
++.BI "\-r\fP, \fB\-\-rules" " rule\-file"
++The source file to read.
++.TP
++.BI "\-w\fP, \fB\-\-wsrules" " whole\-script\-rule\-file"
++The whole script source file to read.
++.TP
++.BI "\-o\fP, \fB\-\-out" " output\-file"
++The output data file to write.
++.SH VERSION
++1.0
++.SH COPYRIGHT
++Copyright (C) 2009 International Business Machines Corporation and others
+diff -r -u -N icu.orig/source/tools/gencfu/Makefile.in icu/source/tools/gencfu/Makefile.in
+--- icu.orig/source/tools/gencfu/Makefile.in	2012-04-05 22:46:26.000000000 +0200
++++ icu/source/tools/gencfu/Makefile.in	2013-02-23 04:00:27.335665354 +0100
+@@ -17,7 +17,7 @@
+ 
+ SECTION = 1
+ 
+-# MAN_FILES = $(TARGET_STUB_NAME).$(SECTION)
++MAN_FILES = $(TARGET_STUB_NAME).$(SECTION)
+ 
+ 
+ ## Extra files to remove for 'make clean'
+@@ -55,8 +55,8 @@
+ 	$(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
+ 
+ install-man: $(MAN_FILES)
+-#	$(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
+-#	$(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
++	$(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
++	$(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
+ 
+ dist-local:
+ 
diff --git a/gennorm2-man.patch b/gennorm2-man.patch
new file mode 100644
index 0000000..846432c
--- /dev/null
+++ b/gennorm2-man.patch
@@ -0,0 +1,128 @@
+Description: supply manual page for program that doesn't have one
+Author: Jay Berkenbilt <qjb at debian.org>
+Bug: http://bugs.icu-project.org/trac/ticket/7554
+
+diff -r -u -N icu.orig/source/tools/gennorm2/gennorm2.8.in icu/source/tools/gennorm2/gennorm2.8.in
+--- icu.orig/source/tools/gennorm2/gennorm2.8.in	1970-01-01 01:00:00.000000000 +0100
++++ icu/source/tools/gennorm2/gennorm2.8.in	2013-02-22 21:09:26.245631512 +0100
+@@ -0,0 +1,71 @@
++.\" Hey, Emacs! This is -*-nroff-*- you know...
++.\"
++.\" gennorm2.8: manual page for the gennorm2 utility
++.\"
++.\" Copyright (C) 2005-2006 International Business Machines Corporation and others
++.\"
++.TH GENNORM2 8 "15 March 2010" "ICU MANPAGE" "ICU @VERSION@ Manual"
++.SH NAME
++.B gennorm2
++\- Builds binary data file with Unicode normalization data.
++.SH SYNOPSIS
++.B gennorm2
++[
++.BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
++]
++[
++.BR "\-V\fP, \fB\-\-version"
++]
++[
++.BR "\-c\fP, \fB\-\-copyright"
++]
++[
++.BR "\-v\fP, \fB\-\-verbose"
++]
++[
++.BI "\-u\fP, \fB\-\-unicode" " unicode\-version\-number"
++]
++[
++.BI "\-s\fP, \fB\-\-sourcedir" " source\-directory"
++]
++[
++.BI "\-o\fP, \fB\-\-output" " output\-filename"
++]
++.BI "\fB\-\-fast"
++.SH DESCRIPTION
++.B gennorm2
++reads text files that define Unicode normalization,
++them, and builds a binary data file.
++.SH OPTIONS
++.TP
++.BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
++Print help about usage and exit.
++.TP
++.BR "\-V\fP, \fB\-\-version"
++Print the version of
++.B gennorm2
++and exit.
++.TP
++.BR "\-c\fP, \fB\-\-copyright"
++Include a copyright notice.
++.TP
++.BR "\-v\fP, \fB\-\-verbose"
++Display extra informative messages during execution.
++.TP
++.BR "\-u\fP, \fB\-\-unicode"
++Specify Unicode version number, such as 5.2.0.
++.TP
++.BI "\-s\fP, \fB\-\-sourcedir" " source\-directory"
++Specify the input directory.
++.TP
++.BI "\-s\fP, \fB\-\-sourcedir" " source\-directory"
++Set the name of the output file.
++.TP
++.BI "\fB\-\-fast"
++optimize the .nrm file for fast normalization,
++which might increase its size  (Writes fully decomposed
++regular mappings instead of delta mappings.
++You should measure the runtime speed to make sure that
++this is a good trade-off.)
++.SH COPYRIGHT
++Copyright (C) 2009-2010 International Business Machines Corporation and others
+diff -r -u -N icu.orig/source/tools/gennorm2/Makefile.in icu/source/tools/gennorm2/Makefile.in
+--- icu.orig/source/tools/gennorm2/Makefile.in	2013-01-11 01:23:32.000000000 +0100
++++ icu/source/tools/gennorm2/Makefile.in	2013-02-22 21:09:26.245631512 +0100
+@@ -16,8 +16,13 @@
+ 
+ TARGET_STUB_NAME = gennorm2
+ 
++SECTION = 8
++
++MAN_FILES = $(TARGET_STUB_NAME).$(SECTION)
++
++
+ ## Extra files to remove for 'make clean'
+-CLEANFILES = *~ $(DEPS)
++CLEANFILES = *~ $(DEPS) $(MAN_FILES)
+ 
+ ## Target information
+ TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
+@@ -44,12 +49,16 @@
+ dist: dist-local
+ check: all check-local
+ 
+-all-local: $(TARGET)
++all-local: $(TARGET) $(MAN_FILES)
+ 
+-install-local: all-local
++install-local: all-local install-man
+ 	$(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
+ 	$(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)
+ 
++install-man: $(MAN_FILES)
++	$(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
++	$(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
++
+ dist-local:
+ 
+ clean-local:
+@@ -70,6 +79,11 @@
+ 	$(POST_BUILD_STEP)
+ 
+ 
++%.$(SECTION): $(srcdir)/%.$(SECTION).in
++	cd $(top_builddir) \
++	 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
++
++
+ ifeq (,$(MAKECMDGOALS))
+ -include $(DEPS)
+ else
diff --git a/icu.spec b/icu.spec
index 241792f..133feab 100644
--- a/icu.spec
+++ b/icu.spec
@@ -1,6 +1,6 @@
 Name:      icu
 Version:   49.1.1
-Release:   6%{?dist}
+Release:   7%{?dist}
 Summary:   International Components for Unicode
 Group:     Development/Tools
 License:   MIT and UCD and Public Domain
@@ -14,6 +14,9 @@ Patch1: icu.8198.revert.icu5431.patch
 Patch2: icu.8800.freeserif.crash.patch
 Patch3: icu.7601.Indic-ccmp.patch
 Patch4: icu.9283.regexcmp.crash.patch
+Patch5: gennorm2-man.patch
+Patch6: gencfu-man.patch
+Patch7: icuinfo-man.patch
 
 %description
 Tools and utilities for developing with icu.
@@ -60,6 +63,9 @@ BuildArch: noarch
 %patch2 -p1 -b .icu8800.freeserif.crash.patch
 %patch3 -p1 -b .icu7601.Indic-ccmp.patch
 %patch4 -p1 -b .icu9283.regexcmp.crash.patch
+%patch5 -p1 -b .gennorm2-man.patch
+%patch6 -p1 -b .gencfu-man.patch
+%patch7 -p1 -b .icuinfo-man.patch
 
 %build
 cd source
@@ -123,6 +129,7 @@ make %{?_smp_mflags} -C source check
 %{_bindir}/uconv
 %{_sbindir}/*
 %{_mandir}/man1/derb.1*
+%{_mandir}/man1/gencfu.1*
 %{_mandir}/man1/gencnval.1*
 %{_mandir}/man1/genrb.1*
 %{_mandir}/man1/genbrk.1*
@@ -142,6 +149,7 @@ make %{?_smp_mflags} -C source check
 %{_bindir}/%{name}-config*
 %{_bindir}/icuinfo
 %{_mandir}/man1/%{name}-config.1*
+%{_mandir}/man1/icuinfo.1*
 %{_includedir}/layout
 %{_includedir}/unicode
 %{_libdir}/*.so
@@ -160,6 +168,9 @@ make %{?_smp_mflags} -C source check
 %doc source/__docs/%{name}/html/*
 
 %changelog
+* Sat Feb 23 2013 Eike Rathke <erack at redhat.com> - 49.1.1-7
+- added manpages for gennorm2, gencfu and icuinfo, rhbz#884035
+
 * Fri Jan 25 2013 Eike Rathke <erack at redhat.com> - 49.1.1-6
 - Resolves: rhbz#889781 big endian build breakage
 
diff --git a/icuinfo-man.patch b/icuinfo-man.patch
new file mode 100644
index 0000000..317eece
--- /dev/null
+++ b/icuinfo-man.patch
@@ -0,0 +1,143 @@
+Description: supply manual page for program that doesn't have one
+Author: Jay Berkenbilt <qjb at debian.org>
+Bug: http://bugs.icu-project.org/trac/ticket/7665
+
+diff -r -u -N icu.orig/source/tools/icuinfo/icuinfo.1.in icu/source/tools/icuinfo/icuinfo.1.in
+--- icu.orig/source/tools/icuinfo/icuinfo.1.in	1970-01-01 01:00:00.000000000 +0100
++++ icu/source/tools/icuinfo/icuinfo.1.in	2013-02-23 01:33:16.850591999 +0100
+@@ -0,0 +1,76 @@
++.\" Hey, Emacs! This is -*-nroff-*- you know...
++.\"
++.\" icuinfo.1: manual page for the icuinfo utility
++.\"
++.\" Copyright (C) 2005-2006 International Business Machines Corporation and others
++.\"
++.TH ICUINFO 1 "1 May 2010" "ICU MANPAGE" "ICU @VERSION@ Manual"
++.SH NAME
++.B icuinfo
++\- Shows some basic info about the current ICU
++.SH SYNOPSIS
++.B icuinfo
++[
++.BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
++]
++[
++.BR "\-V\fP, \fB\-\-version"
++]
++[
++.BR "\-c\fP, \fB\-\-copyright"
++]
++[
++.BI "\-i\fP, \fB\-\-icudatadir" " directory"
++]
++[
++.BR "\-v\fP, \fB\-\-verbose"
++]
++[
++.BI "\-L\fP, \fB\-\-list-plugins"
++]
++[
++.BI "\-m\fP, \fB\-\-milisecond-time"
++]
++[
++.BI "\-K\fP, \fB\-\-cleanup"
++]
++.SH DESCRIPTION
++.B icuinfo
++prints basic information about the current version of ICU.
++.SH OPTIONS
++.TP
++.BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
++Print help about usage and exit.
++.TP
++.BR "\-V\fP, \fB\-\-version"
++Print the version of
++.B icuinfo
++and exit.
++.TP
++.BR "\-c\fP, \fB\-\-copyright"
++Embeds the standard ICU copyright into the
++.IR output-file .
++.TP
++.BR "\-v\fP, \fB\-\-verbose"
++Display extra informative messages during execution.
++.TP
++.BI "\-i\fP, \fB\-\-icudatadir" " directory"
++Look for any necessary ICU data files in
++.IR directory .
++For example, the file
++.B pnames.icu
++must be located when ICU's data is not built as a shared library.
++The default ICU data directory is specified by the environment variable
++.BR ICU_DATA .
++Most configurations of ICU do not require this argument.
++.TP
++.BI "\-L\fP, \fB\-\-list-plugins"
++If specified, list and diagnose issues with ICU plugins.
++.TP
++.BI "\-K\fP, \fB\-\-cleanup"
++Attempt to unload plugins before exiting.
++.TP
++.BI "\-m\fP, \fB\-\-milisecond-time"
++Print the current UTC time in milliseconds.
++.SH COPYRIGHT
++Copyright (C) 2010 International Business Machines Corporation and others
+diff -r -u -N icu.orig/source/tools/icuinfo/Makefile.in icu/source/tools/icuinfo/Makefile.in
+--- icu.orig/source/tools/icuinfo/Makefile.in	2012-04-05 22:46:24.000000000 +0200
++++ icu/source/tools/icuinfo/Makefile.in	2013-02-23 01:33:16.850591999 +0100
+@@ -14,8 +14,15 @@
+ ## Build directory information
+ subdir = tools/icuinfo
+ 
++TARGET_STUB_NAME = icuinfo
++
++SECTION = 1
++
++MAN_FILES = $(TARGET_STUB_NAME).$(SECTION)
++
++
+ ## Extra files to remove for 'make clean'
+-CLEANFILES = *~ $(DEPS) $(PLUGIN_OBJECTS) $(PLUGINFILE) $(PLUGIN)
++CLEANFILES = *~ $(DEPS) $(PLUGIN_OBJECTS) $(PLUGINFILE) $(PLUGIN) $(MAN_FILES)
+ 
+ ## Target information
+ TARGET = icuinfo$(EXEEXT)
+@@ -35,7 +42,8 @@
+ 
+ ## List of phony targets
+ .PHONY : all all-local install install-local clean clean-local		\
+-distclean distclean-local dist dist-local check check-local plugin-check
++distclean distclean-local dist dist-local check check-local plugin-check \
++install-man
+ 
+ ## Clear suffix list
+ .SUFFIXES :
+@@ -48,12 +56,16 @@
+ dist: dist-local
+ check: all check-local
+ 
+-all-local: $(TARGET) 
++all-local: $(TARGET) $(MAN_FILES)
+ 
+-install-local: all-local
++install-local: all-local install-man
+ 	$(MKINSTALLDIRS) $(DESTDIR)$(bindir)
+ 	$(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
+ 
++install-man: $(MAN_FILES)
++	$(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
++	$(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
++
+ dist-local:
+ 
+ clean-local:
+@@ -95,6 +107,9 @@
+ plugin-check: $(PLUGIN) $(PLUGINFILE)
+ 	$(INVOKE) ICU_PLUGINS="$(CURR_FULL_DIR)" ./$(TARGET) -v -L
+ 
++%.$(SECTION): $(srcdir)/%.$(SECTION).in
++	cd $(top_builddir) \
++	 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
+ 
+ ifeq (,$(MAKECMDGOALS))
+ -include $(DEPS)


More information about the scm-commits mailing list