From 4f4e8815c6f641b057cd4cbb312dc5e82f373140 Mon Sep 17 00:00:00 2001 From: Sangjung Woo Date: Wed, 8 Jul 2020 14:55:15 +0900 Subject: [PATCH] [SPEC] Newly add devel-static packages 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 --- packaging/nnstreamer.spec | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/packaging/nnstreamer.spec b/packaging/nnstreamer.spec index 99f70e4..a801dbc 100644 --- a/packaging/nnstreamer.spec +++ b/packaging/nnstreamer.spec @@ -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 -- 2.7.4