From ed61d9f2c1ff29207576b8a9f4627fb5fedb6e70 Mon Sep 17 00:00:00 2001 From: Petr Lautrbach Date: Fri, 20 Nov 2020 10:38:10 +0100 Subject: [PATCH] Drop and obsolete libsepol-compat --- libsepol.spec | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/libsepol.spec b/libsepol.spec index dcff341..502e613 100644 --- a/libsepol.spec +++ b/libsepol.spec @@ -25,6 +25,7 @@ Patch0011: 0011-libsepol-Bump-libsepol.so-version.patch BuildRequires: make BuildRequires: gcc BuildRequires: flex +Obsoletes: %{name}-compat = 3.1-4 %description Security-enhanced Linux is a feature of the Linux® kernel and a number @@ -58,12 +59,6 @@ Requires: %{name}-devel%{?_isa} = %{version}-%{release} The libsepol-static package contains the static libraries and header files needed for developing applications that manipulate binary policies. -%package compat -Summary: Temporary compat libsepol.so.1 used for transition to libsepol.so.2 - -%description compat -Temporary compat libsepol.so.1 used for transition to libsepol.so.2 - %prep %autosetup -p 2 -n libsepol-%{version} @@ -91,12 +86,6 @@ rm -f ${RPM_BUILD_ROOT}%{_bindir}/chkcon rm -rf ${RPM_BUILD_ROOT}%{_mandir}/man8 rm -rf ${RPM_BUILD_ROOT}%{_mandir}/ru/man8 -%set_build_flags -CFLAGS="$CFLAGS -fno-semantic-interposition" -sed -i 's/LIBVERSION = 2/LIBVERSION = 1/' src/Makefile -%make_build -cp src/libsepol.so.1 ${RPM_BUILD_ROOT}/%{_libdir}/libsepol.so.1 - %files static %{_libdir}/libsepol.a @@ -116,9 +105,6 @@ cp src/libsepol.so.1 ${RPM_BUILD_ROOT}/%{_libdir}/libsepol.so.1 %license COPYING %{_libdir}/libsepol.so.2 -%files compat -%{_libdir}/libsepol.so.1 - %changelog * Fri Oct 23 2020 Petr Lautrbach - 3.1-4 - Drop deprecated functions and duplicated symbols