Use %set_build_flags instead of %optflags
Fixes: RPMDiff Detecting usr/lib64/python3.6/site-packages/setools/policyrep.cpython-36m-[arch]-linux-gnu.so with not-hardened warnings: Hardened: policyrep.cpython-36m-[arch]-linux-gnu.so: FAIL: The binary was compiled without -fstack-clash-protection. Hardened: policyrep.cpython-36m-[arch]-linux-gnu.so: FAIL: The binary was compiled without -fstack-protector-strong.
This commit is contained in:
parent
46caac3298
commit
f24e682780
10
setools.spec
10
setools.spec
|
@ -7,7 +7,7 @@
|
|||
|
||||
Name: setools
|
||||
Version: 4.2.1
|
||||
Release: 2%{?setools_pre_ver:.%{setools_pre_ver}}%{?dist}
|
||||
Release: 3%{?setools_pre_ver:.%{setools_pre_ver}}%{?dist}
|
||||
Summary: Policy analysis tools for SELinux
|
||||
|
||||
License: GPLv2
|
||||
|
@ -103,7 +103,8 @@ Python modules designed to facilitate SELinux policy analysis.
|
|||
|
||||
%build
|
||||
# Remove CFLAGS=... for noarch packages (unneeded)
|
||||
CFLAGS="%{optflags}" %{__python3} setup.py build
|
||||
%set_build_flags
|
||||
%{__python3} setup.py build
|
||||
|
||||
|
||||
%install
|
||||
|
@ -142,7 +143,10 @@ CFLAGS="%{optflags}" %{__python3} setup.py build
|
|||
%{_mandir}/man1/apol*
|
||||
|
||||
%changelog
|
||||
* Mon May 06 2019 Vit Mojzis <vmojzis@redhat.com> - 4.2.1-2}
|
||||
* Mon May 13 2019 Vit Mojzis <vmojzis@redhat.com> - 4.2.1-3
|
||||
- Use %set_build_flags instead of %optflags
|
||||
|
||||
* Mon May 06 2019 Vit Mojzis <vmojzis@redhat.com> - 4.2.1-2
|
||||
- SELinuxPolicy: Create a map of aliases on policy load (#1672631)
|
||||
|
||||
* Tue Mar 26 2019 Petr Lautrbach <plautrba@redhat.com> - 4.2.1-1
|
||||
|
|
Loading…
Reference in New Issue