summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-01-25 07:45:06 +0000
committerCoprDistGit <infra@openeuler.org>2024-01-25 07:45:06 +0000
commitea794ffeb6b7eaa5373b393d148aeeafe307fb5b (patch)
tree4019b96eb5cb24ade91773ea1febaaa6b107ab21
parent799109a398faa38f0e9518df89cabb564a196d81 (diff)
automatic import of ncnn
-rw-r--r--ncnn.spec22
1 files changed, 3 insertions, 19 deletions
diff --git a/ncnn.spec b/ncnn.spec
index 1d257f9..dbf7b7c 100644
--- a/ncnn.spec
+++ b/ncnn.spec
@@ -1,12 +1,3 @@
-%global pkgvers 1
-%global scdate0 20240112
-%global schash0 28078b7ad6ad2a43c94b89e49d404d055e5d3796
-%global branch0 master
-%global source0 https://github.com/Tencent/ncnn.git
-
-%global sshort0 %{expand:%%{lua:print(('%{schash0}'):sub(1,8))}}
-# Use it like: git%{sshort0}
-
%undefine _annotated_build
%global _lto_cflags %{nil}
%global __cmake_in_source_build 1
@@ -23,15 +14,13 @@
%global vcu_maj 12
%global vcu_min 3
-%global gpu_target_arch "3.5+PTX;5.2;6.1;7.5;8.6"
Name: ncnn
Version: 20240102
-Release: %{scdate0}.%{pkgvers}
+Release: 1
Summary: Neural network inference computing framework optimized for mobile
License: BSD
Source0: %{version}.tar.gz
-
URL: https://github.com/Tencent/ncnn
BuildRequires: git doxygen cmake ocl-icd-devel
@@ -71,13 +60,7 @@ This package contains python files for %{name}.
%prep
-#setup -T -c -n %{name}-%{version}
%autosetup -p1
-#git clone --depth 1 -n -b %{branch0} %{source0} .
-#git fetch --depth 1 origin %{schash0}
-#git reset --hard %{schash0}
-##git submodule update --init
-#git log --format=fuller
%build
@@ -92,7 +75,8 @@ mkdir build
pushd build
%global optflags %(echo %{optflags} | sed 's|-fno-exceptions||')
%cmake .. -Wno-dev \
- -DCMAKE_SKIP_RPATH=ON \
+ -DCMAKE_SKIP_RPATH=ON
+ \
-DCMAKE_VERBOSE_MAKEFILE=OFF \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_LIBDIR=%{_lib} \