[4.0] Use strip (instead of eu-strip) to support --strip-debug of *.so at build time
[platform/upstream/rpm.git] / platform.in
1 # Per-platform rpm configuration file.
2
3 #==============================================================================
4 # ---- per-platform macros.
5 #
6 %_arch                  @RPMCANONARCH@
7 %_build_arch            @RPMCANONARCH@
8 %_vendor                @RPMCANONVENDOR@
9 %_os                    @RPMCANONOS@
10 %_gnu                   @RPMRC_GNU@
11 %_target_platform       %{_target_cpu}-%{_vendor}-%{_target_os}
12 %optflags               @RPMRC_OPTFLAGS@
13
14 %__isa_name             @ISANAME@
15 %__isa_bits             @ISABITS@
16 %__isa                  %{__isa_name}-%{__isa_bits}
17
18 # The default transaction color. This value is a set of bits to
19 # determine file and dependency affinity for this arch.
20 #       0       uncolored (i.e. use only arch as install hint)
21 #       1       Elf32 permitted
22 #       2       Elf64 permitted
23 %_transaction_color     @RPMCANONCOLOR@
24
25 #==============================================================================
26 # ---- configure macros.
27 #
28 %_prefix                @prefix@
29 %_exec_prefix           @exec_prefix@
30 %_bindir                @bindir@
31 %_sbindir               @sbindir@
32 %_libexecdir            @libexecdir@
33 %_datarootdir           @datarootdir@
34 %_datadir               @datadir@
35 %_sysconfdir            @sysconfdir@
36 %_sharedstatedir        @sharedstatedir@
37 %_localstatedir         @localstatedir@
38 %_lib                   @LIB@
39 %_libdir                @exec_prefix@/@LIB@
40 %_includedir            @includedir@
41 %_oldincludedir         @oldincludedir@
42 %_infodir               @infodir@
43 %_mandir                @mandir@
44 %_initddir              %{_sysconfdir}/init.d
45 # Deprecated misspelling, present for backwards compatibility.
46 %_initrddir             %{_initddir}
47
48 %_defaultdocdir         %{_datadir}/doc
49
50 %_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\
51         && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\
52         [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS")
53
54 #==============================================================================
55 # ---- Build policy macros.
56 #
57 #---------------------------------------------------------------------
58 #       Expanded at end of %install scriptlet.
59 #
60
61 %__arch_install_post   @ARCH_INSTALL_POST@
62
63 %__os_install_post    \
64     %{_rpmconfigdir}/brp-compress \
65     %{_rpmconfigdir}/brp-strip %{__strip} \
66 %{nil}
67
68 %__spec_install_post\
69     %{?__debug_package:%{__debug_install_post}}\
70     %{__arch_install_post}\
71     %{__os_install_post}\
72 %{nil}
73
74 @apple@#---------------------------------------------------------------------
75 @apple@#        Apple Darwin vendor specific macros
76 @apple@#
77 @apple@%_use_internal_dependency_generator     0
78 @apple@%__so    dylib
79 @Tizen@#---------------------------------------------------------------------
80 @Tizen@#        Expanded at end of %prep
81 @Tizen@#
82 @Tizen@%__id_u          @__ID_U@
83 @Tizen@%__chown_Rhf     @__CHOWN_RHF@
84 @Tizen@%__chgrp_Rhf     @__CHGRP_RHF@
85 @Tizen@%_fixowner       [ `%{__id_u}` = '0' ] && %{__chown_Rhf} root
86 @Tizen@%_fixgroup       [ `%{__id_u}` = '0' ] && %{__chgrp_Rhf} root
87 @Tizen@%_fixperms       %{__chmod} -Rf @FIXPERMS@
88 @Tizen@
89 @Tizen@#---------------------------------------------------------------------
90 @Tizen@#        Expanded at start of %build
91 @Tizen@#
92 @Tizen@%__spec_build_pre %{___build_pre}\
93 @Tizen@%{?buildroot:  %__rm -rf "$RPM_BUILD_ROOT"\
94 @Tizen@  %__mkdir_p `dirname "$RPM_BUILD_ROOT"`\
95 @Tizen@  %__mkdir "$RPM_BUILD_ROOT"\
96 @Tizen@}