From 3df01f4fea7f7c3569be554be8d1e691bc1ce146 Mon Sep 17 00:00:00 2001 From: Sangjung Woo Date: Thu, 11 Nov 2021 13:34:43 +0900 Subject: [PATCH] [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 --- .gitignore | 2 ++ CMakeLists.txt | 7 +++++++ packaging/snpe.spec | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ snpe-dummy.pc.in | 9 +++++++++ 4 files changed, 67 insertions(+) create mode 100644 .gitignore create mode 100644 CMakeLists.txt create mode 100644 packaging/snpe.spec create mode 100644 snpe-dummy.pc.in 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} -- 2.7.4