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}/rc.d/init.d
45 # Deprecated misspelling, present for backwards compatibility.
46 %_initrddir %{_initddir}
49 %_defaultdocdir %{_datadir}/doc
51 # Maximum number of CPU's to use when building, 0 for unlimited.
53 %_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\
54 && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\
55 ncpus_max=%{?_smp_ncpus_max}; \\\
56 if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\
57 if [ "$RPM_BUILD_NCPUS" -gt 1 ]; then echo "-j$RPM_BUILD_NCPUS"; fi)
59 #==============================================================================
60 # ---- Build policy macros.
62 #---------------------------------------------------------------------
63 # Expanded at end of %install scriptlet.
66 %__arch_install_post @ARCH_INSTALL_POST@
69 %{_rpmconfigdir}/brp-compress \
70 %{_rpmconfigdir}/brp-strip %{__strip} \
71 %{_rpmconfigdir}/brp-strip-static-archive %{__strip} \
72 %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} \
76 %{?__debug_package:%{__debug_install_post}}\
77 %{__arch_install_post}\
81 @apple@#---------------------------------------------------------------------
82 @apple@# Apple Darwin vendor specific macros
84 @apple@%_use_internal_dependency_generator 0
86 @Tizen@#---------------------------------------------------------------------
87 @Tizen@# Expanded at end of %prep
89 @Tizen@%__id_u @__ID_U@
90 @Tizen@%__chown_Rhf @__CHOWN_RHF@
91 @Tizen@%__chgrp_Rhf @__CHGRP_RHF@
92 @Tizen@%_fixowner [ `%{__id_u}` = '0' ] && %{__chown_Rhf} root
93 @Tizen@%_fixgroup [ `%{__id_u}` = '0' ] && %{__chgrp_Rhf} root
94 @Tizen@%_fixperms %{__chmod} -Rf @FIXPERMS@
96 @Tizen@#---------------------------------------------------------------------
97 @Tizen@# Expanded at start of %build
99 @Tizen@%__spec_build_pre %{___build_pre}\
100 @Tizen@%{?buildroot: %__rm -rf "$RPM_BUILD_ROOT"\
101 @Tizen@ %__mkdir_p `dirname "$RPM_BUILD_ROOT"`\
102 @Tizen@ %__mkdir "$RPM_BUILD_ROOT"\