1 # Per-platform rpm configuration file.
3 #==============================================================================
4 # ---- per-platform macros.
7 %_build_arch @RPMCANONARCH@
8 %_vendor @RPMCANONVENDOR@
11 %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os}
12 %optflags @RPMRC_OPTFLAGS@
16 %__isa %{__isa_name}-%{__isa_bits}
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)
23 %_transaction_color @RPMCANONCOLOR@
25 #==============================================================================
26 # ---- configure macros.
29 %_exec_prefix @exec_prefix@
32 %_libexecdir @libexecdir@
33 %_datarootdir @datarootdir@
35 %_sysconfdir @sysconfdir@
36 %_sharedstatedir @sharedstatedir@
37 %_localstatedir @localstatedir@
39 %_libdir @exec_prefix@/@LIB@
40 %_includedir @includedir@
41 %_oldincludedir @oldincludedir@
44 %_initddir %{_sysconfdir}/init.d
45 # Deprecated misspelling, present for backwards compatibility.
46 %_initrddir %{_initddir}
48 %_defaultdocdir %{_datadir}/doc
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")
54 #==============================================================================
55 # ---- Build policy macros.
57 #---------------------------------------------------------------------
58 # Expanded at end of %install scriptlet.
61 %__arch_install_post @ARCH_INSTALL_POST@
64 %{_rpmconfigdir}/brp-compress \
65 %{_rpmconfigdir}/brp-strip %{__strip} \
69 %{?__debug_package:%{__debug_install_post}}\
70 %{__arch_install_post}\
74 @apple@#---------------------------------------------------------------------
75 @apple@# Apple Darwin vendor specific macros
77 @apple@%_use_internal_dependency_generator 0
79 @Tizen@#---------------------------------------------------------------------
80 @Tizen@# Expanded at end of %prep
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@
89 @Tizen@#---------------------------------------------------------------------
90 @Tizen@# Expanded at start of %build
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"\