libblas3
  -/usr/lib(64)?/libblas.so.3
  requires "update-alternatives"
  postin "ln -sf /etc/alternatives/libblas.so.3_<targettype> /usr/%_lib/libblas.so.3"
  postin "/usr/sbin/update-alternatives --force --install /usr/%_lib/libblas.so.3 libblas.so.3_<targettype> /usr/%_lib/blas/libblas.so.3  50"
  postun "/usr/sbin/update-alternatives --remove libblas.so.3_<targettype> /usr/%_lib/blas/libblas.so.3"

libcblas3
  -/usr/lib(64)?/libcblas.so.3
  requires "update-alternatives"
  postin "ln -sf /etc/alternatives/libcblas.so.3_<targettype> /usr/%_lib/libcblas.so.3"
  postin "/usr/sbin/update-alternatives --force --install /usr/%_lib/libcblas.so.3 libcblas.so.3_<targettype> /usr/%_lib/blas/libcblas.so.3  50"
  postun "/usr/sbin/update-alternatives --remove libcblas.so.3_<targettype> /usr/%_lib/blas/libcblas.so.3"

liblapack3
  -/usr/lib(64)?/liblapack.so.3
  requires "update-alternatives"
  postin "ln -sf /etc/alternatives/liblapack.so.3_<targettype> /usr/%_lib/liblapack.so.3"
  postin "/usr/sbin/update-alternatives --force --install /usr/%_lib/liblapack.so.3 liblapack.so.3_<targettype> /usr/%_lib/lapack/liblapack.so.3  50"
  postun "/usr/sbin/update-alternatives --remove liblapack.so.3_<targettype> /usr/%_lib/lapack/liblapack.so.3"

liblapacke3
  -/usr/lib(64)?/liblapacke.so.3
  requires "update-alternatives"
  postin "ln -sf /etc/alternatives/liblapacke.so.3_<targettype> /usr/%_lib/liblapacke.so.3"
  postin "/usr/sbin/update-alternatives --force --install /usr/%_lib/liblapacke.so.3 liblapacke.so.3_<targettype> /usr/%_lib/lapack/liblapacke.so.3  50"
  postun "/usr/sbin/update-alternatives --remove liblapacke.so.3_<targettype> /usr/%_lib/lapack/liblapacke.so.3"

# Do not package pkgconfig files for devel packages as they lead to "choice"
# issues between -devel and -32bit-devel when using pkgconfig(FOO) based deps
blas-devel
  -/usr/lib(64)?/pkgconfig/blas.pc
  requires "blas-devel-<targettype> = <version>"
  requires "libblas3-<targettype> = <version>"

cblas-devel
  -/usr/lib(64)?/pkgconfig/cblas.pc
  requires "blas-devel-<targettype> = <version>"
  requires "libcblas3-<targettype> = <version>"

lapack-devel
  -/usr/lib(64)?/pkgconfig/lapack.pc
  requires "blas-devel-<targettype> = <version>"
  requires "liblapack3-<targettype> = <version>"

lapacke-devel
  -/usr/lib(64)?/pkgconfig/lapacke.pc
  requires "lapack-devel-<targettype> = <version>"
  requires "liblapacke3-<targettype> = <version>"
