From: Sangjung Woo Date: Thu, 11 Nov 2021 04:34:43 +0000 (+0900) Subject: [Spec] First draft for SNPE-devel dummy package X-Git-Tag: submit/tizen/20211111.062301^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen;p=platform%2Fadaptation%2Fnpu%2Fsnpe.git [Spec] First draft for SNPE-devel dummy package The Snapdragon Neural Processing Engine (SNPE) is a Qualcomm Snapdragon software accelerated runtime for the execution of deep neural networks. Because of the license issue, the header and binary files of SNPE cannot be opened in public. To support the NNStreamer filter for SNPE on both In-House build infra and those of the public, this repo generates a snpe-devel.rpm package, which contains the snpe-dummy.pc file. In the case of the dummy SNPE package, nnstreamer-snpe rpm is created but contains no files. Signed-off-by: Sangjung Woo --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..77e3a7e --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# vi files +*.in~ diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..3d2749e --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,7 @@ +CMAKE_MINIMUM_REQUIRED(VERSION 2.6) +PROJECT(snpe) + +# pkgconfig file +CONFIGURE_FILE(snpe-dummy.pc.in snpe-dummy.pc @ONLY) +INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/snpe-dummy.pc + DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) diff --git a/packaging/snpe.spec b/packaging/snpe.spec new file mode 100644 index 0000000..fec0696 --- /dev/null +++ b/packaging/snpe.spec @@ -0,0 +1,49 @@ +%define debug_package %{nil} + +Name: snpe +Summary: snpe dummy package +Version: 1.53.2 +Release: 1 +Group: Machine Learning/ML Framework +Packager: Sangjung Woo +License: BSD-2-Clause +ExclusiveArch: %{arm} aarch64 +Source0: %{name}-%{version}.tar.gz + +BuildRequires: cmake + +%description +The Snapdragon Neural Processing Engine (SNPE) is a Qualcomm Snapdragon software +accelerated runtime for the execution of deep neural networks. Because of +the license issue, the header and binary files of SNPE cannot be opened in public. + +To support the NNStreamer filter for SNPE on both In-House build infra and those +of the public, this repo generates a snpe-devel.rpm package, which contains +the snpe-dummy.pc file. In the case of the dummy SNPE package, nnstreamer-snpe rpm +is created but contains no files. + +%prep +%setup -q + +%build +mkdir -p build +pushd build +%cmake .. \ + -DCMAKE_INSTALL_PREFIX=%{_prefix} +make %{?jobs:-j%jobs} +popd + +%install +rm -rf %{buildroot} +pushd build +%make_install +popd + +%package -n snpe-devel +Summary: development package for snpe-dummy +%description -n snpe-devel +This package in public Tizen.org is DUMMY (no contents) to keep the build system +running w/o actual SNPE packages. + +%files -n snpe-devel +%{_libdir}/pkgconfig/snpe-dummy.pc diff --git a/snpe-dummy.pc.in b/snpe-dummy.pc.in new file mode 100644 index 0000000..912e6eb --- /dev/null +++ b/snpe-dummy.pc.in @@ -0,0 +1,9 @@ +libdir=@LIB_INSTALL_DIR@ +includedir=@INCLUDE_INSTALL_DIR@ + +Name: snpe-dummy +Description: snpe-dummy is DUMMY (no contents) to keep the build system running w/o actual SNPE packages. +Version: @VERSION@ +Requires: +Libs: -L${libdir} +Cflags: -I${includedir}