From 400be167ea98b7c472552c26b87b6976daba4bc6 Mon Sep 17 00:00:00 2001 From: abc12133 Date: Mon, 6 Nov 2023 10:00:37 +0800 Subject: [PATCH] 1 Signed-off-by: abc12133 --- ft_utils.spc | 0 ft_utils.spec | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) delete mode 100644 ft_utils.spc create mode 100644 ft_utils.spec diff --git a/ft_utils.spc b/ft_utils.spc deleted file mode 100644 index e69de29..0000000 diff --git a/ft_utils.spec b/ft_utils.spec new file mode 100644 index 0000000..f21632f --- /dev/null +++ b/ft_utils.spec @@ -0,0 +1,60 @@ +# Copyright (c) 2023 Huawei Technologies Co., Ltd. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +%global debug_package %{nil} + +Name: ft_utils +Version: 1.0.0 +Release: 1%{?dist} +Summary: Ft_utils. + +License: Apache-2.0 +URL: https://gitee.com/openeuler/ft_utils +Source0: https://gitee.com/openeuler/ft_utils/repository/archive/ft_utils-1.0.0.tar.gz + +BuildRequires: clang python3 python3-pip python-toml tar cmake ninja-build compiler-rt +BuildRequires: llvm-devel +BuildRequires: distributed-utils +BuildRequires: distributed-build +Requires: compiler-rt llvm-devel python3 libdrm-devel systemd-devel harfbuzz-devel jsoncpp-devel expat-devel +Requires: distributed-utils + +%description +Ft_utils. + +%prep +%autosetup -n %{name}-%{version} -p1 + +%build +cd %{_builddir}/%{name}-%{version} +./build.sh + +%install +mkdir -p %{buildroot}%{_libdir} +%ifarch x86_64 +cp -pdf %{_builddir}/%{name}-%{version}/out/Debug/x64/common/common/lib*.so %{buildroot}%{_libdir} +%endif +%ifarch aarch64 +cp -pdf %{_builddir}/%{name}-%{version}/out/Debug/aarch64/common/common/lib*.so %{buildroot}%{_libdir} +%endif + +%clean +rm -rf %{buildroot} + +%files +%{_libdir}/* + +%changelog +* Tue November 6 2023 abc12133 - 1.0.0-1 +- +