Package openblas: Specfile
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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 | %define _unpackaged_files_terminate_build 1 # openblas does not build with LTO %global optflags_lto %nil %def_without lapack %ifnarch %e2k loongarch64 # XXX: loongarch64: LOONGSON3R5 code uses LSA/LSAX, and open source toolchains # does NOT support LSA yet. %def_enable dynamic_arch %endif %ifarch armh %define oblas_target ARMV7 %endif %ifarch aarch64 %define oblas_target ARMV8 %endif %ifarch riscv64 %define oblas_target RISCV64_GENERIC %endif %ifarch %mips %define oblas_target MIPS32_GENERIC %endif %ifarch loongarch64 %define oblas_target LOONGSONGENERIC %endif Name: openblas Version: 0.3.27 Release: alt1 Summary: Optimized BLAS library based on GotoBLAS2 1.13 License: BSD Group: Sciences/Mathematics Url: https://github.com/xianyi/OpenBLAS Vcs: https://github.com/xianyi/OpenBLAS Source: %name-%version.tar Patch0: %name-%version-alt.patch BuildRequires: gcc-fortran %ifarch ppc64le BuildRequires: libgomp-devel %endif %description GotoBLAS2 has been released by the Texas Advanced Computing Center as open source software under the BSD license. This product is no longer under active development by TACC, but it is being made available to the community to use, study, and extend. GotoBLAS2 uses new algorithms and memory techniques for optimal performance of the BLAS routines. The changes in this final version target new architecture features in microprocessors and interprocessor communication techniques; also, NUMA controls enhance multi-threaded execution of BLAS routines on node. OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version. OpenBLAS is an open source project supported by Lab of Parallel Software and Computational Science, ISCAS. %package -n lib%name Summary: Shared library of GotoBLAS2 Group: System/Libraries %description -n lib%name GotoBLAS2 has been released by the Texas Advanced Computing Center as open source software under the BSD license. This product is no longer under active development by TACC, but it is being made available to the community to use, study, and extend. GotoBLAS2 uses new algorithms and memory techniques for optimal performance of the BLAS routines. The changes in this final version target new architecture features in microprocessors and interprocessor communication techniques; also, NUMA controls enhance multi-threaded execution of BLAS routines on node. OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version. OpenBLAS is an open source project supported by Lab of Parallel Software and Computational Science, ISCAS. This package contains shared library of OpenBLAS. %package -n lib%name-devel Summary: Development files of GotoBLAS2 Group: Development/Other Requires: lib%name = %version-%release %description -n lib%name-devel GotoBLAS2 has been released by the Texas Advanced Computing Center as open source software under the BSD license. This product is no longer under active development by TACC, but it is being made available to the community to use, study, and extend. GotoBLAS2 uses new algorithms and memory techniques for optimal performance of the BLAS routines. The changes in this final version target new architecture features in microprocessors and interprocessor communication techniques; also, NUMA controls enhance multi-threaded execution of BLAS routines on node. OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version. OpenBLAS is an open source project supported by Lab of Parallel Software and Computational Science, ISCAS. This package contains development files of OpenBLAS. %prep %setup %autopatch -p1 %build FLAGS="%optflags %optflags_shared" # FC/CC - path to compiler # F_COMPILER/C_COMPILER - compiler type (GCC, CLANG, GFORTRAN, etc.) # COMMON_OPT - compiler options FC="gfortran" F77="g77" CC="gcc" \ F_COMPILER="GFORTRAN" C_COMPILER="GCC" \ %make_build SMP=1 MAKE_NB_JOBS=${NPROCS:-%__nprocs} \ %if "%_lib" == "lib64" BINARY=64 \ BINARY64=1 \ %else BINARY=32 \ %endif %ifarch %ix86 STATIC_ALLOCATION=1 \ %endif %{?oblas_target:TARGET=%oblas_target} \ COMMON_OPT="$FLAGS" \ %{?_enable_dynamic_arch:DYNAMIC_ARCH=1} \ ALLOC_HUGETLB=1 \ %{?_without_lapack:NO_LAPACK=1} \ %{nil} %install %makeinstall_std \ PREFIX=%_prefix \ OPENBLAS_LIBRARY_DIR=%_libdir \ OPENBLAS_INCLUDE_DIR=%_includedir/openblas \ %{?oblas_target:TARGET=%oblas_target} \ %nil %check %make_build tests \ MAKE_NB_JOBS=${NPROCS:-%__nprocs} \ %{?oblas_target:TARGET=%oblas_target} \ %{?_enable_dynamic_arch:DYNAMIC_ARCH=1} \ %{?_without_lapack:NO_LAPACK=1} \ %{nil} %files -n lib%name %doc README* *.txt %_libdir/*-r*.so %_libdir/*.so.* %files -n lib%name-devel %exclude %_libdir/*-r*.so %_libdir/*.so %_pkgconfigdir/openblas.pc %_includedir/openblas %dir %_libdir/cmake/%name %_libdir/cmake/%name/*.cmake %exclude %_libdir/*.a %changelog * Fri May 17 2024 Stanislav Levin <slev@altlinux.org> 0.3.27-alt1 - 0.3.26 -> 0.3.27. * Fri Feb 02 2024 Stanislav Levin <slev@altlinux.org> 0.3.26-alt1 - 0.3.23 -> 0.3.26. * Mon Dec 04 2023 Alexey Sheplyakov <asheplyakov@altlinux.org> 0.3.23-alt2 - NMU: fixed FTBFS on LoongArch * Fri Jul 28 2023 Ivan A. Melnikov <iv@altlinux.org> 0.3.23-alt1.2 - NMU: spec: fix FTBFS on riscv64 by passing TARGET to make install if TARGET is specified * Tue Jun 20 2023 Ilya Kurdyukov <ilyakurdyukov@altlinux.org> 0.3.23-alt1.1 - e2k patch disabled (got to upstream) * Wed Jun 14 2023 Stanislav Levin <slev@altlinux.org> 0.3.23-alt1 - 0.3.19 -> 0.3.23. * Mon Apr 17 2023 Michael Shigorin <mike@altlinux.org> 0.3.19-alt1.2 - spec fixes mentioned by slazav@ back in 2019 - added cmake files * Thu Jan 20 2022 Ilya Kurdyukov <ilyakurdyukov@altlinux.org> 0.3.19-alt1.1 - e2k patch update * Mon Dec 20 2021 Ivan A. Melnikov <iv@altlinux.org> 0.3.19-alt1 - Version 0.3.19 - %%mips support * Thu Aug 26 2021 Ivan A. Melnikov <iv@altlinux.org> 0.3.17-alt1 - Version 0.3.17 - riscv64 support - disable LTO * Sat Jun 05 2021 Ilya Kurdyukov <ilyakurdyukov@altlinux.org> 0.3.9-alt2 - fixed passing of compiler options, added check - added patch with e2k architecture support (no optimizations) * Sat Apr 25 2020 Kirill Maslinsky <kirill@altlinux.org> 0.3.9-alt1 - Version 0.3.9 * Wed May 15 2019 Gleb F-Malinovskiy <glebfm@altlinux.org> 0.2.20-alt2 - Added BR: libgomp-devel on ppc64le architecture. * Tue May 22 2018 Sergey Bolshakov <sbolshakov@altlinux.ru> 0.2.20-alt1 - 0.2.20 released * Mon Jun 01 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.2.14-alt1.git20150324 - Version 0.2.14 * Mon Jul 07 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.2.9-alt2.git20140629 - Version 0.2.9 * Mon Jun 09 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.2.9-alt1.rc2.git20140306 - Version 0.2.9.rc2 * Fri Nov 15 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.2.8-alt1.git20130801 - Version 0.2.8 * Tue Apr 30 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.2.6-alt2.git20130302 - Fixed cblas.h * Sun Apr 28 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.2.6-alt1.git20130302 - Version 0.2.6 * Thu Feb 07 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.2.5-alt1.git20121215 - New snaphsot * Tue Nov 27 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.2.5-alt1.git20121127 - Version 0.2.5 * Sat Aug 11 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.2.2-alt1 - Initial build for Sisyphus |