From 10fba4fdafb8db1134ea8ccdaae88c8cc5972174 Mon Sep 17 00:00:00 2001 From: Dominik Mierzejewski Date: Sun, 6 Jan 2008 18:05:17 +0000 Subject: [PATCH] - fix build with gcc-4.3, take 1 --- openbabel-gcc43.patch | 12 ++++++++++++ openbabel.spec | 7 ++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 openbabel-gcc43.patch diff --git a/openbabel-gcc43.patch b/openbabel-gcc43.patch new file mode 100644 index 0000000..ae4d595 --- /dev/null +++ b/openbabel-gcc43.patch @@ -0,0 +1,12 @@ +diff -up openbabel-2.1.1/include/openbabel/data.h.gcc43 openbabel-2.1.1/include/openbabel/data.h +--- openbabel-2.1.1/include/openbabel/data.h.gcc43 2007-04-14 02:34:14.000000000 +0200 ++++ openbabel-2.1.1/include/openbabel/data.h 2008-01-06 19:03:06.000000000 +0100 +@@ -23,7 +23,7 @@ GNU General Public License for more deta + #include + + #include +- ++#include + #include + #include + #include diff --git a/openbabel.spec b/openbabel.spec index b3dd326..7cf7cf9 100644 --- a/openbabel.spec +++ b/openbabel.spec @@ -5,12 +5,13 @@ Name: openbabel Version: 2.1.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Chemistry software file format converter License: GPLv2 Group: Applications/File URL: http://openbabel.sourceforge.net/ Source: http://dl.sourceforge.net/sourceforge/openbabel/%{name}-%{version}.tar.gz +Patch: %{name}-gcc43.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: inchi-devel BuildRequires: libtool @@ -66,6 +67,7 @@ Python wrapper for the Open Babel library. %prep %setup -q +%patch -p1 -b .gcc43 %build autoreconf --force --install @@ -144,6 +146,9 @@ popd %{python_sitearch}/pybel.py* %changelog +* Sun Jan 06 2008 Dominik Mierzejewski 2.1.1-3 +- fix build with gcc-4.3 + * Wed Nov 28 2007 Dominik Mierzejewski 2.1.1-2 - build against external inchi