--- a/base-specs/drivel.spec Fri Sep 17 15:26:05 2010 +0200
+++ b/base-specs/drivel.spec Wed Sep 29 14:41:06 2010 +0200
@@ -20,6 +20,7 @@
URL: http://dropline.net/past-projects/drivel-blog-editor/
Summary: Drivel is a GNOME client for editing blog
Source: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
+Patch1000: openindiana-drivel-1000-cflags.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: gtk2-devel
@@ -29,6 +30,7 @@
%prep
%setup -q
+%patch1000 -p1
%build
./configure --prefix=%{_prefix} --sysconfdir=%{_sysconfdir} CFLAGS="-D__NetBSD__ -D__EXTENSIONS__"
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/openindiana-drivel-1000-cflags.diff Wed Sep 29 14:41:06 2010 +0200
@@ -0,0 +1,29 @@
+diff -ru drivel-2.0.4.orig/src/Makefile.am drivel-2.0.4/src/Makefile.am
+--- drivel-2.0.4.orig/src/Makefile.am 2009-04-03 18:47:45.000000000 +0200
++++ drivel-2.0.4/src/Makefile.am 2010-07-28 17:12:28.813779695 +0200
+@@ -1,9 +1,9 @@
+ SUBDIRS=libegg
+
+ if HAVE_DBUS
+-AM_CFLAGS = -std=c89 -DDBUS_API_SUBJECT_TO_CHANGE
++AM_CFLAGS = -DDBUS_API_SUBJECT_TO_CHANGE
+ else
+-AM_CFLAGS = -std=c89
++AM_CFLAGS =
+ endif
+
+ AM_CPPFLAGS = \
+diff -ru drivel-2.0.4.orig/src/Makefile.in drivel-2.0.4/src/Makefile.in
+--- drivel-2.0.4.orig/src/Makefile.in 2009-04-17 17:10:02.000000000 +0200
++++ drivel-2.0.4/src/Makefile.in 2010-07-28 17:12:42.174732233 +0200
+@@ -270,8 +270,8 @@
+ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+ SUBDIRS = libegg
+-@HAVE_DBUS_FALSE@AM_CFLAGS = -std=c89
+-@HAVE_DBUS_TRUE@AM_CFLAGS = -std=c89 -DDBUS_API_SUBJECT_TO_CHANGE
++@HAVE_DBUS_FALSE@AM_CFLAGS =
++@HAVE_DBUS_TRUE@AM_CFLAGS = -DDBUS_API_SUBJECT_TO_CHANGE
+ AM_CPPFLAGS = \
+ $(DISABLE_DEPRECATED_CFLAGS) \
+ -DGNOMELOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \