Remove -Werror from CFLAGS/CXXFLAGS (Add libwps-0.2.0-werror.patch)

(Fix FTBFS BZ#715767).
f41
Ralf Corsépius 14 years ago
parent ccf0c7a5e9
commit 0e767836ec

@ -0,0 +1,28 @@
diff -Naur libwps-0.2.0.orig/configure libwps-0.2.0/configure
--- libwps-0.2.0.orig/configure 2010-11-16 11:50:59.000000000 +0100
+++ libwps-0.2.0/configure 2011-06-28 11:27:23.118458784 +0200
@@ -15185,8 +15185,8 @@
else
if test x"$GCC" = xyes; then
- CFLAGS="$CFLAGS -Wall -Werror -pedantic"
- CXXFLAGS="$CXXFLAGS -Wall -Werror -pedantic"
+: CFLAGS="$CFLAGS -Wall -Werror -pedantic"
+: CXXFLAGS="$CXXFLAGS -Wall -Werror -pedantic"
fi
fi
diff -Naur libwps-0.2.0.orig/configure.in libwps-0.2.0/configure.in
--- libwps-0.2.0.orig/configure.in 2008-04-14 09:55:28.000000000 +0200
+++ libwps-0.2.0/configure.in 2011-06-28 11:27:42.786743535 +0200
@@ -202,8 +202,8 @@
else
if test x"$GCC" = xyes; then
- CFLAGS="$CFLAGS -Wall -Werror -pedantic"
- CXXFLAGS="$CXXFLAGS -Wall -Werror -pedantic"
+: CFLAGS="$CFLAGS -Wall -Werror -pedantic"
+: CXXFLAGS="$CXXFLAGS -Wall -Werror -pedantic"
fi
fi

@ -1,12 +1,14 @@
Name: libwps
Version: 0.2.0
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Library for reading and converting Microsoft Works word processor documents
Group: System Environment/Libraries
License: LGPLv2+
URL: http://libwps.sourceforge.net/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
# Remove -Werror from CFLAGS/CXXFLAGS
Patch0: %{name}-%{version}-werror.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: doxygen
@ -55,7 +57,9 @@ The %{name}-doc package contains documentation files for %{name}
%prep
%setup -q
%patch0 -p1
# Prevent autotools from being rerun
touch -r aclocal.m4 configure configure.in
%build
%configure --disable-static
@ -112,6 +116,10 @@ rm -rf %{buildroot}
%changelog
* Tue Jun 28 2011 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.2.0-3
- Remove -Werror from CFLAGS/CXXFLAGS (Add libwps-0.2.0-werror.patch)
(Fix FTBFS BZ#715767).
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

Loading…
Cancel
Save