From 2155ecdf8286027c843f181400db1c8fc06a03c0 Mon Sep 17 00:00:00 2001 From: chen-jan Date: Wed, 27 Apr 2022 01:51:50 +0000 Subject: [PATCH] add old version so file for LoongArch --- libsemanage.spec | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/libsemanage.spec b/libsemanage.spec index 4c27244..ac7ef8b 100644 --- a/libsemanage.spec +++ b/libsemanage.spec @@ -3,7 +3,7 @@ Name: libsemanage Version: 3.3 -Release: 3 +Release: 4 License: LGPLv2+ Summary: SELinux binary policy manipulation library URL: https://github.com/SELinuxProject/selinux/wiki @@ -15,6 +15,11 @@ Patch9000: fix-test-failure-with-secilc.patch BuildRequires: gcc python3-devel bison flex bzip2-devel audit-libs-devel BuildRequires: libselinux-devel >= %{libselinux_version} swig libsepol-devel >= %{libsepol_version} BuildRequires: CUnit-devel gdb-headless +%ifarch loongarch64 +Provides: libsemanage.so.1()(64bit) +Provides: libsemanage.so.1(LIBSEMANAGE_1.0)(64bit) +BuildRequires: libsemanage +%endif Requires: bzip2-libs audit-libs Requires: libselinux >= %{libselinux_version} @@ -70,6 +75,10 @@ make PYTHON=%{__python3} DESTDIR="%{buildroot}" LIBDIR="%{_libdir}" SHLIBDIR="%{ cp %{SOURCE1} %{buildroot}/etc/selinux/semanage.conf ln -sf %{_libdir}/libsemanage.so.2 %{buildroot}/%{_libdir}/libsemanage.so +%ifarch loongarch64 +cp -a %{_libdir}/libsemanage.so.1 %{buildroot}/%{_libdir} +%endif + %ldconfig_scriptlets %check @@ -104,6 +113,9 @@ make test %changelog +* Tue Apr 26 2022 chenchen - 3.3-4 +- add old version so file for LoongArch + * Fri Mar 18 2022 panxiaohe - 3.3-3 - delete useless old version dynamic library -- Gitee