diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..bacb7796a69564a1e4b64d49cb14d980ca8c8106 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2025 HiSilicon Technologies Co., Ltd. All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/libummu.tar.gz b/libummu.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..b0d71b026350e3af49881bab53eb0c4a3ee5ed51 Binary files /dev/null and b/libummu.tar.gz differ diff --git a/ummu.spec b/ummu.spec new file mode 100644 index 0000000000000000000000000000000000000000..0394c7faecff78224557b852ae18d8257d82df17 --- /dev/null +++ b/ummu.spec @@ -0,0 +1,71 @@ +%define debug_package %{nil} +Summary: Implementation of UMMU library +Name: libummu +Version: 1.0.0 +Release: 1 +License: MIT +%global libummu_version 1 +Group: Development/Libraries/C +URL: https://gitee.com/openeuler/ummu/ +Source0: %{name}.tar.gz + +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: make + +BuildRoot: %{_tmppath}/%{name} + +%description +Implementation of UMMU library + +%package devel +Summary: Implementation of UMMU library + +%description devel +This package is required to manage permission table +for SVA scene. + +%prep +%setup -q -n ummu + +%build +mkdir -p build +cd build +cmake .. \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib64 \ + -DCMAKE_BUILD_TYPE=Release +make + +%install +rm -rf %{buildroot} +mkdir -p %{buildroot} +cd build +#cmake --install . --prefix %{buildroot}/usr +make DESTDIR=%{buildroot} install +cd %{buildroot}%{_libdir} +cp -a libummu.so libummu.so.%{libummu_version} + +ln -sf libummu.so.%{libummu_version} libummu.so + +#%clean +#rm -rf $RPM_BUILD_ROOT + +%preun +cd %{_libdir} +rm libummu.so + +%files +%{_libdir}/libummu.so.%{libummu_version} + +%files devel +%{_libdir}/libummu.so* +%{_includedir}/ummu_api.h +%{_includedir}/ummu_core.h + +%changelog +* Mon Nov 3 2025 jiangsihui - 1.0.0-1 +- Supports permission table management functions, including + the creation, release, and invalidation of permission tables, + while also supporting context maintenance for operating + permission tables.