[Spec] First draft for SNPE-devel dummy package accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified accepted/tizen_unified tizen tizen_6.5 tizen_7.0 tizen_7.0_hotfix tizen_8.0 accepted/tizen/6.5/unified/20211220.062704 accepted/tizen/7.0/unified/20221110.061938 accepted/tizen/7.0/unified/hotfix/20221116.104448 accepted/tizen/8.0/unified/20231005.092509 accepted/tizen/unified/20211111.065955 submit/tizen/20211111.062301 submit/tizen_6.5/20211220.051935 submit/tizen_6.5/20211220.054304 submit/tizen_6.5/20211220.135421 tizen_7.0_m2_release tizen_8.0_m2_release
authorSangjung Woo <sangjung.woo@samsung.com>
Thu, 11 Nov 2021 04:34:43 +0000 (13:34 +0900)
committerSangjung Woo <sangjung.woo@samsung.com>
Thu, 11 Nov 2021 06:03:12 +0000 (15:03 +0900)
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 <sangjung.woo@samsung.com>
.gitignore [new file with mode: 0644]
CMakeLists.txt [new file with mode: 0644]
packaging/snpe.spec [new file with mode: 0644]
snpe-dummy.pc.in [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..77e3a7e
--- /dev/null
@@ -0,0 +1,2 @@
+# vi files
+*.in~
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644 (file)
index 0000000..3d2749e
--- /dev/null
@@ -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 (file)
index 0000000..fec0696
--- /dev/null
@@ -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 <sangjung.woo@samsung.com>
+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 (file)
index 0000000..912e6eb
--- /dev/null
@@ -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}