diff --git a/check-0.9.6-strdup.patch b/check-0.9.6-strdup.patch new file mode 100644 index 0000000..fbf93de --- /dev/null +++ b/check-0.9.6-strdup.patch @@ -0,0 +1,24 @@ +diff -dur check-0.9.6.ORIG/src/Makefile.am check-0.9.6/src/Makefile.am +--- check-0.9.6.ORIG/src/Makefile.am 2008-12-29 06:48:45.000000000 -0700 ++++ check-0.9.6/src/Makefile.am 2009-04-07 08:51:13.000000000 -0600 +@@ -7,7 +7,7 @@ + + EXTRA_DIST = check.h.in + +-AM_CFLAGS = @GCOV_CFLAGS@ -ansi -pedantic ++AM_CFLAGS = @GCOV_CFLAGS@ -pedantic + + + CFILES =\ +diff -dur check-0.9.6.ORIG/src/Makefile.in check-0.9.6/src/Makefile.in +--- check-0.9.6.ORIG/src/Makefile.in 2008-12-29 07:07:01.000000000 -0700 ++++ check-0.9.6/src/Makefile.in 2009-04-07 08:51:22.000000000 -0600 +@@ -206,7 +206,7 @@ + noinst_LTLIBRARIES = libcheckinternal.la + include_HEADERS = check.h + EXTRA_DIST = check.h.in +-AM_CFLAGS = @GCOV_CFLAGS@ -ansi -pedantic ++AM_CFLAGS = @GCOV_CFLAGS@ -pedantic + CFILES = \ + check.c \ + check_error.c \ diff --git a/check.spec b/check.spec index b2191e7..0c350e4 100644 --- a/check.spec +++ b/check.spec @@ -1,8 +1,11 @@ Name: check Version: 0.9.6 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A unit test framework for C Source0: http://download.sourceforge.net/check/%{name}-%{version}.tar.gz +# This patch fixes debian bug 519597: use of -ansi conflicts with strdup() +# usage. Debian sent this patch upstream already. +Patch0: check-0.9.6-strdup.patch Group: Development/Tools License: LGPLv2+ URL: http://check.sourceforge.net/ @@ -35,6 +38,7 @@ Static libraries of check. %prep %setup -q +%patch0 -p1 %build %configure CFLAGS="${RPM_OPT_FLAGS} -fPIC" @@ -82,6 +86,9 @@ fi %{_libdir}/libcheck.a %changelog +* Tue Apr 7 2009 Jerry James - 0.9.6-3 +- Add check-0.9.6-strdup.patch + * Mon Feb 23 2009 Fedora Release Engineering - 0.9.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild