Group: Development/Libraries/C and C++
Requires: liblapacke3 = %{version}
Provides: lapacke = %{version}
-Provides: lapacke-devel-static = %{version}
%description -n lapacke-devel
LAPACKE headers and development files.
and built with gfortran. BLAS manual pages are available in the
blas-man package.
-%description -n blas
-BLAS (Basic Linear Algebra Subprograms) is a standard library which
-provides a number of basic algorithms for numerical algebra.
-
%package -n blas-devel
Summary: BLAS development libraries
Group: Development/Libraries
%description -n blas-devel
BLAS development libraries (shared).
+%package -n cblas
+License: Public Domain, Freeware
+Summary: A standard C language APIs for BLAS
+Group: Productivity/Scientific/Math
+
+%description -n cblas
+This library provides a native C interface to BLAS routines available
+to facilitate usage of BLAS functionality for C programmers.
+
+%package -n cblas-devel
+Summary: BLAS development libraries
+Group: Development/Libraries
+Requires: cblas = %{version}-%{release}
+
+%description -n cblas-devel
+CBLAS development libraries (shared).
+
%package -n liblapack3
License: Public Domain, Freeware
Summary: LAPACK Shared Library
mkdir -p build
cd build
-%cmake .. -DLAPACKE_WITH_TMG=YES -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_INSTALL_LIBDIR=%{_libdir}
+%cmake .. -DLAPACKE_WITH_TMG=YES \
+ -DCBLAS=ON \
+ -DCMAKE_INSTALL_PREFIX=%{_prefix} \
+ -DCMAKE_INSTALL_LIBDIR=%{_libdir}
make %{?_smp_mflags}
%install
cd build
-make DESTDIR=%{buildroot} install
+%make_install
# Remove unnecessary files
rm -rf %{buildroot}%{_libdir}/cmake
%files -n lapacke-devel
%defattr(-,root,root,-)
%{_libdir}/liblapacke.so
-%{_includedir}/*.h
+%{_includedir}/lapacke*.h
%{_libdir}/pkgconfig/lapacke.pc
%{_libdir}/pkgconfig/lapack.pc
%{_libdir}/libblas.so
%{_libdir}/pkgconfig/blas.pc
+%files -n cblas
+%defattr(-,root,root)
+%{_libdir}/libcblas.so.*
+
+%files -n cblas-devel
+%{_includedir}/cblas*.h
+%{_libdir}/libcblas.so
+%{_libdir}/pkgconfig/cblas.pc
+
%files -n libblas3
%defattr(-,root,root)
%{_libdir}/libblas.so.%version