]> git.pld-linux.org Git - projects/template-specs.git/blobdiff - lib.spec
lib: fortify source example
[projects/template-specs.git] / lib.spec
index 5b23e8191b9a0b4a27de13f7b7d1699d6fce560f..c8e0b28420fc094d3813bc037091f52c845b58d0 100644 (file)
--- a/lib.spec
+++ b/lib.spec
@@ -32,11 +32,18 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 # these are only here to help fixing quickly broken specs
 %define                filterout_ld    -Wl,--no-copy-dt-needed-entries
 %define                filterout_ld    -Wl,--as-needed
+# do not commit spec containing this (use for local testing only):
+%define                filterout_c     -Werror=format-security
+%define                filterout_cpp   -D_FORTIFY_SOURCE=.
+%define                filterout_cxx   -Werror=format-security
 
 # Ignore file in __spec_install_post_check_so
 BuildRequires: rpmbuild(macros) >= 1.583
 %define                skip_post_check_so      libunresolved.so.*
 
+# do not commit spec containing this (use for local testing only):
+%define                no_install_post_check_tmpfiles  1
+
 %description
 
 #%description -l pl.UTF-8
This page took 0.021188 seconds and 4 git commands to generate.