[csdp] Work around %{__isa_bits}-related brokenness in koji.
Jerry James
jjames at fedoraproject.org
Mon Mar 9 16:39:04 UTC 2015
commit dede3c660431a1581d4620f78ff6c59de20ee425
Author: Jerry James <loganjerry at gmail.com>
Date: Mon Mar 9 10:38:11 2015 -0600
Work around %{__isa_bits}-related brokenness in koji.
csdp.spec | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/csdp.spec b/csdp.spec
index c2e072f..1800579 100644
--- a/csdp.spec
+++ b/csdp.spec
@@ -71,9 +71,9 @@ SemiDefinite Programming.
# Choose the CFLAGS we want
CFLAGS="%{optflags} -I../include -DNOSHORTS -DUSESIGTERM -DUSEGETTIME -DUSEATLAS"
-%if %{__isa_bits} == 64
+if [ %{__isa_bits} = "64" ]; then
CFLAGS+=" -DBIT64"
-%endif
+fi
sed -i -e "s|^CFLAGS=.*|CFLAGS=${CFLAGS}|" \
-e "s|^LIBS=.*|LIBS=-Wl,--as-needed $RPM_LD_FLAGS -L../lib -L%{_libdir}/atlas -lsdp -ltatlas -lm|" \
solver/Makefile theta/Makefile
More information about the scm-commits
mailing list