forked from pool/libsemanage
Accepting request 1129104 from home:dgarcia:branches:security:SELinux
- Remove dependency on /usr/bin/python3, making scripts to depends on the real python3 binary, not the link. bsc#1212476 OBS-URL: https://build.opensuse.org/request/show/1129104 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/libsemanage?expand=0&rev=108
This commit is contained in:
parent
30ffe318a4
commit
b279e4d137
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 27 09:51:42 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
- Remove dependency on /usr/bin/python3, making scripts to depends on
|
||||||
|
the real python3 binary, not the link. bsc#1212476
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Aug 14 08:07:46 UTC 2023 - Johannes Segitz <jsegitz@suse.com>
|
Mon Aug 14 08:07:46 UTC 2023 - Johannes Segitz <jsegitz@suse.com>
|
||||||
|
|
||||||
|
@ -42,6 +42,7 @@ BuildRequires: libbz2-devel
|
|||||||
BuildRequires: libselinux-devel
|
BuildRequires: libselinux-devel
|
||||||
BuildRequires: libsepol-devel
|
BuildRequires: libsepol-devel
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
|
||||||
%description
|
%description
|
||||||
libsemanage is the policy management library. Using libsepol and
|
libsemanage is the policy management library. Using libsepol and
|
||||||
@ -123,6 +124,12 @@ mkdir -p %{buildroot}%{_localstatedir}/lib/selinux
|
|||||||
%make_install LIBDIR="%{_libdir}" LIBEXECDIR="%{_libexecdir}" SHLIBDIR="%{_libdir}"
|
%make_install LIBDIR="%{_libdir}" LIBEXECDIR="%{_libexecdir}" SHLIBDIR="%{_libdir}"
|
||||||
ln -sf %{_libdir}/libsemanage.so.%{soversion} %{buildroot}/%{_libdir}/libsemanage.so
|
ln -sf %{_libdir}/libsemanage.so.%{soversion} %{buildroot}/%{_libdir}/libsemanage.so
|
||||||
cp %{SOURCE4} %{buildroot}%{_sysconfdir}/selinux/semanage.conf
|
cp %{SOURCE4} %{buildroot}%{_sysconfdir}/selinux/semanage.conf
|
||||||
|
|
||||||
|
# Fix shebang in scripts
|
||||||
|
for f in %{buildroot}%{_libexecdir}/selinux/*
|
||||||
|
do
|
||||||
|
[ -f $f ] && sed -i "1s@#!.*python.*@#!$(realpath %__python3)@" $f
|
||||||
|
done
|
||||||
# Remove duplicate files
|
# Remove duplicate files
|
||||||
%fdupes -s %{buildroot}%{_mandir}
|
%fdupes -s %{buildroot}%{_mandir}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user