-
Notifications
You must be signed in to change notification settings - Fork 9
/
atlas.spec.patch
39 lines (36 loc) · 1.42 KB
/
atlas.spec.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
--- atlas.spec 2016-02-03 17:11:30.000000000 +0000
+++ atlas.spec.manylinux 2016-03-08 02:42:15.878628826 +0000
@@ -1,5 +1,8 @@
%define enable_native_atlas 0
+# Fix from https://www.jethrocarr.com/2012/05/23/bad-packaging-habits/
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
Name: atlas
Version: 3.10.2
%if "%{?enable_native_atlas}" != "0"
@@ -57,7 +60,7 @@
# for ppc64le
Patch100: atlas.3.10.2-ppc64le_do_not_use_files_with_lvx.patch
-BuildRequires: gcc-gfortran, lapack-static
+BuildRequires: devtoolset-2-gcc-gfortran, lapack-static
%ifarch x86_64
Obsoletes: atlas-sse3 < 3.10
@@ -398,12 +401,12 @@
%if "%{?enable_native_atlas}" == "0"
%ifarch x86_64
if [ "$type" = "base" ]; then
-# sed -i 's#ARCH =.*#ARCH = HAMMER64SSE2#' Make.inc
- sed -i 's#ARCH =.*#ARCH = HAMMER64SSE3#' Make.inc
-# sed -i 's#-DATL_SSE3##' Make.inc
- sed -i 's#-DATL_AVX##' Make.inc
-# sed -i 's#-msse3#-msse2#' Make.inc
- sed -i 's#-mavx#-msse3#' Make.inc
+ sed -i 's#ARCH =.*#ARCH = HAMMER64SSE2#' Make.inc
+# sed -i 's#ARCH =.*#ARCH = HAMMER64SSE3#' Make.inc
+ sed -i 's#-DATL_SSE3##' Make.inc
+ sed -i 's#-DATL_AVX##' Make.inc
+ sed -i 's#-msse3#-msse2#' Make.inc
+ sed -i 's#-mavx#-msse2#' Make.inc
echo 'base makefile edited'
# sed -i 's#PMAKE = $(MAKE) .*#PMAKE = $(MAKE) -j 1#' Make.inc
elif [ "$type" = "sse3" ]; then