packaging: Enable cblas package accepted/tizen_5.0_unified accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified tizen_5.0 tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix tizen_6.0 tizen_6.0_hotfix tizen_6.5 tizen_7.0 tizen_7.0_hotfix accepted/tizen/5.0/unified/20181102.024111 accepted/tizen/5.5/unified/20191031.010636 accepted/tizen/5.5/unified/mobile/hotfix/20201027.073410 accepted/tizen/5.5/unified/wearable/hotfix/20201027.095741 accepted/tizen/6.0/unified/20201030.105429 accepted/tizen/6.0/unified/hotfix/20201102.234238 accepted/tizen/6.0/unified/hotfix/20201103.045529 accepted/tizen/6.5/unified/20211029.013210 accepted/tizen/7.0/unified/20221110.061828 accepted/tizen/7.0/unified/hotfix/20221116.110924 accepted/tizen/8.0/unified/20231005.095011 accepted/tizen/unified/20180314.062013 submit/tizen/20180313.231549 submit/tizen_5.0/20181101.000006 submit/tizen_5.5/20191031.000007 submit/tizen_5.5_mobile_hotfix/20201026.185107 submit/tizen_5.5_wearable_hotfix/20201026.184307 submit/tizen_6.0/20201029.205502 submit/tizen_6.0_hotfix/20201102.192902 submit/tizen_6.0_hotfix/20201103.115102 submit/tizen_6.5/20211028.163501 tizen_5.5.m2_release tizen_6.0.m2_release tizen_6.5.m2_release tizen_7.0_m2_release tizen_8.0_m2_release
authorSangjung woo <sangjung.woo@samsung.com>
Thu, 28 Sep 2017 04:58:54 +0000 (13:58 +0900)
committerInki Dae <inki.dae@samsung.com>
Tue, 13 Mar 2018 07:04:25 +0000 (16:04 +0900)
* 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>
packaging/lapack.spec

index a96763e..e31f933 100644 (file)
@@ -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