!6 请求将filemanagement_dfs_service合入sp3分支
From: @zxstty Reviewed-by: @yukaii Signed-off-by: @yukaii
This commit is contained in:
commit
f4a320af27
@ -1,67 +1,82 @@
|
|||||||
%define debug_package %{nil}
|
%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 dfs_service_dir %{_builddir}/foundation/filemanagement
|
||||||
%global build_opt /opt/distributed-middleware-build
|
%global build_opt /opt/distributed-middleware-build
|
||||||
|
|
||||||
Name: dfs_service
|
Name: filemanagement_dfs_service
|
||||||
Version: 1.0.0
|
Version: 1.0.0
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: The distributed file service.
|
Summary: The distributed file service from OpenHarmony
|
||||||
License: Apache License 2.0
|
License: Apache-2.0
|
||||||
Url: https://gitee.com/openharmony/filemanagement_dfs_service
|
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
|
Source1: https://gitee.com/openharmony/filemanagement_dfs_service/repository/archive/%{oh_version}.tar.gz #/filemanagement_dfs_service-%{oh_version}.tar.gz
|
||||||
Patch0: 0001-cut-access_token-common_event-ability.patch
|
Patch1: 0001-cut-access_token-common_event-ability.patch
|
||||||
Patch1: 0002-change-default-devsl-from-0-to-4.patch
|
Patch2: 0002-change-default-devsl-from-0-to-4.patch
|
||||||
|
|
||||||
BuildRequires: distributed-build, libboundscheck, libatomic, distributed-utils
|
BuildRequires: libboundscheck
|
||||||
Requires: libboundscheck, libatomic, distributed-utils
|
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
|
%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
|
%prep
|
||||||
#clean %{_builddir}
|
|
||||||
rm -rf %{_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
|
%setup -q -T -a 1 -c -n %{dfs_service_dir}
|
||||||
cd %{_builddir}
|
%patch -P1 -p1 -d %{dfs_service_dir}/dfs_service
|
||||||
cp -rp %{build_opt} %{_builddir}/build
|
%patch -P2 -p1 -d %{dfs_service_dir}/dfs_service
|
||||||
[ ! -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
|
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cd %{_builddir}
|
|
||||||
rm -rf %{_builddir}/out
|
|
||||||
|
|
||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
./build.sh --product-name openeuler --target-cpu x86_64
|
%{_builddir}/build.sh --product-name openeuler --target-cpu x86_64
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%ifarch aarch64
|
%ifarch aarch64
|
||||||
./build.sh --product-name openeuler --target-cpu arm64
|
%{_builddir}/build.sh --product-name openeuler --target-cpu arm64
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -d %{buildroot}/%{_libdir}
|
install -d -m 0755 %{buildroot}/%{_libdir}
|
||||||
install -d %{buildroot}/system/lib64
|
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
|
# prepare so
|
||||||
install -m 0755 %{_builddir}/out/openeuler/packages/phone/system/lib64/libdistributedfile*.so %{buildroot}/%{_libdir}
|
install -m 0755 %{_builddir}/%{lib_path}/*.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}/system/lib64
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
/system/lib64/*.so
|
/system/lib64/*.so
|
||||||
|
|
||||||
%changelog
|
%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
|
* Sat Jun 24 2023 Peng He <hepeng68@huawei.com> - 1.0.0-2
|
||||||
- Change default devsl from 0 to 4.
|
- Change default devsl from 0 to 4.
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user