[yelp/f14/master] Downgrade to 2.30

Matthias Clasen mclasen at fedoraproject.org
Thu Aug 12 00:16:13 UTC 2010


commit 687ec4afb10f0c9976957a58571228d8a0c1d5f8
Author: Matthias Clasen <mclasen at redhat.com>
Date:   Wed Aug 11 20:15:03 2010 -0400

    Downgrade to 2.30

 sources   |    2 +-
 yelp.spec |  138 +++++++++++++++++++++++++++++++++++++++----------------------
 2 files changed, 90 insertions(+), 50 deletions(-)
---
diff --git a/sources b/sources
index 4d38c3e..36ff73c 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-07e943fff558b0d6c1997e79520e480f  yelp-2.31.7.tar.bz2
+afd638cdaea1fcb9821ece88b819a022  yelp-2.30.1.tar.bz2
diff --git a/yelp.spec b/yelp.spec
index a76a829..34dbcd8 100644
--- a/yelp.spec
+++ b/yelp.spec
@@ -1,33 +1,83 @@
-%define glib2_version 2.25.3
+%global WITH_MONO 0
+%{?!WITH_MONO:  %global WITH_MONO 1}
+%ifarch ppc64 s390 s390x
+%define WITH_MONO 0
+%endif
+
+# Last updated for 2.29.4
+%define gnome_doc_utils_version 0.19.1
+%define gtk2_version 2.18.0
 %define libxml_version 2.6.5
 %define libxslt_version 1.1.4
+%define startup_notification_version 0.8
+%define rarian_version 0.7.0
+%define gecko_version 1.9.1
+
+%define pango_version 1.0.99
+%define desktop_file_utils_version 0.3-7
 
 Summary: Help browser for the GNOME desktop
 Name: yelp
-Version: 2.31.7
-Release: 1%{?dist}
+Epoch: 1
+Version: 2.30.1
+Release: 3%{?dist}
 #VCS: git:git://git.gnome.org/yelp
-Source: http://download.gnome.org/sources/yelp/2.31/%{name}-%{version}.tar.bz2
+Source: http://download.gnome.org/sources/yelp/2.30/%{name}-%{version}.tar.bz2
 URL: http://live.gnome.org/Yelp
+Patch1: yelp-2.15.5-fedora-docs.patch
+Patch2: yelp-2.13.2-add-mime-handling.patch
+Patch3: yelp-use-pango.patch
+# http://bugzilla.gnome.org/show_bug.cgi?id=497559
+# Patch6: hp.patch
+
+# http://bugzilla.gnome.org/show_bug.cgi?id=431077
+# XXX Does this no longer apply to yelp >= 2.19.1 ?
+#Patch8: yelp-2.18.1-posix-man.patch
+
+# Patch12: libxul.patch
+
+# http://bugzilla.gnome.org/show_bug.cgi?id=592762
+Patch13: ellipsis.patch
+
+Patch14: libs.patch
+
 License: GPLv2+
 Group: Applications/System
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Requires: docbook-dtds
+Requires: gecko-libs >= %{gecko_version}
+Requires: libxslt >= %{libxslt_version}
+Requires: gnome-doc-utils-stylesheets >= %{gnome_doc_utils_version}
 Requires: gnome-user-docs
-Requires: yelp-xsl
+Requires: rarian >= %{rarian_version}
+Requires(pre): GConf2
+Requires(post): GConf2
+Requires(preun): GConf2
 Requires(post): desktop-file-utils
 Requires(postun): desktop-file-utils
 
-BuildRequires: glib2-devel >= %{glib2_version}
-BuildRequires: gtk3-devel
+BuildRequires: pango-devel >= %{pango_version}
+BuildRequires: gtk2-devel >= %{gtk2_version}
+BuildRequires: gecko-devel-unstable >= %{gecko_version}
 BuildRequires: libxml2-devel >= %{libxml_version}
 BuildRequires: libxslt-devel >= %{libxslt_version}
-BuildRequires: webkitgtk3-devel
-BuildRequires: desktop-file-utils
-BuildRequires: yelp-xsl-devel >= 2.31.3
-BuildRequires: xz-devel
-BuildRequires: bzip2-devel
+BuildRequires: libgcrypt-devel
+BuildRequires: fontconfig
+BuildRequires: GConf2-devel
+BuildRequires: desktop-file-utils >= %{desktop_file_utils_version}
+BuildRequires: gnome-doc-utils-stylesheets >= %{gnome_doc_utils_version}
+BuildRequires: startup-notification-devel >= %{startup_notification_version}
+BuildRequires: libXt-devel
+BuildRequires: dbus-devel
 BuildRequires: gettext-devel
+BuildRequires: rarian-devel >= %{rarian_version}
 BuildRequires: intltool
+BuildRequires: gnome-common
+BuildRequires: automake autoconf libtool
+
+%if %{WITH_MONO}
+BuildRequires: libbeagle-devel
+%endif
 
 %description
 Yelp is the help browser for the GNOME desktop. It is designed
@@ -35,29 +85,25 @@ to help you browse all the documentation on your system in
 one central tool, including traditional man pages, info pages and
 documentation written in DocBook.
 
-%package libs
-Summary: Libraries for yelp
-Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
-
-%description libs
-This package contains libraries used by the yelp help browser.
-
-%package devel
-Summary: Development files for yelp-libs
-Group: Development/Libraries
-Requires: %{name}-libs = %{version}-%{release}
-
-%description devel
-This package contains header files and documentation for
-the libraries in the yelp-libs package.
-
-
 %prep
 %setup -q
+%patch1 -p1 -b .fedora-docs
+%patch2 -p1 -b .add-mime-handling
+%patch3 -p1 -b .use-pango
+#%patch6 -p1 -b .hp
+#%patch12 -p1 -b .libxul
+%patch13 -p1 -b .ellipsis
+%patch14 -p1 -b .libs
+
+# force regeneration
+rm data/yelp.schemas
+
+autoreconf -i -f -i
 
 %build
-%configure
+%configure 			\
+	--with-mozilla=libxul-embedding	\
+	--disable-schemas-install
 
 # drop unneeded direct library deps with --as-needed
 # libtool doesn't make this easy, so we do it the hard way
@@ -68,9 +114,6 @@ make %{?_smp_mflags}
 %install
 make install DESTDIR=$RPM_BUILD_ROOT
 
-rm $RPM_BUILD_ROOT%{_libdir}/libyelp.a
-rm $RPM_BUILD_ROOT%{_libdir}/libyelp.la
-
 desktop-file-install --vendor gnome --delete-original	\
 	--dir $RPM_BUILD_ROOT%{_datadir}/applications	\
 	--remove-category Application			\
@@ -81,44 +124,41 @@ mkdir -p -m 755 $RPM_BUILD_ROOT/%{_datadir}/gnome/help
 %find_lang %{name}
 
 %post
+%gconf_schema_upgrade yelp
 update-desktop-database &> /dev/null ||:
 touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
 
+%pre
+%gconf_schema_prepare yelp
+
+%preun
+%gconf_schema_remove yelp
+
 %postun
 update-desktop-database &> /dev/null ||:
-glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
 if [ $1 -eq 0 ]; then
   touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
   gtk-update-icon-cache %{_datadir}icons/hicolor &> /dev/null || :
 fi
 
 %posttrans
-glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
 gtk-update-icon-cache %{_datadir}icons/hicolor &> /dev/null || :
 
-
 %files -f %{name}.lang
-%defattr(-,root,root,-)
+%defattr(-,root,root)
 %doc ChangeLog AUTHORS COPYING MAINTAINERS NEWS README
+%{_sysconfdir}/gconf/schemas/yelp.schemas
 %{_bindir}/*
 %{_datadir}/applications/*
 %dir %{_datadir}/gnome/help
 %{_datadir}/icons/hicolor/*/apps/*.png
 %{_datadir}/yelp
-%{_datadir}/glib-2.0/schemas/org.gnome.yelp.gschema.xml
-
-%files libs
-%defattr(-,root,root,-)
-%{_libdir}/libyelp.so.*
-
-%files devel
-%defattr(-,root,root,-)
-%{_libdir}/libyelp.so
-%{_includedir}/libyelp
-%{_datadir}/gtk-doc/html/libyelp
 
 
 %changelog
+* Wed Aug 11 2010 Matthias Clasen <mclasen at redhat.com> - 1:2.30.1-3
+- Switch back to the 2.30 series for F14
+
 * Mon Jul 14 2010 Matthias Clasen <mclasen at redhat.com> - 2.31.7-1
 - Update to 2.31.7
 


More information about the scm-commits mailing list