Drop and obsolete libsemanage-compat

This commit is contained in:
Petr Lautrbach 2020-11-20 10:33:23 +01:00
parent bbfd0b53a4
commit 6630c4be5a

View File

@ -29,6 +29,7 @@ BuildRequires: python3-devel
Requires: bzip2-libs audit-libs
Requires: libselinux%{?_isa} >= %{libselinuxver}
Obsoletes: libsemanage-compat = 3.1-4
%description
Security-enhanced Linux is a feature of the Linux® kernel and a number
@ -54,12 +55,6 @@ Requires: libsemanage-devel%{_isa} = %{version}-%{release}
The semanage-static package contains the static libraries
needed for developing applications that manipulate binary policies.
%package compat
Summary: Temporary compat libsemanage.so.1 used for transition to libsemanage.so.2
%description compat
Temporary compat libsemanage.so.1 used for transition to libsemanage.so.2
%package devel
Summary: Header files and libraries used to build policy manipulation tools
Requires: %{name}%{?_isa} = %{version}-%{release}
@ -132,12 +127,6 @@ InstallPythonWrapper \
cp %{SOURCE1} ${RPM_BUILD_ROOT}/etc/selinux/semanage.conf
%set_build_flags
CFLAGS="$CFLAGS -fno-semantic-interposition"
sed -i 's/LIBVERSION = 2/LIBVERSION = 1/' src/Makefile
%make_build
cp src/libsemanage.so.1 ${RPM_BUILD_ROOT}/%{_libdir}/libsemanage.so.1
%files
%{!?_licensedir:%global license %%doc}
%license COPYING
@ -155,9 +144,6 @@ cp src/libsemanage.so.1 ${RPM_BUILD_ROOT}/%{_libdir}/libsemanage.so.1
%files static
%{_libdir}/libsemanage.a
%files compat
%{_libdir}/libsemanage.so.1
%files devel
%{_libdir}/libsemanage.so
%{_libdir}/pkgconfig/libsemanage.pc