[newlisp/f15] allow build on all arches

Dan Horák sharkcz at fedoraproject.org
Tue May 29 09:07:02 UTC 2012


commit 4fa95d85145984eb4e2dc36ab9df03bed3cdd406
Author: Dan Horák <dan at danny.cz>
Date:   Tue May 29 11:04:32 2012 +0200

    allow build on all arches

 newlisp.spec |   17 +++++------------
 1 files changed, 5 insertions(+), 12 deletions(-)
---
diff --git a/newlisp.spec b/newlisp.spec
index 2486dcf..af2172e 100644
--- a/newlisp.spec
+++ b/newlisp.spec
@@ -1,6 +1,6 @@
 Name:           newlisp
 Version:        10.4.3
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Lisp-like general purpose scripting
 
 License:        GPLv3+
@@ -28,19 +28,10 @@ sed -i.m64 's/\-m64 //' makefile_linuxLP64
 %build
 %configure
 
-%ifarch x86_64
+%if %{_lib} == lib64
 CFLAGS="%{optflags} -c -DREADLINE -DSUPPORT_UTF8 -DLINUX" \
         make -f makefile_linuxLP64 %{?_smp_mflags}
-
-CFLAGS="%{optflags} -m64 -c -DREADLINE -DSUPPORT_UTF8 -DLINUX" \
-	make -f makefile_linuxLP64 %{?_smp_mflags}
-%endif
-
-%ifarch %{ix86}
-CFLAGS="%{optflags} -m32 -c -DREADLINE -DSUPPORT_UTF8 -DLINUX" \
-	make -f makefile_linux %{?_smp_mflags}
-%endif
-%ifarch %{arm}
+%else
 CFLAGS="%{optflags} -c -DREADLINE -DSUPPORT_UTF8 -DLINUX" \
         make -f makefile_linux %{?_smp_mflags}
 %endif
@@ -64,6 +55,8 @@ make install_home HOME=%{buildroot}/usr/
 
 
 %changelog
+* Tue May 29 2012 Dan Horák <dan[at]danny.cz> 10.4.3-2
+- allow build on all arches
 
 * Fri May 11 2012 Nathan Owe <ndowens at fedoraproject.org> 10.4.3-1
 - Removed a file in %%files that doesn't exist anymore


More information about the scm-commits mailing list