arkui-linux/arkui-linux.spec
yanansong 2d9feaacfb add exe to bindir
Signed-off-by: yanansong <songyanan5@huawei.com>
(cherry picked from commit 1c2b1839a2211d53be9e52e59948d16ea11bd165)
2023-11-13 14:32:06 +08:00

89 lines
3.2 KiB
RPMSpec

# 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: arkui-linux
Version: 1.0.0
Release: 1%{?dist}
Summary: arkui-linux is arkui repository for linux. it provides arkui GUI framework to supports arkui application.
License: Apache-2.0
URL: https://gitee.com/openeuler/arkui-linux
Source0: https://gitee.com/openeuler/arkui-linux/repository/archive/arkui-linux-1.0.0.tar.gz
Source1: https://gitee.com/openeuler/arkui-linux/repository/archive/arkui-linux-1.0.0-thirdparty-flutter.tar.gz
Source2: https://gitee.com/openeuler/arkui-linux/repository/archive/arkui-linux-1.0.0-thirdparty-jsframework.tar.gz
Source3: https://gitee.com/openeuler/arkui-linux/repository/archive/arkui-linux-1.0.0-thirdparty-node.tar.gz
BuildRequires: clang python python3 python3-pip python-toml tar cmake ninja-build gn
BuildRequires: llvm-devel libcurl-devel harfbuzz-devel ruby libuv-devel nodejs-devel jsoncpp-devel minizip-devel
BuildRequires: ft_engine-devel ft_surface-devel ft_mmi-devel ft_flutter-devel ft_multimedia-devel
BuildRequires: distributed-build
Requires: ft_engine
%description
arkui-linux is arkui repository for linux. it provides arkui GUI framework to supports arkui application.
%package devel
Summary: arkui-linux development files
Provides: arkui-linux-devel
%description devel
This package contains necessary header files for ft_engine development.
%prep
%setup -q -D -T -a 0 -c -n %{name}-%{version}/..
%setup -q -D -T -a 1 -c -n %{name}-%{version}/..
%setup -q -D -T -a 2 -c -n %{name}-%{version}/..
%setup -q -D -T -a 3 -c -n %{name}-%{version}/..
%build
mkdir -p %{_builddir}/%{name}-%{version}/arkcompiler/ets_frontend/ts2panda/node_modules
cd %{_builddir}/%{name}-%{version}
./build/prebuildrpm.sh -b release
%ifarch x86_64
./build.sh -b release
%endif
%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_includedir}
mkdir -p %{buildroot}%{_includedir}/napi
%ifarch x86_64
cp -pdf %{_builddir}/%{name}-%{version}/out/Release/x64/common/common/lib*.so %{buildroot}%{_libdir}
cp -pdf %{_builddir}/%{name}-%{version}/out/Release/x64/common/common/hap_executor %{buildroot}%{_bindir}
cp -pdf %{_builddir}/%{name}-%{version}/out/Release/x64/common/common/protoc %{buildroot}%{_bindir}
%endif
cp -pdfr %{_builddir}/%{name}-%{version}/napi/interfaces %{buildroot}%{_includedir}/napi
%clean
rm -rf %{buildroot}
%files
%ifarch x86_64
%{_libdir}/*
%{_bindir}/*
%endif
%files devel
%ifarch x86_64
%{_libdir}/*
%endif
%{_includedir}/*
%changelog
* Fri Nov 3 2023 yanansong <yanansong5@huawei.com> - 1.0.0-1
-