[SPEC] Newly add devel-static packages accepted/tizen/unified/20200710.114122 submit/tizen/20200709.045257
authorSangjung Woo <sangjung.woo@samsung.com>
Wed, 8 Jul 2020 05:55:15 +0000 (14:55 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Thu, 9 Jul 2020 04:48:43 +0000 (13:48 +0900)
To avoid the license conflict issue by an automatic tool, this patch
newly adds the `capi-nnstreamer-devel-static` and `nnstreamer-devel-static`
packages which only contain static libraries. `devel` packages only have
headers and package config as below.

$ rpm -qlp capi-nnstreamer-devel-static-1.5.3-0.armv7l.rpm
/usr/lib/libcapi-nnstreamer.a

$ rpm -qlp capi-nnstreamer-devel-1.5.3-0.armv7l.rpm
/usr/include/nnstreamer/nnstreamer-single.h
/usr/include/nnstreamer/nnstreamer.h
/usr/lib/pkgconfig/capi-nnstreamer.pc

$ rpm -qlp nnstreamer-devel-static-1.5.3-0.armv7l.rpm
/usr/lib/libnnstreamer-tizen-sensor.a
/usr/lib/libnnstreamer.a
/usr/lib/libnnstreamer_decoder_bounding_boxes.a
/usr/lib/libnnstreamer_decoder_direct_video.a
/usr/lib/libnnstreamer_decoder_image_labeling.a
/usr/lib/libnnstreamer_decoder_image_segment.a
/usr/lib/libnnstreamer_decoder_pose_estimation.a
/usr/lib/libnnstreamer_filter_movidius-ncsdk2.a
/usr/lib/libnnstreamer_filter_nnfw.a
/usr/lib/libnnstreamer_filter_python2.a
/usr/lib/libnnstreamer_filter_tensorflow-lite.a

Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
packaging/nnstreamer.spec

index 99f70e4..a801dbc 100644 (file)
@@ -278,6 +278,12 @@ Requires:  gstreamer-devel
 Development package for custom tensor operator developers (tensor_filter/custom).
 This contains corresponding header files and .pc pkgconfig file.
 
+%package devel-static
+Summary:    Static library for nnstreamer-devel package
+Requires:   devel = %{version}-%{release}
+%description devel-static
+Static library package of nnstreamer-devel.
+
 %package custom-filter-example
 Summary:       NNStreamer example custom plugins and test plugins
 Requires:      nnstreamer = %{version}-%{release}
@@ -322,6 +328,13 @@ Requires:  capi-ml-common-devel
 %description -n capi-nnstreamer-devel
 Developmental kit for Tizen Native NNStreamer API.
 
+%package -n capi-nnstreamer-devel-static
+Summary:    Static library for Tizen Native API
+Group:      Multimedia/Framework
+Requires:   capi-nnstreamer-devel = %{version}-%{release}
+%description -n capi-nnstreamer-devel-static
+Static library of capi-nnstreamer-devel package.
+
 %package -n capi-ml-common-devel
 Summary:       Common headers for Tizen Machine Learning API set.
 Group:         Multimedia/Framework
@@ -646,11 +659,13 @@ cp -r result %{buildroot}%{_datadir}/nnstreamer/unittest/
 %{_includedir}/nnstreamer/nnstreamer_version.h
 %{_includedir}/nnstreamer/tensor_filter_cpp.hh
 %{_includedir}/nnstreamer/nnstreamer_cppplugin_api_filter.hh
-%{_libdir}/*.a
-%exclude %{_libdir}/libcapi*.a
 %{_libdir}/pkgconfig/nnstreamer.pc
 %{_libdir}/pkgconfig/nnstreamer-cpp.pc
 
+%files devel-static
+%{_libdir}/*.a
+%exclude %{_libdir}/libcapi*.a
+
 %if 0%{?testcoverage}
 %files unittest-coverage
 %{_datadir}/nnstreamer/unittest/*
@@ -673,6 +688,8 @@ cp -r result %{buildroot}%{_datadir}/nnstreamer/unittest/
 %{_includedir}/nnstreamer/nnstreamer.h
 %{_includedir}/nnstreamer/nnstreamer-single.h
 %{_libdir}/pkgconfig/capi-nnstreamer.pc
+
+%files -n capi-nnstreamer-devel-static
 %{_libdir}/libcapi-nnstreamer.a
 
 %files -n capi-ml-common-devel