From 40ea37ec11cef89c4a14125e31a9c250241db48e Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 18 Dec 2007 17:14:12 +0000 Subject: [PATCH] try to make it build --- gtk2.spec | 10 ++++++++-- gtkdoc-rebase.patch | 15 +++++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 gtkdoc-rebase.patch diff --git a/gtk2.spec b/gtk2.spec index 5599718..abc676c 100644 --- a/gtk2.spec +++ b/gtk2.spec @@ -16,7 +16,7 @@ Summary: The GIMP ToolKit (GTK+), a library for creating GUIs for X Name: gtk2 Version: %{base_version} -Release: 3%{?dist} +Release: 4%{?dist} License: LGPLv2+ Group: System Environment/Libraries Source: http://download.gnome.org/sources/gtk+/2.12/gtk+-%{version}.tar.bz2 @@ -40,6 +40,9 @@ Patch4: tab-label.patch # backport from svn trunk Patch5: im-setting.patch +# fix a gtk-doc issue +Patch6: gtkdoc-rebase.patch + BuildRequires: atk-devel >= %{atk_version} BuildRequires: pango-devel >= %{pango_version} BuildRequires: glib2-devel >= %{glib2_version} @@ -119,6 +122,7 @@ docs for the GTK+ widget toolkit. %patch3 -p1 -b .system-log-crash %patch4 -p1 -b .tab-label %patch5 -p1 -b .im-setting +%patch6 -p1 -b .gtkdoc-rebase for i in config.guess config.sub ; do test -f %{_datadir}/libtool/$i && cp %{_datadir}/libtool/$i . @@ -154,7 +158,6 @@ gcc -Os relocation-tag.c -o .relocation-tag %install rm -rf $RPM_BUILD_ROOT - # Deriving /etc/gtk-2.0/$host location # NOTE: Duplicated below # @@ -302,6 +305,9 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/gtk-2.0 %changelog +* Tue Dec 18 2007 Matthias Clasen - 2.12.3-4 +- Fix a gtk-doc problem + * Mon Dec 17 2007 Matthias Clasen - 2.12.3-3 - Add a setting to change input methods diff --git a/gtkdoc-rebase.patch b/gtkdoc-rebase.patch new file mode 100644 index 0000000..3397df0 --- /dev/null +++ b/gtkdoc-rebase.patch @@ -0,0 +1,15 @@ +diff -up gtk+-2.12.3/gtk-doc.make.rebase gtk+-2.12.3/gtk-doc.make +--- gtk+-2.12.3/gtk-doc.make.rebase 2007-12-18 12:09:09.000000000 -0500 ++++ gtk+-2.12.3/gtk-doc.make 2007-12-18 12:11:22.000000000 -0500 +@@ -139,9 +139,8 @@ install-data-local: + done; \ + echo '-- Installing $(srcdir)/html/index.sgml' ; \ + $(INSTALL_DATA) $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR) || :; \ +- if test "`which gtkdoc-rebase`" != ""; then \ +- gtkdoc-rebase --relative --dest-dir=$(DESTDIR) --html-dir=$(DESTDIR)$(TARGET_DIR) ; \ +- fi \ ++ which gtkdoc-rebase > /dev/null && \ ++ gtkdoc-rebase --relative --dest-dir=$(DESTDIR) --html-dir=$(DESTDIR)$(TARGET_DIR) ; \ + fi + +