[chmsee] Upgrade gre version to 5.0

Peng Wu pwu at fedoraproject.org
Mon Jul 4 03:32:26 UTC 2011


commit c703a380de5fe45559341482a5ff257b890c568d
Author: Peng Wu <alexepico at gmail.com>
Date:   Mon Jul 4 11:31:40 2011 +0800

    Upgrade gre version to 5.0

 chmsee-1.3.1.1-fixes-gre-version.patch |   14 ++++++++++++++
 chmsee.spec                            |    7 ++++++-
 2 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/chmsee-1.3.1.1-fixes-gre-version.patch b/chmsee-1.3.1.1-fixes-gre-version.patch
new file mode 100644
index 0000000..9a2922a
--- /dev/null
+++ b/chmsee-1.3.1.1-fixes-gre-version.patch
@@ -0,0 +1,14 @@
+Upgrade gre version to 5.0
+Index: chmsee-1.3.1.1/src/components/gecko-utils.cpp
+===================================================================
+--- chmsee-1.3.1.1.orig/src/components/gecko-utils.cpp
++++ chmsee-1.3.1.1/src/components/gecko-utils.cpp
+@@ -182,7 +182,7 @@ gecko_utils_init(void)
+ 
+         static const GREVersionRange greVersion = {
+                 "1.9a", PR_TRUE,
+-                "2.0.*", PR_TRUE
++                "5.0", PR_TRUE
+         };
+ 
+         char xpcomLocation[PATH_MAX];
diff --git a/chmsee.spec b/chmsee.spec
index 2ccca5b..03ba153 100644
--- a/chmsee.spec
+++ b/chmsee.spec
@@ -1,6 +1,6 @@
 Name:		chmsee
 Version:	1.3.1.1
-Release:	1%{?dist}
+Release:	2%{?dist}
 Summary(zh_CN):	CHM 文件阅读工具, 基于 Gtk2+
 Summary:	HTML Help viewer for Unix/Linux
 Group:		Applications/Publishing
@@ -8,6 +8,7 @@ License:	GPLv2
 URL:		http://code.google.com/p/chmsee
 Source0:	http://chmsee.googlecode.com/files/%{name}-%{version}.tar.gz
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Patch1:         chmsee-1.3.1.1-fixes-gre-version.patch
 
 BuildRequires:	intltool >= 0.34 pkgconfig >= 0.9 gettext cmake
 BuildRequires:	gtk2-devel >= 2.20
@@ -55,6 +56,7 @@ HTML 帮助文件阅读工具
 
 %prep
 %setup -q
+%patch1 -p1 -b .gre
 
 %build
 %cmake . -DCMAKE_SKIP_RPATH=ON
@@ -101,6 +103,9 @@ rm -rf $RPM_BUILD_ROOT
 #{_mandir}/man1/chmsee*.1*
 
 %changelog
+* Mon Jul 04 2011  Peng Wu <pwu at redhat.com> - 1.3.1.1-2
+- Upgrade gre version to 5.0
+
 * Thu May 19 2011  Peng Wu <pwu at redhat.com> - 1.3.1.1-1
 - Update to 1.3.1.1
 


More information about the scm-commits mailing list