]> git.pld-linux.org Git - projects/template-specs.git/blobdiff - lib.spec
- adjusted noarch subpackage rules and some descriptions, more pl
[projects/template-specs.git] / lib.spec
index f020fd34e57edf74e299bb4c48a6de4e136818bd..404a2b1b247737c3cb8f8e16ac80ad1d72f31d95 100644 (file)
--- a/lib.spec
+++ b/lib.spec
@@ -19,6 +19,8 @@ Source0:      %{name}-%{version}.tar.gz
 #BuildRequires:        automake
 #BuildRequires:        intltool
 #BuildRequires:        libtool
+# if using noarchpackage:
+#BuildRequires:        rpmbuild(macros) >= 1.752
 #Requires(postun):     -
 #Requires(pre,post):   -
 #Requires(preun):      -
@@ -34,11 +36,16 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %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
@@ -80,9 +87,11 @@ 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
+%{?noarchpackage}
 
 %description apidocs
 API documentation for %{name} library.
This page took 0.179793 seconds and 4 git commands to generate.