Use LDFLAGS from redhat-rpm-config

This commit is contained in:
Florian Weimer 2018-02-22 19:17:04 +01:00
parent b501520a1d
commit e67c25513c
1 changed files with 6 additions and 3 deletions

View File

@ -4,7 +4,7 @@
Summary: SELinux policy compiler
Name: checkpolicy
Version: 2.7
Release: 4%{?dist}
Release: 5%{?dist}
License: GPLv2
Source: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20170804/checkpolicy-2.7.tar.gz
# download https://raw.githubusercontent.com/fedora-selinux/scripts/master/selinux/make-fedora-selinux-patch.sh
@ -35,9 +35,9 @@ Only required for building policies.
%build
make clean
make LIBDIR="%{_libdir}" CFLAGS="%{optflags}"
make LIBDIR="%{_libdir}" CFLAGS="%{optflags}" LDFLAGS="$RPM_LD_FLAGS"
cd test
make LIBDIR="%{_libdir}" CFLAGS="%{optflags}"
make LIBDIR="%{_libdir}" CFLAGS="%{optflags}" LDFLAGS="$RPM_LD_FLAGS"
%install
mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
@ -56,6 +56,9 @@ install test/dispol ${RPM_BUILD_ROOT}%{_bindir}/sedispol
%{_bindir}/sedispol
%changelog
* Thu Feb 22 2018 Florian Weimer <fweimer@redhat.com> - 2.7-5
- Use LDFLAGS from redhat-rpm-config
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.7-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild