|
|
2ff057 |
# Per-platform rpm configuration file.
|
|
|
2ff057 |
|
|
|
2ff057 |
#==============================================================================
|
|
|
2ff057 |
# ---- per-platform macros.
|
|
|
2ff057 |
#
|
|
|
2ff057 |
%_arch @RPMCANONARCH@
|
|
|
2ff057 |
%_build_arch @RPMCANONARCH@
|
|
|
2ff057 |
%_vendor @RPMCANONVENDOR@
|
|
|
2ff057 |
%_os @RPMCANONOS@
|
|
|
2ff057 |
%_gnu @RPMRC_GNU@
|
|
|
2ff057 |
%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os}
|
|
|
2ff057 |
%optflags @RPMRC_OPTFLAGS@
|
|
|
2ff057 |
|
|
|
2ff057 |
%__isa_name @ISANAME@
|
|
|
2ff057 |
%__isa_bits @ISABITS@
|
|
|
2ff057 |
%__isa %{__isa_name}-%{__isa_bits}
|
|
|
2ff057 |
|
|
|
2ff057 |
# The default transaction color. This value is a set of bits to
|
|
|
2ff057 |
# determine file and dependency affinity for this arch.
|
|
|
2ff057 |
# 0 uncolored (i.e. use only arch as install hint)
|
|
|
2ff057 |
# 1 Elf32 permitted
|
|
|
2ff057 |
# 2 Elf64 permitted
|
|
|
2ff057 |
%_transaction_color @RPMCANONCOLOR@
|
|
|
2ff057 |
|
|
|
2ff057 |
#==============================================================================
|
|
|
2ff057 |
# ---- configure macros.
|
|
|
2ff057 |
#
|
|
|
2ff057 |
%_prefix @prefix@
|
|
|
2ff057 |
%_exec_prefix @exec_prefix@
|
|
|
2ff057 |
%_bindir @bindir@
|
|
|
2ff057 |
%_sbindir @sbindir@
|
|
|
2ff057 |
%_libexecdir @libexecdir@
|
|
|
2ff057 |
%_datarootdir @datarootdir@
|
|
|
2ff057 |
%_datadir @datadir@
|
|
|
2ff057 |
%_sysconfdir @sysconfdir@
|
|
|
2ff057 |
%_sharedstatedir @sharedstatedir@
|
|
|
2ff057 |
%_localstatedir @localstatedir@
|
|
|
2ff057 |
%_lib @LIB@
|
|
|
2ff057 |
%_libdir @exec_prefix@/@LIB@
|
|
|
2ff057 |
%_includedir @includedir@
|
|
|
2ff057 |
%_oldincludedir @oldincludedir@
|
|
|
2ff057 |
%_infodir @infodir@
|
|
|
2ff057 |
%_mandir @mandir@
|
|
|
2ff057 |
%_initddir %{_sysconfdir}/rc.d/init.d
|
|
|
2ff057 |
# Deprecated misspelling, present for backwards compatibility.
|
|
|
2ff057 |
%_initrddir %{_initddir}
|
|
|
2ff057 |
%_rundir @RUNDIR@
|
|
|
2ff057 |
|
|
|
2ff057 |
%_defaultdocdir %{_datadir}/doc
|
|
|
2ff057 |
|
|
|
2ff057 |
# Maximum number of CPU's to use when building, 0 for unlimited.
|
|
|
2ff057 |
#%_smp_ncpus_max 0
|
|
|
2ff057 |
%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\
|
|
|
2ff057 |
&& RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\
|
|
|
2ff057 |
ncpus_max=%{?_smp_ncpus_max}; \\\
|
|
|
2ff057 |
if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\
|
|
|
2ff057 |
if [ "$RPM_BUILD_NCPUS" -gt 1 ]; then echo "-j$RPM_BUILD_NCPUS"; fi)
|
|
|
2ff057 |
|
|
|
2ff057 |
#==============================================================================
|
|
|
2ff057 |
# ---- Build policy macros.
|
|
|
2ff057 |
#
|
|
|
2ff057 |
#---------------------------------------------------------------------
|
|
|
2ff057 |
# Expanded at end of %install scriptlet.
|
|
|
2ff057 |
#
|
|
|
2ff057 |
|
|
|
2ff057 |
%__arch_install_post @ARCH_INSTALL_POST@
|
|
|
2ff057 |
%_python_bytecompile_errors_terminate_build 0
|
|
|
2ff057 |
%_python_bytecompile_extra 1
|
|
|
2ff057 |
|
|
|
2ff057 |
# Standard brp-macro naming:
|
|
|
2ff057 |
# convert all '-' in basename to '_', add two leading underscores.
|
|
|
2ff057 |
%__brp_compress %{_rpmconfigdir}/brp-compress
|
|
|
2ff057 |
%__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile
|
|
|
2ff057 |
%__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}"
|
|
|
2ff057 |
%__brp_strip %{_rpmconfigdir}/brp-strip %{__strip}
|
|
|
2ff057 |
%__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump}
|
|
|
2ff057 |
%__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared
|
|
|
2ff057 |
%__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip}
|
|
|
2ff057 |
|
|
|
2ff057 |
%__os_install_post \
|
|
|
2ff057 |
%{?__brp_compress} \
|
|
|
2ff057 |
%{?__brp_strip} \
|
|
|
2ff057 |
%{?__brp_strip_static_archive} \
|
|
|
2ff057 |
%{?__brp_strip_comment_note} \
|
|
|
2ff057 |
%{nil}
|
|
|
2ff057 |
|
|
|
2ff057 |
%__spec_install_post\
|
|
|
2ff057 |
%{?__debug_package:%{__debug_install_post}}\
|
|
|
2ff057 |
%{__arch_install_post}\
|
|
|
2ff057 |
%{__os_install_post}\
|
|
|
2ff057 |
%{nil}
|
|
|
2ff057 |
|
|
|
2ff057 |
@apple@#---------------------------------------------------------------------
|
|
|
2ff057 |
@apple@# Apple Darwin vendor specific macros
|
|
|
2ff057 |
@apple@#
|
|
|
2ff057 |
@apple@%_use_internal_dependency_generator 0
|
|
|
2ff057 |
@apple@%__so dylib
|