]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- noautodep macros turned off stripping/gzipping - fixed
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 25 Mar 2001 00:10:06 +0000 (00:10 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- new CFLAGS/LDFLAGS macros in macros.pld

Changed files:
    rpm.macros -> 1.45

rpm.macros

index c3ac1e4188b2af384f3f5a89568b00a7d6efc1ed..e391a7f96e0446e3ea5af030a3d54918116c4216 100644 (file)
@@ -1,10 +1,17 @@
+#-----------------------------------------------------------------
+# CFLAGS and LDFLAGS used to build
+
+%debugcflags   -O0 -g
+%rpmcflags     %{?debug:%debugcflags}%{!?debug:%optflags}
+%rpmldflags    %{!?debug:-s}
+
 #-----------------------------------------------------------------
 %configure { \
  if [ -n "$LINGUAS" ]; then unset LINGUAS; fi; \
- LDFLAGS="${LDFLAGS:-%{!?debug: -s}}" ; export LDFLAGS ; \
- CFLAGS="${CFLAGS:-%{!?debug:%optflags}%{?debug: -g -O0}}" ; export CFLAGS ; \
- CXXFLAGS="${CXXFLAGS:-%{!?debug:%optflags}%{?debug: -g -O0}}" ; export CXXFLAGS ; \
- FFLAGS="${FFLAGS:-%{!?debug:%optflags}%{?debug: -g -O0}}" ; export FFLAGS ; \
+ LDFLAGS="${LDFLAGS:-%rpmldflags}" ; export LDFLAGS ; \
+ CFLAGS="${CFLAGS:-%rpmcflags}" ; export CFLAGS ; \
+ CXXFLAGS="${CXXFLAGS:-%rpmcflags}" ; export CXXFLAGS ; \
+ FFLAGS="${FFLAGS:-%rpmcflags}" ; export FFLAGS ; \
  ./configure %{_target_platform} \
        --prefix=%{_prefix} \
        --exec-prefix=%{_exec_prefix} \
@@ -138,17 +145,14 @@ echo "Compress man and info pages."; \
        fi; } \
 } }
 
+%_source_payload        w9.gzdio
+%_binary_payload        w9.bzdio
+
 #-----------------------------------------------------------------
 # post %install sequence:
+# - autodeps exceptions
 # - compress all man and info pages,
 # - strip all ELF executables and ELF shared objects if not %debug.
-#
-%__spec_install_post { \
-%{__spec_install_post_strip} \
-%{__spec_install_post_compress_docs} }
-
-%_source_payload        w9.gzdio
-%_binary_payload        w9.bzdio
 
 ###################################################################
 # Requires/Provides automation
@@ -163,6 +167,8 @@ rm -f %{_builddir}/__rpm_*\
 %{?_noautoreqdep:for f in %{_noautoreqdep} ; do echo "$f" >> %{_builddir}/__rpm_noautoreqdep ; done }\
 %{?_noautoprovfiles:for f in %{_noautoprovfiles} ; do echo %{?buildroot:%{buildroot}}$f >> %{_builddir}/__rpm_noautoprovfiles ; done }\
 %{?_noautoprov:for f in %{_noautoprov} ; do echo "$f" >> %{_builddir}/__rpm_noautoprov ; done }\
+%{__spec_install_post_strip}\
+%{__spec_install_post_compress_docs}\
 %{__arch_install_post}\
 %{__os_install_post}\
 %{nil}
This page took 0.044345 seconds and 4 git commands to generate.