]> git.pld-linux.org Git - projects/template-specs.git/blobdiff - lib.spec
pecl: add example how to make failed tests as XFAIL
[projects/template-specs.git] / lib.spec
index 5b23e8191b9a0b4a27de13f7b7d1699d6fce560f..ec2cf39e2286f6fb408c695e93be3c6e0299d148 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
@@ -78,9 +85,13 @@ Static %{name} library.
 Statyczna biblioteka %{name}.
 
 %package apidocs
-Summary:       %{name} API documentation
+Summary:       API documentation for %{name} library
 Summary(pl.UTF-8):     Dokumentacja API biblioteki %{name}
 Group:         Documentation
+# if not arch-dependent
+%if "%{_rpmversion}" >= "5"
+BuildArch:     noarch
+%endif
 
 %description apidocs
 API documentation for %{name} library.
This page took 0.088553 seconds and 4 git commands to generate.