|
@@ -1,6 +1,6 @@
|
|
%define pkg_name openblas
|
|
%define pkg_name openblas
|
|
%define pkg_version 0.2.20
|
|
%define pkg_version 0.2.20
|
|
-%define pkg_release 1%{?_dist_release}
|
|
|
|
|
|
+%define pkg_release 2%{?_dist_release}
|
|
|
|
|
|
# Version of bundled lapack
|
|
# Version of bundled lapack
|
|
%global lapackver 3.7.0
|
|
%global lapackver 3.7.0
|
|
@@ -90,7 +90,7 @@ This package contains the library compiled with threading support.
|
|
%package serial64
|
|
%package serial64
|
|
Summary: An optimized BLAS library based on GotoBLAS2, serial version
|
|
Summary: An optimized BLAS library based on GotoBLAS2, serial version
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
-Provides: blas lapack = %{lapackver} %{libblas} %{liblapack}
|
|
|
|
|
|
+Provides: blas64 lapack64 = %{lapackver}
|
|
|
|
|
|
%description serial64
|
|
%description serial64
|
|
%{base_description}
|
|
%{base_description}
|
|
@@ -101,7 +101,7 @@ interface.
|
|
%package serial64_
|
|
%package serial64_
|
|
Summary: An optimized BLAS library based on GotoBLAS2, serial version
|
|
Summary: An optimized BLAS library based on GotoBLAS2, serial version
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
-Provides: blas lapack = %{lapackver} %{libblas} %{liblapack}
|
|
|
|
|
|
+Provides: blas64 lapack64 = %{lapackver}
|
|
|
|
|
|
%description serial64_
|
|
%description serial64_
|
|
%{base_description}
|
|
%{base_description}
|
|
@@ -113,7 +113,7 @@ interface and a symbol name suffix.
|
|
%package openmp64
|
|
%package openmp64
|
|
Summary: An optimized BLAS library based on GotoBLAS2, OpenMP version
|
|
Summary: An optimized BLAS library based on GotoBLAS2, OpenMP version
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
-Provides: blas lapack = %{lapackver} %{libblas} %{liblapack}
|
|
|
|
|
|
+Provides: blas64 lapack64 = %{lapackver}
|
|
|
|
|
|
%description openmp64
|
|
%description openmp64
|
|
%{base_description}
|
|
%{base_description}
|
|
@@ -124,7 +124,7 @@ This package contains the library compiled with OpenMP support and
|
|
%package openmp64_
|
|
%package openmp64_
|
|
Summary: An optimized BLAS library based on GotoBLAS2, OpenMP version
|
|
Summary: An optimized BLAS library based on GotoBLAS2, OpenMP version
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
-Provides: blas lapack = %{lapackver} %{libblas} %{liblapack}
|
|
|
|
|
|
+Provides: blas64 lapack64 = %{lapackver}
|
|
|
|
|
|
%description openmp64_
|
|
%description openmp64_
|
|
%{base_description}
|
|
%{base_description}
|
|
@@ -136,7 +136,7 @@ This package contains the library compiled with OpenMP support and
|
|
%package threads64
|
|
%package threads64
|
|
Summary: An optimized BLAS library based on GotoBLAS2, pthreads version
|
|
Summary: An optimized BLAS library based on GotoBLAS2, pthreads version
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
-Provides: blas lapack = %{lapackver} %{libblas} %{liblapack}
|
|
|
|
|
|
+Provides: blas64 lapack64 = %{lapackver}
|
|
|
|
|
|
%description threads64
|
|
%description threads64
|
|
%{base_description}
|
|
%{base_description}
|
|
@@ -147,7 +147,7 @@ This package contains the library compiled with threading support and
|
|
%package threads64_
|
|
%package threads64_
|
|
Summary: An optimized BLAS library based on GotoBLAS2, pthreads version
|
|
Summary: An optimized BLAS library based on GotoBLAS2, pthreads version
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
-Provides: blas lapack = %{lapackver} %{libblas} %{liblapack}
|
|
|
|
|
|
+Provides: blas64 lapack64 = %{lapackver}
|
|
|
|
|
|
%description threads64_
|
|
%description threads64_
|
|
%{base_description}
|
|
%{base_description}
|
|
@@ -163,29 +163,54 @@ Group: Development/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: %{name}-openmp = %{version}-%{release}
|
|
Requires: %{name}-openmp = %{version}-%{release}
|
|
Requires: %{name}-threads = %{version}-%{release}
|
|
Requires: %{name}-threads = %{version}-%{release}
|
|
|
|
+
|
|
|
|
+%description devel
|
|
|
|
+%{base_description}
|
|
|
|
+
|
|
|
|
+This package contains the development headers and libraries.
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+%package static
|
|
|
|
+Summary: Static version of OpenBLAS
|
|
|
|
+Group: Development/Libraries
|
|
|
|
+Requires: %{name}-devel = %{version}-%{release}
|
|
|
|
+
|
|
|
|
+%description static
|
|
|
|
+%{base_description}
|
|
|
|
+
|
|
|
|
+This package contains the static libraries.
|
|
|
|
+
|
|
|
|
+
|
|
%if %build64
|
|
%if %build64
|
|
|
|
+%package -n %{name}64-devel
|
|
|
|
+Summary: Development headers and libraries for OpenBLAS (64bit)
|
|
|
|
+Group: Development/Libraries
|
|
Requires: %{name}-openmp64 = %{version}-%{release}
|
|
Requires: %{name}-openmp64 = %{version}-%{release}
|
|
Requires: %{name}-threads64 = %{version}-%{release}
|
|
Requires: %{name}-threads64 = %{version}-%{release}
|
|
Requires: %{name}-serial64 = %{version}-%{release}
|
|
Requires: %{name}-serial64 = %{version}-%{release}
|
|
Requires: %{name}-openmp64_ = %{version}-%{release}
|
|
Requires: %{name}-openmp64_ = %{version}-%{release}
|
|
Requires: %{name}-threads64_ = %{version}-%{release}
|
|
Requires: %{name}-threads64_ = %{version}-%{release}
|
|
Requires: %{name}-serial64_ = %{version}-%{release}
|
|
Requires: %{name}-serial64_ = %{version}-%{release}
|
|
-%endif
|
|
|
|
|
|
+Requires: %{name}-devel = %{version}-%{release}
|
|
|
|
|
|
-%description devel
|
|
|
|
|
|
+%description -n %{name}64-devel
|
|
%{base_description}
|
|
%{base_description}
|
|
|
|
|
|
-This package contains the development headers and libraries.
|
|
|
|
|
|
+This package contains the development headers and libraries
|
|
|
|
+ compiled with a 64-bit interface.
|
|
|
|
|
|
-%package static
|
|
|
|
-Summary: Static version of OpenBLAS
|
|
|
|
-Group: Development/Libraries
|
|
|
|
-Requires: %{name}-devel = %{version}-%{release}
|
|
|
|
|
|
|
|
-%description static
|
|
|
|
|
|
+%package -n %{name}64-static
|
|
|
|
+Summary: Static version of OpenBLAS (64bit)
|
|
|
|
+Group: Development/Libraries
|
|
|
|
+Requires: %{name}64-devel = %{version}-%{release}
|
|
|
|
+
|
|
|
|
+%description -n %{name}64-static
|
|
%{base_description}
|
|
%{base_description}
|
|
|
|
|
|
-This package contains the static libraries.
|
|
|
|
|
|
+This package contains the static libraries
|
|
|
|
+ compiled with a 64-bit interface.
|
|
|
|
+%endif
|
|
|
|
|
|
|
|
|
|
%prep
|
|
%prep
|
|
@@ -647,7 +672,22 @@ update-alternatives \
|
|
%{_libdir}/%{name}/lapack.pc \
|
|
%{_libdir}/%{name}/lapack.pc \
|
|
--slave %{_libdir}/pkgconfig/lapacke.pc lapacke.pc \
|
|
--slave %{_libdir}/pkgconfig/lapacke.pc lapacke.pc \
|
|
%{_libdir}/%{name}/lapacke.pc
|
|
%{_libdir}/%{name}/lapacke.pc
|
|
|
|
+/sbin/ldconfig
|
|
|
|
+
|
|
|
|
+%preun devel
|
|
|
|
+if [ "$1" = "0" ]
|
|
|
|
+then
|
|
|
|
+ update-alternatives \
|
|
|
|
+ --remove libblas.so %{_libdir}/libopenblas.so
|
|
|
|
+ update-alternatives \
|
|
|
|
+ --remove liblapack.so %{_libdir}/libopenblas.so
|
|
|
|
+fi
|
|
|
|
+
|
|
|
|
+%postun devel -p /sbin/ldconfig
|
|
|
|
+
|
|
|
|
+
|
|
%if %build64
|
|
%if %build64
|
|
|
|
+%post -n %{name}64-devel
|
|
update-alternatives \
|
|
update-alternatives \
|
|
--install %{_libdir}/libblas64_.so libblas64_.so \
|
|
--install %{_libdir}/libblas64_.so libblas64_.so \
|
|
%{_libdir}/libopenblas64_.so 40 \
|
|
%{_libdir}/libopenblas64_.so 40 \
|
|
@@ -667,27 +707,21 @@ update-alternatives \
|
|
%{_libdir}/libopenblas64_.so 40 \
|
|
%{_libdir}/libopenblas64_.so 40 \
|
|
--slave %{_libdir}/pkgconfig/lapacke64.pc lapacke64.pc \
|
|
--slave %{_libdir}/pkgconfig/lapacke64.pc lapacke64.pc \
|
|
%{_libdir}/%{name}/lapacke64.pc
|
|
%{_libdir}/%{name}/lapacke64.pc
|
|
-%endif
|
|
|
|
/sbin/ldconfig
|
|
/sbin/ldconfig
|
|
|
|
|
|
-%preun devel
|
|
|
|
|
|
+%preun -n %{name}64-devel
|
|
if [ "$1" = "0" ]
|
|
if [ "$1" = "0" ]
|
|
then
|
|
then
|
|
- update-alternatives \
|
|
|
|
- --remove libblas.so %{_libdir}/libopenblas.so
|
|
|
|
- update-alternatives \
|
|
|
|
- --remove liblapack.so %{_libdir}/libopenblas.so
|
|
|
|
-%if %build64
|
|
|
|
update-alternatives \
|
|
update-alternatives \
|
|
--remove libblas64_.so %{_libdir}/libopenblas64_.so
|
|
--remove libblas64_.so %{_libdir}/libopenblas64_.so
|
|
update-alternatives \
|
|
update-alternatives \
|
|
--remove liblapack64_.so %{_libdir}/libopenblas64_.so
|
|
--remove liblapack64_.so %{_libdir}/libopenblas64_.so
|
|
update-alternatives \
|
|
update-alternatives \
|
|
--remove liblapacke64_.so %{_libdir}/libopenblas64_.so
|
|
--remove liblapacke64_.so %{_libdir}/libopenblas64_.so
|
|
-%endif
|
|
|
|
fi
|
|
fi
|
|
|
|
|
|
-%postun devel -p /sbin/ldconfig
|
|
|
|
|
|
+%postun -n %{name}64-devel -p /sbin/ldconfig
|
|
|
|
+%endif
|
|
|
|
|
|
|
|
|
|
%post static
|
|
%post static
|
|
@@ -701,7 +735,19 @@ update-alternatives \
|
|
%{_libdir}/libopenblas.a 40 \
|
|
%{_libdir}/libopenblas.a 40 \
|
|
--slave %{_libdir}/liblapacke.a liblapacke.a \
|
|
--slave %{_libdir}/liblapacke.a liblapacke.a \
|
|
%{_libdir}/libopenblas.a
|
|
%{_libdir}/libopenblas.a
|
|
|
|
+
|
|
|
|
+%preun static
|
|
|
|
+if [ "$1" = "0" ]
|
|
|
|
+then
|
|
|
|
+ update-alternatives \
|
|
|
|
+ --remove libblas.a %{_libdir}/libopenblas.a
|
|
|
|
+ update-alternatives \
|
|
|
|
+ --remove liblapack.a %{_libdir}/libopenblas.a
|
|
|
|
+fi
|
|
|
|
+
|
|
|
|
+
|
|
%if %build64
|
|
%if %build64
|
|
|
|
+%post -n %{name}64-static
|
|
update-alternatives \
|
|
update-alternatives \
|
|
--install %{_libdir}/libblas64_.a libblas64_.a \
|
|
--install %{_libdir}/libblas64_.a libblas64_.a \
|
|
%{_libdir}/libopenblas64_.a 40 \
|
|
%{_libdir}/libopenblas64_.a 40 \
|
|
@@ -713,24 +759,18 @@ update-alternatives \
|
|
update-alternatives \
|
|
update-alternatives \
|
|
--install %{_libdir}/liblapacke64_.a liblapacke64_.a \
|
|
--install %{_libdir}/liblapacke64_.a liblapacke64_.a \
|
|
%{_libdir}/libopenblas64_.a 40
|
|
%{_libdir}/libopenblas64_.a 40
|
|
-%endif
|
|
|
|
|
|
|
|
-%preun static
|
|
|
|
|
|
+%preun -n %{name}64-static
|
|
if [ "$1" = "0" ]
|
|
if [ "$1" = "0" ]
|
|
then
|
|
then
|
|
- update-alternatives \
|
|
|
|
- --remove libblas.a %{_libdir}/libopenblas.a
|
|
|
|
- update-alternatives \
|
|
|
|
- --remove liblapack.a %{_libdir}/libopenblas.a
|
|
|
|
-%if %build64
|
|
|
|
update-alternatives \
|
|
update-alternatives \
|
|
--remove libblas64_.a %{_libdir}/libopenblas64_.a
|
|
--remove libblas64_.a %{_libdir}/libopenblas64_.a
|
|
update-alternatives \
|
|
update-alternatives \
|
|
--remove liblapack64_.a %{_libdir}/libopenblas64_.a
|
|
--remove liblapack64_.a %{_libdir}/libopenblas64_.a
|
|
update-alternatives \
|
|
update-alternatives \
|
|
--remove liblapacke64_.a %{_libdir}/libopenblas64_.a
|
|
--remove liblapacke64_.a %{_libdir}/libopenblas64_.a
|
|
-%endif
|
|
|
|
fi
|
|
fi
|
|
|
|
+%endif
|
|
|
|
|
|
|
|
|
|
%post Rblas -p /sbin/ldconfig
|
|
%post Rblas -p /sbin/ldconfig
|
|
@@ -788,34 +828,43 @@ rm -rf %{buildroot}
|
|
%{_libdir}/lib%{name}p64_.so.*
|
|
%{_libdir}/lib%{name}p64_.so.*
|
|
%endif
|
|
%endif
|
|
|
|
|
|
|
|
+%files Rblas
|
|
|
|
+%dir %{_libdir}/R/lib
|
|
|
|
+%{_libdir}/R/lib/libRblas.so
|
|
|
|
+
|
|
%files devel
|
|
%files devel
|
|
%{_includedir}/%{name}/
|
|
%{_includedir}/%{name}/
|
|
%{_libdir}/lib%{name}.so
|
|
%{_libdir}/lib%{name}.so
|
|
%{_libdir}/lib%{name}o.so
|
|
%{_libdir}/lib%{name}o.so
|
|
%{_libdir}/lib%{name}p.so
|
|
%{_libdir}/lib%{name}p.so
|
|
|
|
+%{_libdir}/pkgconfig/openblas.pc
|
|
|
|
+%{_libdir}/pkgconfig/openblaso.pc
|
|
|
|
+%{_libdir}/pkgconfig/openblasp.pc
|
|
|
|
+%dir %{_libdir}/%{name}
|
|
|
|
+%{_libdir}/%{name}/blas.pc
|
|
|
|
+%{_libdir}/%{name}/cblas.pc
|
|
|
|
+%{_libdir}/%{name}/lapack.pc
|
|
|
|
+%{_libdir}/%{name}/lapacke.pc
|
|
|
|
+
|
|
|
|
+%files static
|
|
|
|
+%{_libdir}/lib%{name}.a
|
|
|
|
+%{_libdir}/lib%{name}o.a
|
|
|
|
+%{_libdir}/lib%{name}p.a
|
|
|
|
|
|
%if %build64
|
|
%if %build64
|
|
|
|
+%files -n %{name}64-devel
|
|
%{_libdir}/lib%{name}64.so
|
|
%{_libdir}/lib%{name}64.so
|
|
%{_libdir}/lib%{name}o64.so
|
|
%{_libdir}/lib%{name}o64.so
|
|
%{_libdir}/lib%{name}p64.so
|
|
%{_libdir}/lib%{name}p64.so
|
|
%{_libdir}/lib%{name}64_.so
|
|
%{_libdir}/lib%{name}64_.so
|
|
%{_libdir}/lib%{name}o64_.so
|
|
%{_libdir}/lib%{name}o64_.so
|
|
%{_libdir}/lib%{name}p64_.so
|
|
%{_libdir}/lib%{name}p64_.so
|
|
-%endif
|
|
|
|
-%{_libdir}/pkgconfig/openblas*.pc
|
|
|
|
|
|
+%{_libdir}/pkgconfig/*64.pc
|
|
|
|
+%{_libdir}/pkgconfig/*64_.pc
|
|
%dir %{_libdir}/%{name}
|
|
%dir %{_libdir}/%{name}
|
|
-%{_libdir}/%{name}/*.pc
|
|
|
|
-
|
|
|
|
-%files Rblas
|
|
|
|
-%dir %{_libdir}/R/lib
|
|
|
|
-%{_libdir}/R/lib/libRblas.so
|
|
|
|
-
|
|
|
|
-%files static
|
|
|
|
-%{_libdir}/lib%{name}.a
|
|
|
|
-%{_libdir}/lib%{name}o.a
|
|
|
|
-%{_libdir}/lib%{name}p.a
|
|
|
|
|
|
+%{_libdir}/%{name}/*64*.pc
|
|
|
|
|
|
-%if %build64
|
|
|
|
|
|
+%files -n %{name}64-static
|
|
%{_libdir}/lib%{name}64.a
|
|
%{_libdir}/lib%{name}64.a
|
|
%{_libdir}/lib%{name}o64.a
|
|
%{_libdir}/lib%{name}o64.a
|
|
%{_libdir}/lib%{name}p64.a
|
|
%{_libdir}/lib%{name}p64.a
|
|
@@ -826,6 +875,10 @@ rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Mon Jul 02 2018 Toshiaki Ara <ara_t@384.jp> 0.2.20-2
|
|
|
|
+- divide subpackages: openblas64-devel openblas64-static
|
|
|
|
+- fix wrong Provides
|
|
|
|
+
|
|
* Wed Jun 27 2018 Toshiaki Ara <ara_t@384.jp> 0.2.20-1
|
|
* Wed Jun 27 2018 Toshiaki Ara <ara_t@384.jp> 0.2.20-1
|
|
- initial build for Vine Linux (only x86_64 and %%{ix86})
|
|
- initial build for Vine Linux (only x86_64 and %%{ix86})
|
|
|
|
|