Resolves: rhbz#1307751 FTBFS

f41
Caolán McNamara 9 years ago
parent ba66567e6b
commit c484294fd6

@ -0,0 +1,22 @@
--- lp_solve_5.5/lpsolve55/ccc
+++ lp_solve_5.5/lpsolve55/ccc
@@ -18,7 +18,7 @@
echo '#include <stdio.h>'>>/tmp/isnan.c
echo '#include <stdlib.h>'>>/tmp/isnan.c
echo '#include <math.h>'>>/tmp/isnan.c
-echo 'main(){isnan(0);}'>>/tmp/isnan.c
+echo 'main(){isnan(0.0);}'>>/tmp/isnan.c
$c /tmp/isnan.c -o /tmp/isnan $math >/dev/null 2>&1
if [ $? = 0 ]
then NOISNAN=
--- lp_solve_5.5/lp_solve/ccc
+++ lp_solve_5.5/lp_solve/ccc
@@ -20,7 +20,7 @@
echo '#include <stdio.h>'>>/tmp/isnan.c
echo '#include <stdlib.h>'>>/tmp/isnan.c
echo '#include <math.h>'>>/tmp/isnan.c
-echo 'main(){isnan(0);}'>>/tmp/isnan.c
+echo 'main(){isnan(0.0);}'>>/tmp/isnan.c
$c /tmp/isnan.c -o /tmp/isnan $math >/dev/null 2>&1
if [ $? = 0 ]
then NOISNAN=

@ -1,7 +1,7 @@
Name: lpsolve
Summary: A Mixed Integer Linear Programming (MILP) solver
Version: 5.5.2.0
Release: 12%{?dist}
Release: 13%{?dist}
Source: http://downloads.sourceforge.net/lpsolve/lp_solve_%{version}_source.tar.gz
Group: System Environment/Libraries
URL: http://sourceforge.net/projects/lpsolve
@ -9,6 +9,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
License: LGPLv2+
Patch0: lpsolve-5.5.0.11.cflags.patch
Patch1: lpsolve-5.5.2.0.defines.patch
%description
Mixed Integer Linear Programming (MILP) solver lpsolve solves pure linear,
@ -25,6 +26,7 @@ Includes and definitions for developing with lpsolve
%prep
%setup -q -n lp_solve_5.5
%patch0 -p1 -b .cflags.patch
%patch1 -p1 -b .defines.patch
#sparc and s390 need -fPIC lets sed it
%ifarch sparcv9 sparc64 s390 s390x
sed -i -e 's|-fpic|-fPIC|g' lpsolve55/ccc
@ -65,6 +67,9 @@ rm -rf $RPM_BUILD_ROOT
%{_includedir}/lpsolve
%changelog
* Mon Feb 15 2016 Caolán McNamara <caolanm@redhat.com> - 5.5.2.0-13
- Resolves: rhbz#1307751 FTBFS
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.5.2.0-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

Loading…
Cancel
Save