[gtk2] man page love

Matthias Clasen mclasen at fedoraproject.org
Wed Jun 26 17:18:41 UTC 2013


commit 8838e6ff31ccc1588b1323b1dff949ec11be01f0
Author: Matthias Clasen <mclasen at redhat.com>
Date:   Wed Jun 26 12:59:25 2013 -0400

    man page love

 gtk2.spec              |   30 ++++++++++++++++++++++++++-
 update-gtk-immodules.1 |   52 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 81 insertions(+), 1 deletions(-)
---
diff --git a/gtk2.spec b/gtk2.spec
index 899b010..cb2c8f8 100644
--- a/gtk2.spec
+++ b/gtk2.spec
@@ -18,7 +18,7 @@
 Summary: The GIMP ToolKit (GTK+), a library for creating GUIs for X
 Name: gtk2
 Version: 2.24.19
-Release: 3%{?dist}
+Release: 4%{?dist}
 License: LGPLv2+
 Group: System Environment/Libraries
 URL: http://www.gtk.org
@@ -26,6 +26,7 @@ URL: http://www.gtk.org
 Source: http://download.gnome.org/sources/gtk+/2.24/gtk+-%{version}.tar.bz2
 Source2: update-gtk-immodules
 Source3: im-cedilla.conf
+Source4: update-gtk-immodules.1
 
 # Biarch changes
 Patch0: gtk-lib64.patch
@@ -202,6 +203,26 @@ fi
 make install DESTDIR=$RPM_BUILD_ROOT        \
              RUN_QUERY_IMMODULES_TEST=false
 
+# man pages went missing, so install them manually
+mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
+
+gzip -c docs/reference/gtk/gtk-query-immodules-2.0.1 > $RPM_BUILD_ROOT%{_mandir}/man1/gtk-query-immodules-2.0.1.gz
+gzip -c docs/reference/gtk/gtk-update-icon-cache.1 > $RPM_BUILD_ROOT%{_mandir}/man1/gtk-update-icon-cache.1.gz
+
+echo ".so man1/gtk-query-immodules-2.0.1" > $RPM_BUILD_ROOT%{_mandir}/man1/gtk-query-immodules-2.0-%{__isa_bits}.1
+
+gzip -c %{SOURCE4} > $RPM_BUILD_ROOT%{_mandir}/man1/update-gtk-immodules.1.gz
+
+# man pages went missing, so install them manually
+mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
+
+gzip -c docs/reference/gtk/gtk-query-immodules-2.0.1 > $RPM_BUILD_ROOT%{_mandir}/man1/gtk-query-immodules-2.0.1.gz
+gzip -c docs/reference/gtk/gtk-update-icon-cache.1 > $RPM_BUILD_ROOT%{_mandir}/man1/gtk-update-icon-cache.1.gz
+
+echo ".so man1/gtk-query-immodules-2.0.1" > $RPM_BUILD_ROOT%{_mandir}/man1/gtk-query-immodules-2.0-%{__isa_bits}.1
+
+gzip -c %{SOURCE4} > $RPM_BUILD_ROOT%{_mandir}/man1/update-gtk-immodules.1.gz
+
 %find_lang gtk20
 %find_lang gtk20-properties
 
@@ -303,6 +324,9 @@ fi
 %{_datadir}/themes/Raleigh
 %dir %{_sysconfdir}/gtk-2.0
 %{_libdir}/girepository-1.0
+%{_mandir}/man1/gtk-query-immodules-2.0*
+%{_mandir}/man1/update-gtk-immodules.1.gz
+%{_mandir}/man1/gtk-update-icon-cache.1.gz
 
 %files immodules
 %{_libdir}/gtk-2.0/%{bin_version}/immodules/im-am-et.so
@@ -341,6 +365,10 @@ fi
 %doc tmpdocs/examples
 
 %changelog
+* Wed Jun 26 2013 Matthias Clasen <mclasen at redhat.com> - 2.24.19-4
+- Include man pages again
+- Add a man page for update-gtk-immodules
+
 * Wed Jun 26 2013 Marek Kasik <mkasik at redhat.com> - 2.24.19-3
 - Backport listing of Avahi printers from gtk-3.x
 - Resolves: #973730
diff --git a/update-gtk-immodules.1 b/update-gtk-immodules.1
new file mode 100644
index 0000000..19c086c
--- /dev/null
+++ b/update-gtk-immodules.1
@@ -0,0 +1,52 @@
+'\" t
+.\"     Title: update-gtk-immodules
+.\"    Author: Matthias Clasen <mclasen at redhat.com>
+.\"      Date: 06/26/2013
+.\"    Manual: User Commands
+.\"    Source: GTK+
+.\"  Language: English
+.\"
+.TH "UPDATE\-GTK\-IMMODULES" "1" "" "GTK+" "User Commands"
+.\" -----------------------------------------------------------------
+.\" * Define some portability stuff
+.\" -----------------------------------------------------------------
+.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+.\" http://bugs.debian.org/507673
+.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
+.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+.ie \n(.g .ds Aq \(aq
+.el       .ds Aq '
+.\" -----------------------------------------------------------------
+.\" * set default formatting
+.\" -----------------------------------------------------------------
+.\" disable hyphenation
+.nh
+.\" disable justification (adjust text to left margin only)
+.ad l
+.\" -----------------------------------------------------------------
+.\" * MAIN CONTENT STARTS HERE *
+.\" -----------------------------------------------------------------
+.SH "NAME"
+update-gtk-immodules - Update GTK+ immodule cache
+.SH "SYNOPSIS"
+.HP \w'\fBupdate-gtk-immodules\fR\ 'u
+\fBupdate-gtk-immodules\fR [HOST_TRIPLET]
+.SH "DESCRIPTION"
+.PP
+\fBupdate-gtk-immodules\fR
+is a wrapper around gtk-query-immodules-2.0 that tries to help with
+multilib installations. It is meant to be used in %post scripts of rpm
+packages that install input method modules for GTK+ 2.x.
+
+.PP
+It needs to be given a GNU-style host triplet as argument, such as
+"x86_64-redhat-linux-gnu". This argument determines where the tool
+saves the gtk.immodules file that it creates. It must be the same
+as the host triplet that GTK+ was configured with.
+
+.SH "FILES"
+.PP
+/etc/gtk-2.0/\fIhost\fR/gtk.immodules - the file created by update-gtk-immodules.
+
+.SH "SEE ALSO"
+.BR gtk-query-immodules-2.0 "(1)"


More information about the scm-commits mailing list