diff --git a/device_manager.spec b/device_manager.spec index 35eead9ccf4b50c67a61211109af41085214621a..6f87954683cb1c3b975e4d91f033924328a5d001 100644 --- a/device_manager.spec +++ b/device_manager.spec @@ -16,6 +16,7 @@ Source1: https://gitee.com/openharmony/distributedhardware_device_manager/reposi Source2: https://gitee.com/openharmony/third_party_json/repository/archive/openHarmony-v3.2-Release.tar.gz #/third_party_json-OpenHarmony-v3.2-Release.tar.gz Source3: device_manager.bundle.json Source4: device_manager.BUILD.gn +Source5: device_manager.xml Patch1: 0001-remove-dependency-and-adapt-for-build-device_manager.patch @@ -70,6 +71,8 @@ install -d -m 0755 %{buildroot}/%{_libdir} install -d -m 0755 %{buildroot}%{_includedir}/nlohmann_json install -d -m 0755 %{buildroot}%{_includedir}/nlohmann_json/single_include install -d -m 0755 %{buildroot}%{build_opt}/openeuler/compiler_gn/foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp +install -d -m 0755 %{buildroot}/system/lib64 +install -d -m 0755 %{buildroot}/system/profile %ifarch aarch64 %define header_out_path out/openeuler/innerkits/linux-arm64/ @@ -82,6 +85,7 @@ install -d -m 0755 %{buildroot}%{build_opt}/openeuler/compiler_gn/foundation/dis # prepare so install -m 0755 %{_builddir}/%{module_out_path}/distributedhardware/device_manager/*.so %{buildroot}/%{_libdir} +install -m 0755 %{_builddir}/%{module_out_path}/distributedhardware/device_manager/*.so %{buildroot}/system/lib64 # prepare head files find %{_builddir}/%{header_out_path} -name *.h -print0 | xargs -0 -i cp -rf {} %{buildroot}/%{_includedir}/device_manager/ @@ -96,6 +100,9 @@ install -m 0755 %{SOURCE3} %{buildroot}/%{build_opt}/openeuler/compiler_gn/found #cp gn file install -m 0755 %{SOURCE4} %{buildroot}/%{build_opt}/openeuler/compiler_gn/foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp/BUILD.gn +#cp sa profile +install -m 0755 %{SOURCE5} %{buildroot}/system/profile + #create soft link ln -s /usr/include/device_manager %{buildroot}%{build_opt}/openeuler/compiler_gn/foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp/include @@ -104,8 +111,12 @@ ln -s /usr/include/device_manager %{buildroot}%{build_opt}/openeuler/compiler_gn %{_includedir}/nlohmann_json/* %{_libdir}/*.so %{build_opt}/* +/system/* %changelog +* Fri Dec 15 2023 heppen - 1.0.0-2 +- Add SA profile + * Tue Oct 31 2023 Yuying Mu - 1.0.0-1 * Tue Nov 21 2023 Jiaqi Zhao - 1.0.0-1 - Init and adapt device manager to openEuler diff --git a/device_manager.xml b/device_manager.xml new file mode 100755 index 0000000000000000000000000000000000000000..e6506fcbd9b73db4fdffec739807466352f20d03 --- /dev/null +++ b/device_manager.xml @@ -0,0 +1,14 @@ + + + device_manager + + libdevicemanagerservice.z.so + + + 4802 + libdevicemanagerservice.z.so + true + false + 1 + +