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/sources b/sources new file mode 100644 index 0000000000000000000000000000000000000000..52b2e8a6e3abb755a2860aef5332511dac174328 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (libummu.tar.gz) = ff06c3ea470d7e4b58f1993c1727b2570fdd0e5ac67bda795be1e7cbbf9e17207f171b0ed934004c3d4d162bb68eefbd549867e1615a7189d5a27b9a489b81d5 diff --git a/ummu.spec b/ummu.spec new file mode 100644 index 0000000000000000000000000000000000000000..263541a69f494f333ad615b2a7516098348ebeb2 --- /dev/null +++ b/ummu.spec @@ -0,0 +1,74 @@ +Summary: Implementation of UMMU library +Name: libummu +Version: 1.0.1 +Release: 1%{?dist} +License: MIT +%global abi_version 1 +Group: Development/Libraries/C +URL: https://gitee.com/openeuler/ummu/ +Source0: %{name}.tar.gz + +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: make +ExclusiveArch: aarch64 + +%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 +%autosetup -n ummu + +%build +mkdir -p build +cd build +cmake .. \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib64 \ + -DCMAKE_C_FLAGS="%{optflags}" \ + -DCMAKE_CXX_FLAGS="%{optflags}" \ + -DPROJECT_VERSION=%{version} \ + -DLIB_SOVERSION=%{abi_version} + +make + +%install +rm -rf %{buildroot} +mkdir -p %{buildroot} +mkdir -p %{buildroot}%{_docdir}/ub/%{name}/ +mkdir -p %{buildroot}%{_mandir}/man3/ +cp -a doc/* %{buildroot}%{_docdir}/ub/%{name}/ +install -m 644 README.md %{buildroot}%{_docdir}/ub/%{name}/ +install -m 644 doc/man3/libummu.3 %{buildroot}%{_mandir}/man3/libummu.3 +gzip -f9n %{buildroot}%{_mandir}/man3/libummu.3 + +cd build +#cmake --install . --prefix %{buildroot}/usr +make DESTDIR=%{buildroot} install + +#%clean +#rm -rf $RPM_BUILD_ROOT + +%preun + +%files +%{_libdir}/libummu.so.* + +%files devel +%{_libdir}/libummu.so +%{_includedir}/ummu_api.h +%{_includedir}/ummu_core.h +%doc %{_docdir}/ub/%{name}/* +%{_mandir}/man3/libummu.3.gz + +%changelog +* Wed Apr 22 2026 huwentao - 1.0.1-1 +- [Type] sync +- [DESC] Init package