From c535adaa28b533cdca6b6e2d7382333a9ce45f31 Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Mar 17 2016 15:14:06 +0000 Subject: Fixing FTBFS bug by adding special build flags --- diff --git a/openobex.spec b/openobex.spec index 3dc32b3..c758c31 100644 --- a/openobex.spec +++ b/openobex.spec @@ -3,7 +3,7 @@ Summary: Library for using OBEX Name: openobex Version: 1.7.1 -Release: 7%{?dist} +Release: 8%{?dist} License: GPLv2+ and LGPLv2+ Group: System Environment/Libraries URL: http://openobex.sourceforge.net @@ -12,6 +12,7 @@ Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}-Source.tar.g Patch0: openobex-apps-flush.patch Patch1: openobex-1.7-obex_push.patch Patch2: openobex-1.7-udev_rule.patch +#Patch3: openobex-1.7-ftbfs.patch BuildRequires: bluez-libs-devel, libusb-devel BuildRequires: cmake, doxygen, libxslt, docbook-style-xsl @@ -45,8 +46,11 @@ calendar entries (vCal) and business cards (vCard) using the OBEX protocol. %patch0 -p1 -b .flush %patch1 -p1 -b .push %patch2 -p1 -b .udev +#%patch3 -p1 -b .ftbfs %build +export CFLAGS="%{optflags} -std=gnu99 -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE" + %cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DCMAKE_SKIP_RPATH=YES \ -DCMAKE_VERBOSE_MAKEFILE=YES \ @@ -102,6 +106,9 @@ rm -f $RPM_BUILD_ROOT%{_mandir}/man1/obex_test.1* %{_mandir}/man1/obex_push.1* %changelog +* Thu Mar 17 2016 Zdenek Dohnal zdohnal@redhat.com - 1.7.1-8 +- Fixing FTBFS bug by adding special build flags + * Thu Feb 04 2016 Fedora Release Engineering - 1.7.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild