Blame SOURCES/0007-prebuilt-files-for-man-page-for-ibus-table-createdb.patch

b385cc
diff -Nru ibus-table-1.5.0.orig/engine/Makefile.in ibus-table-1.5.0/engine/Makefile.in
b385cc
--- ibus-table-1.5.0.orig/engine/Makefile.in	2014-01-14 10:28:10.066194361 +0100
b385cc
+++ ibus-table-1.5.0/engine/Makefile.in	2014-01-14 10:28:33.371351530 +0100
b385cc
@@ -1,9 +1,8 @@
b385cc
-# Makefile.in generated by automake 1.11.6 from Makefile.am.
b385cc
+# Makefile.in generated by automake 1.12.2 from Makefile.am.
b385cc
 # @configure_input@
b385cc
 
b385cc
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
b385cc
-# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
b385cc
-# Foundation, Inc.
b385cc
+# Copyright (C) 1994-2012 Free Software Foundation, Inc.
b385cc
+
b385cc
 # This Makefile.in is free software; the Free Software Foundation
b385cc
 # gives unlimited permission to copy and/or distribute it,
b385cc
 # with or without modifications, as long as this notice is preserved.
b385cc
@@ -76,7 +75,8 @@
b385cc
 subdir = engine
b385cc
 DIST_COMMON = $(engine_table_PYTHON) $(srcdir)/Makefile.am \
b385cc
 	$(srcdir)/Makefile.in $(srcdir)/ibus-engine-table.in \
b385cc
-	$(srcdir)/ibus-table-createdb.in $(srcdir)/table.xml.in.in
b385cc
+	$(srcdir)/ibus-table-createdb.in $(srcdir)/table.xml.in.in \
b385cc
+	$(top_srcdir)/py-compile
b385cc
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
b385cc
 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
b385cc
 	$(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \
b385cc
@@ -117,8 +117,8 @@
b385cc
          $(am__cd) "$$dir" && rm -f $$files; }; \
b385cc
   }
b385cc
 am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(libexecdir)" \
b385cc
-	"$(DESTDIR)$(engine_tabledir)" "$(DESTDIR)$(enginedir)" \
b385cc
-	"$(DESTDIR)$(engine_tabledir)"
b385cc
+	"$(DESTDIR)$(engine_tabledir)" "$(DESTDIR)$(man1dir)" \
b385cc
+	"$(DESTDIR)$(enginedir)" "$(DESTDIR)$(engine_tabledir)"
b385cc
 SCRIPTS = $(bin_SCRIPTS) $(libexec_SCRIPTS)
b385cc
 SOURCES =
b385cc
 DIST_SOURCES =
b385cc
@@ -129,6 +129,9 @@
b385cc
   esac
b385cc
 am__py_compile = PYTHON=$(PYTHON) $(SHELL) $(py_compile)
b385cc
 py_compile = $(top_srcdir)/py-compile
b385cc
+man1dir = $(mandir)/man1
b385cc
+NROFF = nroff
b385cc
+MANS = $(man_MANS)
b385cc
 DATA = $(engine_DATA) $(engine_table_DATA)
b385cc
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
b385cc
 ACLOCAL = @ACLOCAL@
b385cc
@@ -253,6 +256,10 @@
b385cc
 top_build_prefix = @top_build_prefix@
b385cc
 top_builddir = @top_builddir@
b385cc
 top_srcdir = @top_srcdir@
b385cc
+DOC2MAN = docbook2man
b385cc
+SGML = ibus-table-createdb.sgml
b385cc
+BUILT_MANS = ibus-table-createdb.1
b385cc
+man_MANS = $(BUILT_MANS)
b385cc
 engine_table_PYTHON = \
b385cc
 	chinese_variants.py \
b385cc
 	factory.py \
b385cc
@@ -275,6 +282,8 @@
b385cc
 	ibus-table-createdb.in \
b385cc
 	ibus-engine-table.in \
b385cc
 	table.xml.in \
b385cc
+	$(SGML) \
b385cc
+	$(BUILT_MANS) \
b385cc
 	$(NULL)
b385cc
 
b385cc
 CLEANFILES = \
b385cc
@@ -436,6 +445,49 @@
b385cc
 	  $(am__uninstall_files_from_dir) || st=$$?; \
b385cc
 	done; \
b385cc
 	exit $$st
b385cc
+install-man1: $(man_MANS)
b385cc
+	@$(NORMAL_INSTALL)
b385cc
+	@list1=''; \
b385cc
+	list2='$(man_MANS)'; \
b385cc
+	test -n "$(man1dir)" \
b385cc
+	  && test -n "`echo $$list1$$list2`" \
b385cc
+	  || exit 0; \
b385cc
+	echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \
b385cc
+	$(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \
b385cc
+	{ for i in $$list1; do echo "$$i"; done;  \
b385cc
+	if test -n "$$list2"; then \
b385cc
+	  for i in $$list2; do echo "$$i"; done \
b385cc
+	    | sed -n '/\.1[a-z]*$$/p'; \
b385cc
+	fi; \
b385cc
+	} | while read p; do \
b385cc
+	  if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
b385cc
+	  echo "$$d$$p"; echo "$$p"; \
b385cc
+	done | \
b385cc
+	sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
b385cc
+	      -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
b385cc
+	sed 'N;N;s,\n, ,g' | { \
b385cc
+	list=; while read file base inst; do \
b385cc
+	  if test "$$base" = "$$inst"; then list="$$list $$file"; else \
b385cc
+	    echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
b385cc
+	    $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \
b385cc
+	  fi; \
b385cc
+	done; \
b385cc
+	for i in $$list; do echo "$$i"; done | $(am__base_list) | \
b385cc
+	while read files; do \
b385cc
+	  test -z "$$files" || { \
b385cc
+	    echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \
b385cc
+	    $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \
b385cc
+	done; }
b385cc
+
b385cc
+uninstall-man1:
b385cc
+	@$(NORMAL_UNINSTALL)
b385cc
+	@list=''; test -n "$(man1dir)" || exit 0; \
b385cc
+	files=`{ for i in $$list; do echo "$$i"; done; \
b385cc
+	l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
b385cc
+	  sed -n '/\.1[a-z]*$$/p'; \
b385cc
+	} | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
b385cc
+	      -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
b385cc
+	dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir)
b385cc
 install-engineDATA: $(engine_DATA)
b385cc
 	@$(NORMAL_INSTALL)
b385cc
 	@list='$(engine_DATA)'; test -n "$(enginedir)" || list=; \
b385cc
@@ -484,8 +536,23 @@
b385cc
 ctags: CTAGS
b385cc
 CTAGS:
b385cc
 
b385cc
+cscope cscopelist:
b385cc
+
b385cc
 
b385cc
 distdir: $(DISTFILES)
b385cc
+	@list='$(MANS)'; if test -n "$$list"; then \
b385cc
+	  list=`for p in $$list; do \
b385cc
+	    if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
b385cc
+	    if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \
b385cc
+	  if test -n "$$list" && \
b385cc
+	    grep 'ab help2man is required to generate this page' $$list >/dev/null; then \
b385cc
+	    echo "error: found man pages containing the 'missing help2man' replacement text:" >&2; \
b385cc
+	    grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/         /' >&2; \
b385cc
+	    echo "       to fix them, install help2man, remove and regenerate the man pages;" >&2; \
b385cc
+	    echo "       typically 'make maintainer-clean' will remove them" >&2; \
b385cc
+	    exit 1; \
b385cc
+	  else :; fi; \
b385cc
+	else :; fi
b385cc
 	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
b385cc
 	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
b385cc
 	list='$(DISTFILES)'; \
b385cc
@@ -517,9 +584,9 @@
b385cc
 	done
b385cc
 check-am: all-am
b385cc
 check: check-am
b385cc
-all-am: Makefile $(SCRIPTS) $(DATA)
b385cc
+all-am: Makefile $(SCRIPTS) $(MANS) $(DATA)
b385cc
 installdirs:
b385cc
-	for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(libexecdir)" "$(DESTDIR)$(engine_tabledir)" "$(DESTDIR)$(enginedir)" "$(DESTDIR)$(engine_tabledir)"; do \
b385cc
+	for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(libexecdir)" "$(DESTDIR)$(engine_tabledir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(enginedir)" "$(DESTDIR)$(engine_tabledir)"; do \
b385cc
 	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
b385cc
 	done
b385cc
 install: install-am
b385cc
@@ -575,7 +642,7 @@
b385cc
 info-am:
b385cc
 
b385cc
 install-data-am: install-engineDATA install-engine_tableDATA \
b385cc
-	install-engine_tablePYTHON
b385cc
+	install-engine_tablePYTHON install-man
b385cc
 
b385cc
 install-dvi: install-dvi-am
b385cc
 
b385cc
@@ -591,7 +658,7 @@
b385cc
 
b385cc
 install-info-am:
b385cc
 
b385cc
-install-man:
b385cc
+install-man: install-man1
b385cc
 
b385cc
 install-pdf: install-pdf-am
b385cc
 
b385cc
@@ -621,7 +688,9 @@
b385cc
 
b385cc
 uninstall-am: uninstall-binSCRIPTS uninstall-engineDATA \
b385cc
 	uninstall-engine_tableDATA uninstall-engine_tablePYTHON \
b385cc
-	uninstall-libexecSCRIPTS
b385cc
+	uninstall-libexecSCRIPTS uninstall-man
b385cc
+
b385cc
+uninstall-man: uninstall-man1
b385cc
 
b385cc
 .MAKE: install-am install-strip
b385cc
 
b385cc
@@ -632,14 +701,19 @@
b385cc
 	install-engine_tableDATA install-engine_tablePYTHON \
b385cc
 	install-exec install-exec-am install-html install-html-am \
b385cc
 	install-info install-info-am install-libexecSCRIPTS \
b385cc
-	install-man install-pdf install-pdf-am install-ps \
b385cc
+	install-man install-man1 install-pdf install-pdf-am install-ps \
b385cc
 	install-ps-am install-strip installcheck installcheck-am \
b385cc
 	installdirs maintainer-clean maintainer-clean-generic \
b385cc
 	mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
b385cc
 	uninstall-am uninstall-binSCRIPTS uninstall-engineDATA \
b385cc
 	uninstall-engine_tableDATA uninstall-engine_tablePYTHON \
b385cc
-	uninstall-libexecSCRIPTS
b385cc
+	uninstall-libexecSCRIPTS uninstall-man uninstall-man1
b385cc
+
b385cc
 
b385cc
+${man_MANS}: ${SGML}
b385cc
+	$(AM_V_GEN) $(RM) $@; \
b385cc
+	$(DOC2MAN) ${SGML}; \
b385cc
+	$(RM) manpage.*
b385cc
 
b385cc
 table.xml: table.xml.in
b385cc
 	( \
b385cc
diff -Nru ibus-table-1.5.0.orig/engine/ibus-table-createdb.1 ibus-table-1.5.0/engine/ibus-table-createdb.1
b385cc
--- ibus-table-1.5.0.orig/engine/ibus-table-createdb.1	1970-01-01 01:00:00.000000000 +0100
b385cc
+++ ibus-table-1.5.0/engine/ibus-table-createdb.1	2014-01-14 09:26:33.652424633 +0100
b385cc
@@ -0,0 +1,48 @@
b385cc
+.\" auto-generated by docbook2man-spec from docbook-utils package
b385cc
+.TH "IBUS-TABLE-CREATEDB" "1" "Apr 18, 2013" "" ""
b385cc
+.SH NAME
b385cc
+ibus-table-createdb \- create ibus-table database from table source
b385cc
+.SH SYNOPSIS
b385cc
+.sp
b385cc
+\fBibus-table-createdb\fR [ \fB [ -n \fIname\fB ]  [ --name \fIname\fB ] \fR ]  [ \fB [ -s \fIsource\fB ]  [ --source \fIsource\fB ] \fR ]  [ \fB [ -e \fIextra\fB ]  [ --extra \fIextra\fB ] \fR ]  [ \fB [ -p \fIpinyin\fB ]  [ --pinyin \fIpinyin\fB ] \fR ]  [ \fB-o\fR ]  [ \fB--no-create-index\fR ]  [ \fB-i\fR ]  [ \fB--create-index-only\fR ]  [ \fB-d\fR ]  [ \fB--debug\fR ] 
b385cc
+
b385cc
+.SH "DESCRIPTION"
b385cc
+.PP
b385cc
+\fBibus-table-createdb\fR creates a database for
b385cc
+ibus-table from a source table.
b385cc
+.SH "OPTIONS"
b385cc
+.PP
b385cc
+This program follows the usual GNU command line syntax,
b385cc
+with long options starting with two dashes (`-'). A summary of
b385cc
+options is included below.
b385cc
+.TP
b385cc
+\fB-n\fR
b385cc
+\fIdatabase-file\fR specifies the file which will contain the binary database for the IME. The default is ''.
b385cc
+.TP
b385cc
+\fB-s\fR
b385cc
+\fIsource-file\fR specifies the file which contains the source of the IME. The default is ''.
b385cc
+.TP
b385cc
+\fB-e\fR
b385cc
+\fIextra-words-file\fR specifies the file for the extra words for the IME. The default is ''.
b385cc
+.TP
b385cc
+\fB-p\fR
b385cc
+\fIpinyin-file\fR specifies the source file for the pinyin. The default is /usr/share/ibus-table/data/pinyin_table.txt.bz2.
b385cc
+.TP
b385cc
+\fB-o\fR
b385cc
+Do not create an index for for a database (Only for distribution purposes, a normal user should not use this flag!)
b385cc
+.TP
b385cc
+\fB-i\fR
b385cc
+Only create an index for an existing database.
b385cc
+.TP
b385cc
+\fB-d\fR
b385cc
+Print extra debug messages.
b385cc
+.SH "EXAMPLES"
b385cc
+.TP
b385cc
+\fBibus-table-createdb -n ipa-x-sampa.db -s ipa-x-sampa.txt\fR
b385cc
+Create the binary database ``ipa-x-sampa.db'' from the source file ``ipa-x-sampa.txt''\&.
b385cc
+.TP
b385cc
+\fBibus-table-createdb -i -n ipa-x-sampa.db\fR
b385cc
+Create an index for the database ``ipa-x-sampa.db''\&.
b385cc
+.SH "AUTHOR"
b385cc
+.PP
b385cc
+This manual page was written by Mike FABIAN <mfabian@redhat.com>\&.