- Add patch to build with gcc-4.4

This commit is contained in:
Deji Akingunola 2009-02-04 20:43:53 +00:00
parent e0191b758b
commit 4bae5c8ecf
2 changed files with 16 additions and 1 deletions

10
sword-gcc44.patch Normal file
View File

@ -0,0 +1,10 @@
--- utilities/emptyvss.cpp 2005-11-20 01:20:30.000000000 -0500
+++ utilities/emptyvss.cpp.new 2009-02-04 13:27:42.517817482 -0500
@@ -2,6 +2,7 @@
#include <swmodule.h>
#include <versekey.h>
#include <iostream>
+#include <cstdio>
#ifndef NO_SWORD_NAMESPACE
using sword::SWMgr;

View File

@ -1,12 +1,13 @@
Name: sword
Version: 1.5.11
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Free Bible Software Project
Group: System Environment/Libraries
License: GPLv2
URL: http://www.crosswire.org/sword/
Source0: http://www.crosswire.org/ftpmirror/pub/sword/source/v1.5/sword-%{version}.tar.gz
Patch0: sword-gcc44.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: openssl-devel
BuildRequires: curl-devel
@ -39,6 +40,7 @@ that uses the sword API, such as Gnomesword or Bibletime.
%prep
%setup -q
%patch0 -p0 -b .gcc44
%build
%configure --disable-static --with-icu --with-lucene
@ -79,6 +81,9 @@ rm -rf %{buildroot}
%{_libdir}/libsword.so
%changelog
* Wed Feb 04 2009 Deji Akingunola <dakingun@gmail.com> - 1.5.11-3
- Add patch to build with gcc-4.4
* Tue Jun 03 2008 Caolán McNamara <caolanm@redhat.com> - 1.5.11-2
- rebuild for new icu