Compare commits

..

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
a5164e3d86
!10 请求将distributeddatamgr_datamgr_service合入next分支
From: @zxstty 
Reviewed-by: @yukaii 
Signed-off-by: @yukaii
2023-12-12 08:04:34 +00:00
zxstty
6eb1c15ffb change by zjq 2023-12-06 16:43:55 +08:00
openeuler-ci-bot
194e270457
!7 同步到sp3分支
From: @muyuying1 
Reviewed-by: @heppen 
Signed-off-by: @heppen
2023-11-16 07:25:59 +00:00
openeuler-ci-bot
c8790d1753
!6 同步到 sp2 next分支
From: @muyuying1 
Reviewed-by: @heppen 
Signed-off-by: @heppen
2023-11-10 04:00:36 +00:00
openeuler-ci-bot
00a2c260f4
!5 同步master代码到sp2分支
From: @heppen 
Reviewed-by: @yukaii 
Signed-off-by: @yukaii
2023-08-30 02:23:39 +00:00
openeuler-ci-bot
92eb1252e1
!4 add source file and spec file
From: @heppen 
Reviewed-by: @yukaii 
Signed-off-by: @yukaii
2023-08-29 12:28:44 +00:00
openeuler-ci-bot
8241fa07f5
!3 add patch: establish kvstore dependence on boundscheck
From: @heppen 
Reviewed-by: @yukaii 
Signed-off-by: @yukaii
2023-08-29 11:27:09 +00:00
openeuler-ci-bot
f824390452
!2 add patch: add huks component
From: @heppen 
Reviewed-by: @yukaii 
Signed-off-by: @yukaii
2023-08-29 09:29:12 +00:00
openeuler-ci-bot
094c4ab724
!1 remove uesless dependency
From: @heppen 
Reviewed-by: @yukaii 
Signed-off-by: @yukaii
2023-08-29 08:30:53 +00:00
heppen
cdccdca640 add source tar file and spec file 2023-08-28 16:20:46 +08:00
4 changed files with 98 additions and 2517 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,98 @@
%define debug_package %{nil}
%global oh_version OpenHarmony-v3.2-Release
%global distributeddata_dir %{_builddir}/foundation/distributeddatamgr/
%global build_opt /opt/distributed-middleware-build
Name: distributeddatamgr_datamgr_service
Version: 1.0.0
Release: 3
Summary: Distributed data manager that provides the capability to store data in the databases of different devices
License: Apache-2.0
Url: https://gitee.com/openharmony/distributeddatamgr_datamgr_service
Source1: https://gitee.com/openharmony/distributeddatamgr_datamgr_service/repository/archive/%{oh_version}.tar.gz#/distributeddatamgr_datamgr_service-%{oh_version}.tar.gz
Patch1: 0001-remove-useless-dependency.patch
Patch2: 0002-establish-kvstore-dependence-on-boundscheck.patch
BuildRequires: libboundscheck, zlib, zlib-devel, jsoncpp, jsoncpp-devel, openssl-devel
BuildRequires: distributed-build, distributed-beget, hilog, commonlibrary_c_utils
BuildRequires: communication_ipc, communication_dsoftbus
BuildRequires: systemabilitymgr_safwk, systemabilitymgr_samgr
BuildRequires: security_dataclassification, security_device_auth, security_huks
BuildRequires: distributedhardware_device_manager
BuildRequires: distributeddatamgr_kv_store, distributeddatamgr_relational_store
BuildRequires: libboundscheck, zlib, zlib-devel, jsoncpp, jsoncpp-devel, openssl-devel
BuildRequires: distributed-beget, hilog, commonlibrary_c_utils
BuildRequires: communication_ipc, communication_dsoftbus
BuildRequires: systemabilitymgr_safwk, systemabilitymgr_samgr
BuildRequires: security_dataclassification, security_device_auth, security_huks
BuildRequires: distributedhardware_device_manager
BuildRequires: distributeddatamgr_kv_store, distributeddatamgr_relational_store
%description
Distributed Data Service (DDS) provides the ability to distribute database data between different devices.
By combining account, application, and database triplets, distributed data services isolate data.
Among trusted authentication devices, the distributed data service supports mutual data synchronization,
providing users with a consistent data access experience on various terminal devices.
%prep
rm -rf %{_builddir}/*
cp -rf %{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 -rf %{_builddir}/build/openeuler/vendor %{_builddir}/
cp -rf %{_builddir}/build/openeuler/compiler_gn/* %{_builddir}
%setup -q -D -T -a 1 -c -n %{distributeddata_dir}
if [ -d "%{distributeddata_dir}/datamgr_service" ]; then
rm -rf %{distributeddata_dir}/datamgr_service
fi
mv %{distributeddata_dir}/%{name}-%{oh_version} %{distributeddata_dir}/datamgr_service
%patch -P1 -p1 -d %{distributeddata_dir}/datamgr_service
%patch -P2 -p1 -d %{distributeddata_dir}/datamgr_service
%build
%ifarch x86_64
%{_builddir}/build.sh --product-name openeuler --target-cpu x86_64
%endif
%ifarch aarch64
%{_builddir}/build.sh --product-name openeuler --target-cpu arm64
%endif
%install
install -d -m 0755 %{buildroot}%{_includedir}/%{name}
install -d -m 0755 %{buildroot}%{_libdir}
install -d -m 0755 %{buildroot}/system/profile
install -d -m 0755 %{buildroot}/system/lib64
install -d -m 0755 %{buildroot}/system/etc/distributeddata/conf
%ifarch aarch64
%define lib_out_path out/openeuler/linux_clang_arm64/distributeddatamgr/datamgr_service
%endif
%ifarch x86_64
%define lib_out_path out/openeuler/linux_clang_x86_64/distributeddatamgr/datamgr_service
%endif
install -m 0755 %{_builddir}/%{lib_out_path}/*.so %{buildroot}%{_libdir}
install -m 0755 %{_builddir}/%{lib_out_path}/*.so %{buildroot}/system/lib64
%define config_path out/openeuler/packages/phone/system
install -m 0755 %{_builddir}/%{config_path}/profile/distributeddata.xml %{buildroot}/system/profile
install -m 0755 %{_builddir}/%{config_path}/etc/distributeddata/conf/* %{buildroot}/system/etc/distributeddata/conf/
%files
%{_libdir}/*.so
/system/*
%changelog
* Tue Nov 21 2023 Peng He <hepeng68@huawei.com> - 1.0.0-3
- Update build requires and requires.
* Thu Aug 03 2023 Peng He <hepeng68@huawei.com> - 1.0.0-2
- Add requires and rectify the contents of the RPM package.
* Fri Jul 21 2023 Ge Wang <wang__ge@126.com> - 1.0.0-1
- init package