!7 请求将filemanagement_dfs_service合入next分支
From: @zxstty Reviewed-by: @yukaii Signed-off-by: @yukaii
This commit is contained in:
commit
c846f58335
@ -1,67 +1,82 @@
|
||||
%define debug_package %{nil}
|
||||
%global openHarmony_source_release OpenHarmony-v3.2-Release
|
||||
%global oh_version OpenHarmony-v3.2-Release
|
||||
%global dfs_service_dir %{_builddir}/foundation/filemanagement
|
||||
%global build_opt /opt/distributed-middleware-build
|
||||
|
||||
Name: dfs_service
|
||||
Name: filemanagement_dfs_service
|
||||
Version: 1.0.0
|
||||
Release: 2
|
||||
Summary: The distributed file service.
|
||||
License: Apache License 2.0
|
||||
Release: 3
|
||||
Summary: The distributed file service from OpenHarmony
|
||||
License: Apache-2.0
|
||||
Url: https://gitee.com/openharmony/filemanagement_dfs_service
|
||||
Source0: https://gitee.com/openharmony/filemanagement_dfs_service/repository/archive/%{openHarmony_source_release}.tar.gz #/filemanagement_dfs_service-%{openHarmony_source_release}.tar.gz
|
||||
Patch0: 0001-cut-access_token-common_event-ability.patch
|
||||
Patch1: 0002-change-default-devsl-from-0-to-4.patch
|
||||
Source1: https://gitee.com/openharmony/filemanagement_dfs_service/repository/archive/%{oh_version}.tar.gz #/filemanagement_dfs_service-%{oh_version}.tar.gz
|
||||
Patch1: 0001-cut-access_token-common_event-ability.patch
|
||||
Patch2: 0002-change-default-devsl-from-0-to-4.patch
|
||||
|
||||
BuildRequires: distributed-build, libboundscheck, libatomic, distributed-utils
|
||||
Requires: libboundscheck, libatomic, distributed-utils
|
||||
BuildRequires: libboundscheck
|
||||
BuildRequires: distributed-build
|
||||
BuildRequires: distributed-beget, hilog, commonlibrary_c_utils
|
||||
BuildRequires: communication_ipc, communication_dsoftbus
|
||||
BuildRequires: systemabilitymgr_safwk, systemabilitymgr_samgr
|
||||
BuildRequires: security_dataclassification, security_device_auth
|
||||
BuildRequires: distributedhardware_device_manager
|
||||
|
||||
Requires: libboundscheck
|
||||
Requires: distributed-beget, hilog, commonlibrary_c_utils
|
||||
Requires: communication_ipc, communication_dsoftbus
|
||||
Requires: systemabilitymgr_safwk, systemabilitymgr_samgr
|
||||
Requires: security_dataclassification, security_device_auth
|
||||
Requires: distributedhardware_device_manager
|
||||
|
||||
%description
|
||||
The distributed file service provides cross -device access capabilities that meet the POSIX specifications.
|
||||
The distributed file service provides cross-device access capabilities that meet the POSIX specifications.
|
||||
|
||||
%prep
|
||||
#clean %{_builddir}
|
||||
rm -rf %{_builddir}/*
|
||||
cp -rf %{build_opt} %{_builddir}/build
|
||||
ln -s %{_builddir}/build/build_scripts/build.sh %{_builddir}/build.sh
|
||||
ln -s %{_builddir}/build/core/gn/dotfile.gn %{_builddir}/.gn
|
||||
ln -s %{_builddir}/build/lite/build.py %{_builddir}/build.py
|
||||
cp -rf %{_builddir}/build/openeuler/vendor %{_builddir}/
|
||||
cp -rf %{_builddir}/build/openeuler/compiler_gn/* %{_builddir}
|
||||
|
||||
# build directory
|
||||
cd %{_builddir}
|
||||
cp -rp %{build_opt} %{_builddir}/build
|
||||
[ ! -L "%{_builddir}/build.sh" ] && ln -s %{_builddir}/build/build_scripts/build.sh %{_builddir}/build.sh
|
||||
[ ! -L "%{_builddir}/.gn" ] && ln -s %{_builddir}/build/core/gn/dotfile.gn %{_builddir}/.gn
|
||||
[ ! -L "%{_builddir}/build.py" ] && ln -s %{_builddir}/build/lite/build.py %{_builddir}/build.py
|
||||
cp -r %{_builddir}/build/openeuler/vendor %{_builddir}/
|
||||
cp -r %{_builddir}/build/openeuler/compiler_gn/* %{_builddir}/
|
||||
|
||||
%setup -q -T -a 0 -c -n %{dfs_service_dir}
|
||||
%patch0 -p1 -d %{dfs_service_dir}/dfs_service
|
||||
%patch1 -p1 -d %{dfs_service_dir}/dfs_service
|
||||
|
||||
%setup -q -T -a 1 -c -n %{dfs_service_dir}
|
||||
%patch -P1 -p1 -d %{dfs_service_dir}/dfs_service
|
||||
%patch -P2 -p1 -d %{dfs_service_dir}/dfs_service
|
||||
|
||||
%build
|
||||
cd %{_builddir}
|
||||
rm -rf %{_builddir}/out
|
||||
|
||||
%ifarch x86_64
|
||||
./build.sh --product-name openeuler --target-cpu x86_64
|
||||
%{_builddir}/build.sh --product-name openeuler --target-cpu x86_64
|
||||
%endif
|
||||
|
||||
%ifarch aarch64
|
||||
./build.sh --product-name openeuler --target-cpu arm64
|
||||
%{_builddir}/build.sh --product-name openeuler --target-cpu arm64
|
||||
%endif
|
||||
|
||||
%install
|
||||
install -d %{buildroot}/%{_libdir}
|
||||
install -d %{buildroot}/system/lib64
|
||||
install -d -m 0755 %{buildroot}/%{_libdir}
|
||||
install -d -m 0755 %{buildroot}/system/lib64
|
||||
|
||||
%ifarch x86_64
|
||||
%define lib_path out/openeuler/linux_clang_x86_64/filemanagement/dfs_service
|
||||
%endif
|
||||
|
||||
%ifarch aarch64
|
||||
%define lib_path out/openeuler/linux_clang_arm64/filemanagement/dfs_service
|
||||
%endif
|
||||
|
||||
# prepare so
|
||||
install -m 0755 %{_builddir}/out/openeuler/packages/phone/system/lib64/libdistributedfile*.so %{buildroot}/%{_libdir}
|
||||
install -m 0755 %{_builddir}/out/openeuler/packages/phone/system/lib64/libdistributedfile*.so %{buildroot}/system/lib64
|
||||
install -m 0755 %{_builddir}/%{lib_path}/*.so %{buildroot}/%{_libdir}
|
||||
install -m 0755 %{_builddir}/%{lib_path}/*.so %{buildroot}/system/lib64
|
||||
|
||||
%files
|
||||
%{_libdir}/*.so
|
||||
/system/lib64/*.so
|
||||
|
||||
%changelog
|
||||
* Tue Nov 14 2023 Peng He <hepeng68@huawei.com> - 1.0.0-3
|
||||
- Update requires and buildrequires.
|
||||
|
||||
* Sat Jun 24 2023 Peng He <hepeng68@huawei.com> - 1.0.0-2
|
||||
- Change default devsl from 0 to 4.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user