summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSangjung woo <sangjung.woo@samsung.com>2017-09-28 13:58:54 +0900
committerInki Dae <inki.dae@samsung.com>2018-03-13 16:04:25 +0900
commitfb77de395f4020331fbb68816033b035bd204eac (patch)
treec5097f718bdda8d84e59cd7587378ae90c7998bd
parentff2433f306c8b51204b875f5d5ef2c09002fcdfa (diff)
downloadlapack-accepted/tizen_7.0_unified.tar.gz
lapack-accepted/tizen_7.0_unified.tar.bz2
lapack-accepted/tizen_7.0_unified.zip
* Enable cblas package * Remove unnecessary description Signed-off-by: Sangjung woo <sangjung.woo@samsung.com> Corrected subject format. Signed-off-by: Inki Dae <inki.dae@samsung.com>
-rw-r--r--packaging/lapack.spec40
1 files changed, 32 insertions, 8 deletions
diff --git a/packaging/lapack.spec b/packaging/lapack.spec
index a96763e6..e31f9333 100644
--- a/packaging/lapack.spec
+++ b/packaging/lapack.spec
@@ -45,7 +45,6 @@ Summary: LAPACKE development files
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.
@@ -63,10 +62,6 @@ linear algebra. BLAS is fast and well-tested, was written in FORTRAN 77
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
@@ -75,6 +70,23 @@ Requires: blas = %{version}-%{release}
%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
@@ -108,13 +120,16 @@ linear algebra.
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
@@ -152,7 +167,7 @@ rm -rf %{buildroot}
%files -n lapacke-devel
%defattr(-,root,root,-)
%{_libdir}/liblapacke.so
-%{_includedir}/*.h
+%{_includedir}/lapacke*.h
%{_libdir}/pkgconfig/lapacke.pc
%{_libdir}/pkgconfig/lapack.pc
@@ -164,6 +179,15 @@ rm -rf %{buildroot}
%{_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