Drop and obsolete libsepol-compat
This commit is contained in:
parent
09d2e8094c
commit
ed61d9f2c1
@ -25,6 +25,7 @@ Patch0011: 0011-libsepol-Bump-libsepol.so-version.patch
|
|||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: flex
|
BuildRequires: flex
|
||||||
|
Obsoletes: %{name}-compat = 3.1-4
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Security-enhanced Linux is a feature of the Linux® kernel and a number
|
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
|
The libsepol-static package contains the static libraries and header files
|
||||||
needed for developing applications that manipulate binary policies.
|
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
|
%prep
|
||||||
%autosetup -p 2 -n libsepol-%{version}
|
%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}/man8
|
||||||
rm -rf ${RPM_BUILD_ROOT}%{_mandir}/ru/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
|
%files static
|
||||||
%{_libdir}/libsepol.a
|
%{_libdir}/libsepol.a
|
||||||
|
|
||||||
@ -116,9 +105,6 @@ cp src/libsepol.so.1 ${RPM_BUILD_ROOT}/%{_libdir}/libsepol.so.1
|
|||||||
%license COPYING
|
%license COPYING
|
||||||
%{_libdir}/libsepol.so.2
|
%{_libdir}/libsepol.so.2
|
||||||
|
|
||||||
%files compat
|
|
||||||
%{_libdir}/libsepol.so.1
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri Oct 23 2020 Petr Lautrbach <plautrba@redhat.com> - 3.1-4
|
* Fri Oct 23 2020 Petr Lautrbach <plautrba@redhat.com> - 3.1-4
|
||||||
- Drop deprecated functions and duplicated symbols
|
- Drop deprecated functions and duplicated symbols
|
||||||
|
Loading…
Reference in New Issue
Block a user