# 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 distributed-beget distributedhardware_device_manager BuildRequires: commonlibrary_c_utils BuildRequires: notification_eventhandler BuildRequires: communication_ipc communication_dsoftbus BuildRequires: security_device_auth security_huks security_device_security_level security_dataclassification BuildRequires: systemabilitymgr_safwk systemabilitymgr_samgr Requires: ft_engine Requires: distributed-beget distributedhardware_device_manager Requires: commonlibrary_c_utils Requires: notification_eventhandler Requires: communication_ipc communication_dsoftbus Requires: security_device_auth security_huks security_device_security_level security_dataclassification Requires: systemabilitymgr_safwk systemabilitymgr_samgr %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} %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 - 1.0.0-1 -