Drop and obsolete libsepol-compat

This commit is contained in:
Petr Lautrbach 2020-11-20 10:38:10 +01:00
parent 09d2e8094c
commit ed61d9f2c1
1 changed files with 1 additions and 15 deletions

View File

@ -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 <plautrba@redhat.com> - 3.1-4
- Drop deprecated functions and duplicated symbols