]> git.pld-linux.org Git - packages/rpm.git/blobdiff - rpm.macros
- updated to 3.0.5
[packages/rpm.git] / rpm.macros
index 5600a13706d97bb6a03b028b302192876ce1ae89..26bebd7dbe3fae9f3ec93dcd63ec2363e6ba94ed 100644 (file)
@@ -58,10 +58,12 @@ done \
   %{-C:cd ${_mydir}; unset _mydir}
 
 #-----------------------------------------------------------------
-%configure { CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
- CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
- FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \
- unset LINGUAS ; \
+%configure { \
+ LDFLAGS="${LDFLAGS}%{!?debug: -s}" ; export LDFLAGS ; \
+ CFLAGS="${CFLAGS:-%optflags}%{?debug: -g -O}" ; export CFLAGS ; \
+ CXXFLAGS="${CXXFLAGS:-%optflags}%{?debug: -g -O}" ; export CXXFLAGS ; \
+ FFLAGS="${FFLAGS:-%optflags}%{?debug: -g -O}" ; export FFLAGS ; \
+ unset LINGUAS || : ; \
  ./configure %{_target_platform} \
        --prefix=%{_prefix} \
        --exec-prefix=%{_exec_prefix} \
@@ -100,3 +102,8 @@ done \
 #%__find_requires_post /usr/lib/rpm/find-requires-post
 #%__find_requires      %{__find_requires_pre} | %{__find_requires_core} | %{__find_requires_post}
 
+# If non-empty "debug" macro defined, add "dbg" suffix to release number
+%_rpmfilename          %%{NAME}-%%{VERSION}-%%{RELEASE}%{?debug:dbg}.%%{ARCH}.rpm
+
+# remove .comment and .note from ELFs 
+%__spec_install_post   /usr/lib/rpm/remove-unneeded-elf-sections %{buildroot}
This page took 0.03503 seconds and 4 git commands to generate.