File manager - Edit - /home/u774251322/domains/quickyums.com/public_html/static/img/logo/rpm.tar
Back
platform/ppciseries-linux/macros 0000644 00000006526 15043540723 0013116 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch ppc %_build_arch ppc %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g %__isa_name ppc %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/ppc64le-linux/macros 0000644 00000006542 15043540723 0012223 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch ppc64le %_build_arch ppc64le %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g %__isa_name ppc %__isa_bits 64 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 3 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib64 %_libdir %{_prefix}/lib64 %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/i386-linux/macros 0000644 00000006560 15043540723 0011437 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch i386 %_build_arch i386 %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g -march=i386 -mtune=i686 %__isa_name x86 %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/pentium4-linux/macros 0000644 00000006550 15043540723 0012512 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch i386 %_build_arch i386 %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g -march=pentium4 %__isa_name x86 %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/noarch-linux/macros 0000644 00000006404 15043540723 0012215 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch noarch %_build_arch noarch %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/sparc-linux/macros 0000644 00000006563 15043540723 0012061 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch sparc %_build_arch sparc %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g -m32 -mtune=ultrasparc %__isa_name sparc %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/sh3-linux/macros 0000644 00000006525 15043540723 0011444 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch sh3 %_build_arch sh3 %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g %__isa_name sh %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/i486-linux/macros 0000644 00000006544 15043540723 0011442 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch i386 %_build_arch i386 %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g -march=i486 %__isa_name x86 %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/armv4b-linux/macros 0000644 00000006546 15043540723 0012145 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch arm %_build_arch arm %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g -march=armv4 %__isa_name armv4b %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/sh4a-linux/macros 0000644 00000006536 15043540723 0011610 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch sh4a %_build_arch sh4a %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g -mieee %__isa_name sh %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/mipsel-linux/macros 0000644 00000006535 15043540723 0012241 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch mipsel %_build_arch mipsel %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g %__isa_name mips %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/armv3l-linux/macros 0000644 00000006546 15043540723 0012156 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch arm %_build_arch arm %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g -march=armv3 %__isa_name armv3l %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/ppc64iseries-linux/macros 0000644 00000006523 15043540723 0013265 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch ppc %_build_arch ppc %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -g %__isa_name ppc %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/armv8l-linux/macros 0000644 00000006550 15043540723 0012156 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch arm %_build_arch arm %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g -march=armv8-a %__isa_name armv8l %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/armv5tel-linux/macros 0000644 00000006552 15043540723 0012506 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch arm %_build_arch arm %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g -march=armv5te %__isa_name armv5tel %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/amd64-linux/macros 0000644 00000006540 15043540723 0011657 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch x86_64 %_build_arch x86_64 %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g %__isa_name x86 %__isa_bits 64 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 3 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib64 %_libdir %{_prefix}/lib64 %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/sparcv9v-linux/macros 0000644 00000006560 15043540723 0012523 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch sparc %_build_arch sparc %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g -m32 -mtune=niagara %__isa_name sparc %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/alpha-linux/macros 0000644 00000006543 15043540723 0012034 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch alpha %_build_arch alpha %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g -mieee %__isa_name alpha %__isa_bits 64 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/sh-linux/macros 0000644 00000006520 15043540723 0011354 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch sh %_build_arch sh %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -g %__isa_name sh %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/armv5tl-linux/macros 0000644 00000006550 15043540723 0012337 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch arm %_build_arch arm %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g -march=armv5t %__isa_name armv5tl %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/alphaev56-linux/macros 0000644 00000006557 15043540723 0012547 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch alpha %_build_arch alpha %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g -mieee -mtune=ev56 %__isa_name alpha %__isa_bits 64 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/alphaev6-linux/macros 0000644 00000006556 15043540723 0012461 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch alpha %_build_arch alpha %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g -mieee -mtune=ev6 %__isa_name alpha %__isa_bits 64 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/riscv64-linux/macros 0000644 00000006544 15043540723 0012250 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch riscv64 %_build_arch riscv64 %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g %__isa_name riscv %__isa_bits 64 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 3 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib64 %_libdir %{_prefix}/lib64 %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/ppcpseries-linux/macros 0000644 00000006526 15043540723 0013125 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch ppc %_build_arch ppc %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g %__isa_name ppc %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/mips64r6el-linux/macros 0000644 00000006553 15043540723 0012663 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch mips64r6el %_build_arch mips64r6el %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g %__isa_name mipsr6 %__isa_bits 64 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 3 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib64 %_libdir %{_prefix}/lib64 %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/aarch64-linux/macros 0000644 00000006544 15043540723 0012200 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch aarch64 %_build_arch aarch64 %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g %__isa_name aarch %__isa_bits 64 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 3 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib64 %_libdir %{_prefix}/lib64 %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/s390-linux/macros 0000644 00000006531 15043540723 0011442 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch s390 %_build_arch s390 %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g %__isa_name s390 %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/ppc8260-linux/macros 0000644 00000006526 15043540723 0012052 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch ppc %_build_arch ppc %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g %__isa_name ppc %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/mipsr6el-linux/macros 0000644 00000006543 15043540723 0012510 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch mipsr6el %_build_arch mipsr6el %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g %__isa_name mipsr6 %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/mips64r6-linux/macros 0000644 00000006547 15043540723 0012345 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch mips64r6 %_build_arch mips64r6 %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g %__isa_name mipsr6 %__isa_bits 64 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 3 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib64 %_libdir %{_prefix}/lib64 %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/armv8hl-linux/macros 0000644 00000006606 15043540723 0012330 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch arm %_build_arch arm %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g -march=armv8-a -mfloat-abi=hard -mfpu=vfpv4 %__isa_name armv8hl %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/i586-linux/macros 0000644 00000006544 15043540723 0011443 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch i386 %_build_arch i386 %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g -march=i586 %__isa_name x86 %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/ppc32dy4-linux/macros 0000644 00000006526 15043540723 0012320 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch ppc %_build_arch ppc %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g %__isa_name ppc %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/armv6hl-linux/macros 0000644 00000006602 15043540723 0012322 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch arm %_build_arch arm %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g -march=armv6 -mfloat-abi=hard -mfpu=vfp %__isa_name armv6hl %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/sh4-linux/macros 0000644 00000006534 15043540723 0011445 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch sh4 %_build_arch sh4 %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g -mieee %__isa_name sh %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/sparcv9-linux/macros 0000644 00000006563 15043540723 0012340 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch sparc %_build_arch sparc %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g -m32 -mtune=ultrasparc %__isa_name sparc %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/m68k-linux/macros 0000644 00000006612 15043540723 0011531 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch m68k %_build_arch m68k %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g -fomit-frame-pointer -O2 -g -fomit-frame-pointer %__isa_name m68k %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/mips64el-linux/macros 0000644 00000006545 15043540723 0012414 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch mips64el %_build_arch mips64el %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g %__isa_name mips %__isa_bits 64 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 3 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib64 %_libdir %{_prefix}/lib64 %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/athlon-linux/macros 0000644 00000006546 15043540723 0012237 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch i386 %_build_arch i386 %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g -march=athlon %__isa_name x86 %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/armv4l-linux/macros 0000644 00000006546 15043540723 0012157 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch arm %_build_arch arm %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g -march=armv4 %__isa_name armv4l %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/ppc8560-linux/macros 0000644 00000006526 15043540723 0012055 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch ppc %_build_arch ppc %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g %__isa_name ppc %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/s390x-linux/macros 0000644 00000006537 15043540723 0011640 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch s390x %_build_arch s390x %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g %__isa_name s390 %__isa_bits 64 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 3 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib64 %_libdir %{_prefix}/lib64 %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/alphapca56-linux/macros 0000644 00000006560 15043540723 0012672 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch alpha %_build_arch alpha %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g -mieee -mtune=pca56 %__isa_name alpha %__isa_bits 64 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/ppc64-linux/macros 0000644 00000006536 15043540723 0011705 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch ppc64 %_build_arch ppc64 %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g %__isa_name ppc %__isa_bits 64 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 3 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib64 %_libdir %{_prefix}/lib64 %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/ia64-linux/macros 0000644 00000006527 15043540723 0011514 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch ia64 %_build_arch ia64 %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g %__isa_name ia %__isa_bits 64 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 2 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/x86_64-linux/macros 0000644 00000006540 15043540723 0011702 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch x86_64 %_build_arch x86_64 %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g %__isa_name x86 %__isa_bits 64 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 3 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib64 %_libdir %{_prefix}/lib64 %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/mipsr6-linux/macros 0000644 00000006537 15043540723 0012172 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch mipsr6 %_build_arch mipsr6 %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g %__isa_name mipsr6 %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/armv6l-linux/macros 0000644 00000006546 15043540723 0012161 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch arm %_build_arch arm %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g -march=armv6 %__isa_name armv6l %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/sparc64-linux/macros 0000644 00000006573 15043540723 0012234 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch sparc64 %_build_arch sparc64 %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g -m64 -mtune=ultrasparc %__isa_name sparc %__isa_bits 64 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 3 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib64 %_libdir %{_prefix}/lib64 %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/pentium3-linux/macros 0000644 00000006550 15043540723 0012511 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch i386 %_build_arch i386 %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g -march=pentium3 %__isa_name x86 %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/mips64-linux/macros 0000644 00000006541 15043540723 0012067 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch mips64 %_build_arch mips64 %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g %__isa_name mips %__isa_bits 64 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 3 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib64 %_libdir %{_prefix}/lib64 %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/mips-linux/macros 0000644 00000006531 15043540723 0011714 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch mips %_build_arch mips %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g %__isa_name mips %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/sparcv8-linux/macros 0000644 00000006570 15043540723 0012335 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch sparc %_build_arch sparc %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g -m32 -mtune=ultrasparc -mv8 %__isa_name sparc %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/armv7hl-linux/macros 0000644 00000006612 15043540723 0012324 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch arm %_build_arch arm %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g -march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 %__isa_name armv7hl %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/ppc64pseries-linux/macros 0000644 00000006523 15043540723 0013274 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch ppc %_build_arch ppc %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -g %__isa_name ppc %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/armv7l-linux/macros 0000644 00000006546 15043540723 0012162 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch arm %_build_arch arm %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g -march=armv7 %__isa_name armv7l %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/geode-linux/macros 0000644 00000006552 15043540723 0012032 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch i386 %_build_arch i386 %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -Os -g -m32 -march=geode %__isa_name x86 %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/ppc-linux/macros 0000644 00000006526 15043540723 0011532 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch ppc %_build_arch ppc %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g %__isa_name ppc %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/alphaev67-linux/macros 0000644 00000006557 15043540723 0012551 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch alpha %_build_arch alpha %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g -mieee -mtune=ev67 %__isa_name alpha %__isa_bits 64 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/alphaev5-linux/macros 0000644 00000006556 15043540723 0012460 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch alpha %_build_arch alpha %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g -mieee -mtune=ev5 %__isa_name alpha %__isa_bits 64 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/armv7hnl-linux/macros 0000644 00000006605 15043540723 0012504 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch arm %_build_arch arm %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g -march=armv7-a -mfloat-abi=hard -mfpu=neon %__isa_name armv7hl %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/armv5tejl-linux/macros 0000644 00000006553 15043540723 0012661 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch arm %_build_arch arm %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g -march=armv5te %__isa_name armv5tejl %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/sparc64v-linux/macros 0000644 00000006570 15043540723 0012417 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch sparc64 %_build_arch sparc64 %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g -m64 -mtune=niagara %__isa_name sparc %__isa_bits 64 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 3 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib64 %_libdir %{_prefix}/lib64 %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/ppc64p7-linux/macros 0000644 00000006571 15043540723 0012153 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch ppc64 %_build_arch ppc64 %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O3 -mtune=power7 -mcpu=power7 -g %__isa_name ppc %__isa_bits 64 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 3 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib64 %_libdir %{_prefix}/lib64 %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/i686-linux/macros 0000644 00000006544 15043540723 0011444 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch i386 %_build_arch i386 %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g -march=i686 %__isa_name x86 %__isa_bits 32 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 0 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib %_libdir %{_prefix}/lib %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} platform/ia32e-linux/macros 0000644 00000006540 15043540723 0011647 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_arch x86_64 %_build_arch x86_64 %_vendor redhat %_os linux %_gnu -gnu %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %optflags -O2 -g %__isa_name x86 %__isa_bits 64 %__isa %{__isa_name}-%{__isa_bits} # The default transaction color. This value is a set of bits to # determine file and dependency affinity for this arch. # 0 uncolored (i.e. use only arch as install hint) # 1 Elf32 permitted # 2 Elf64 permitted %_transaction_color 3 #============================================================================== # ---- configure macros. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datarootdir %{_prefix}/share %_datadir %{_datarootdir} %_sysconfdir /etc %_sharedstatedir /var/lib %_localstatedir /var %_lib lib64 %_libdir %{_prefix}/lib64 %_includedir %{_prefix}/include %_oldincludedir /usr/include %_infodir %{_datarootdir}/info %_mandir %{_datarootdir}/man %_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} %_rundir /run %_defaultdocdir %{_datadir}/doc # Maximum number of CPU's to use when building, 0 for unlimited. #%_smp_ncpus_max 0 %_smp_build_ncpus %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="%{getncpus}"; \\\ ncpus_max=%{?_smp_ncpus_max}; \\\ if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ echo "$RPM_BUILD_NCPUS";) %_smp_mflags -j%{_smp_build_ncpus} # Maximum number of threads to use when building, 0 for unlimited #%_smp_nthreads_max 0 %_smp_build_nthreads %{_smp_build_ncpus} #============================================================================== # ---- Build policy macros. # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ %{__rm} -rf "%{buildroot}"\ %{__mkdir_p} "%{dirname:%{buildroot}}"\ %{__mkdir} "%{buildroot}"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post %{nil} %_python_bytecompile_errors_terminate_build 0 %_python_bytecompile_extra 1 # Standard brp-macro naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_compress %{_rpmconfigdir}/brp-compress %{?_prefix} %__brp_java_gcjcompile %{_rpmconfigdir}/brp-java-bytecompile %__brp_python_bytecompile %{_rpmconfigdir}/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_strip %{_rpmconfigdir}/brp-strip %{__strip} %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} %__os_install_post \ %{?__brp_compress} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ %{nil} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} rpm.daily 0000644 00000000450 15043540723 0006370 0 ustar 00 #!/bin/sh tmpfile=`/bin/mktemp /var/log/rpmpkgs.XXXXXXXXX` || exit 1 /bin/rpm -qa --qf '%{name}-%{version}-%{release}.%{arch}.rpm\n' 2>&1 \ | /bin/sort > "$tmpfile" if [ ! -s "$tmpfile" ]; then rm -f "$tmpfile" exit 1 fi /bin/mv "$tmpfile" /var/log/rpmpkgs /bin/chmod 0644 /var/log/rpmpkgs macros 0000644 00000126177 15043540723 0005774 0 ustar 00 #/*! \page config_macros Default configuration: /usr/lib/rpm/macros # \verbatim # # This is a global RPM configuration file. All changes made here will # be lost when the rpm package is upgraded. Any per-system configuration # should be added to /etc/rpm/macros, while per-user configuration should # be added to ~/.rpmmacros. # #============================================================================== # ---- A macro that expands to nothing. # %nil %{!?nil} #============================================================================== # ---- filesystem macros. # %_usr /usr %_usrsrc %{_usr}/src %_var /var #============================================================================== # ---- Generally useful path macros. # %__7zip /usr/bin/7za %__awk gawk %__bzip2 /usr/bin/bzip2 %__cat /usr/bin/cat %__chgrp /usr/bin/chgrp %__chmod /usr/bin/chmod %__chown /usr/bin/chown %__cp /usr/bin/cp %__cpio /usr/bin/cpio %__file /usr/bin/file %__gpg /usr/bin/gpg2 %__grep /usr/bin/grep %__gzip /usr/bin/gzip %__id /usr/bin/id %__id_u %{__id} -u %__install /usr/bin/install %__ln_s ln -s %__lrzip /usr/bin/lrzip %__lzip /usr/bin/lzip # Deprecated, use %__xz instead. %__lzma %__xz --format=lzma %__xz /usr/bin/xz %__make /usr/bin/make %__mkdir /usr/bin/mkdir %__mkdir_p /usr/bin/mkdir -p %__mv /usr/bin/mv %__patch /usr/bin/patch %__restorecon /sbin/restorecon %__rm /usr/bin/rm %__rsh /usr/bin/rsh %__sed /usr/bin/sed %__semodule /usr/bin/semodule %__ssh /usr/bin/ssh %__tar /usr/bin/tar %__unzip /usr/bin/unzip %__zstd /usr/bin/zstd %__gem /usr/bin/gem %__git /usr/bin/git %__hg /usr/bin/hg %__bzr /usr/bin/bzr %__quilt /usr/bin/quilt #============================================================================== # ---- Build system path macros. # %__ar ar %__as as %__cc gcc %__cpp gcc -E %__cxx g++ %__ld /usr/bin/ld %__nm /usr/bin/nm %__objcopy /usr/bin/objcopy %__objdump /usr/bin/objdump %__ranlib ranlib %__remsh %{__rsh} %__strip /usr/bin/strip %__find_debuginfo /usr/bin/find-debuginfo #============================================================================== # Conditional build stuff. # Check if symbol is defined. # Example usage: %if %{defined with_foo} && %{undefined with_bar} ... %defined() %{expand:%%{?%{1}:1}%%{!?%{1}:0}} %undefined() %{expand:%%{?%{1}:0}%%{!?%{1}:1}} # Handle conditional builds. # (see 'conditionalbuilds' in the manual) # # Internally, the `--with foo` option defines the macro `_with_foo` and the # `--without foo` option defines the macro `_without_foo`. # Based on those and a default (used when neither is given), bcond macros # define the macro `with_foo`, which should later be checked: %bcond() %[ (%2)\ ? "%{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}"\ : "%{expand:%%{?_with_%{1}:%%global with_%{1} 1}}"\ ] %bcond_with() %bcond %{1} 0 %bcond_without() %bcond %{1} 1 # Shorthands for %{defined with_...}: %with() %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}} %without() %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}} # #============================================================================== # ---- Required rpmrc macros. # Macros that used to be initialized as a side effect of rpmrc parsing. # These are the default values that can be overridden by other # (e.g. per-platform, per-system, per-packager, per-package) macros. # # The directory where rpm's configuration and scripts live %_rpmconfigdir %{getconfdir} # The directory where rpm's macro files live %_rpmmacrodir %{_rpmconfigdir}/macros.d # The directory where rpm's addon lua libraries live %_rpmluadir %{_rpmconfigdir}/lua # The directory where sources/patches will be unpacked and built. %_builddir %{_topdir}/BUILD # The interpreter used for build scriptlets. %_buildshell /bin/sh # The path to the bzip2 executable (legacy, use %{__bzip2} instead). %_bzip2bin %{__bzip2} # The location of the rpm database file(s). %_dbpath %{_var}/lib/rpm # The location of the rpm database file(s) after "rpm --rebuilddb". %_dbpath_rebuild %{_dbpath} %_keyringpath %{_dbpath}/pubkeys/ # # Path to script that creates debug symbols in a /usr/lib/debug # shadow tree. # # A spec file can %%define _find_debuginfo_opts to pass options to # the script. See the script for details. # # Vendor spec files (eg redhat-rpm-config:macros) can %%define # _find_debuginfo_vendor_opts to pass options to the script. # %__debug_install_post \ %{__find_debuginfo} \\\ %{?_smp_build_ncpus:-j%{_smp_build_ncpus}} \\\ %{?_missing_build_ids_terminate_build:--strict-build-id} \\\ %{?_no_recompute_build_ids:-n} \\\ %{?_include_minidebuginfo:-m} \\\ %{?_include_gdb_index:-i} \\\ %{?_unique_build_ids:--build-id-seed "%{VERSION}-%{RELEASE}"} \\\ %{?_unique_debug_names:--unique-debug-suffix "-%{VERSION}-%{RELEASE}.%{_arch}"} \\\ %{?_unique_debug_srcs:--unique-debug-src-base "%{name}-%{VERSION}-%{RELEASE}.%{_arch}"} \\\ %{?_find_debuginfo_dwz_opts} \\\ %{?_find_debuginfo_opts} \\\ %{?_find_debuginfo_vendor_opts} \\\ %{?_debugsource_packages:-S debugsourcefiles.list} \\\ "%{_builddir}/%{?buildsubdir}"\ %{nil} # Template for debug information sub-package. %_debuginfo_template \ %package debuginfo\ Summary: Debug information for package %{name}\ Group: Development/Debug\ AutoReq: 0\ AutoProv: 1\ %description debuginfo\ This package provides debug information for package %{name}.\ Debug information is useful when developing applications that use this\ package or when debugging this package.\ %files debuginfo -f debugfiles.list\ %{nil} %_debugsource_template \ %package debugsource\ Summary: Debug sources for package %{name}\ Group: Development/Debug\ AutoReqProv: 0\ %description debugsource\ This package provides debug sources for package %{name}.\ Debug sources are useful when developing applications that use this\ package or when debugging this package.\ %files debugsource -f debugsourcefiles.list\ %{nil} %debug_package \ %ifnarch noarch\ %global __debug_package 1\ %_debuginfo_template\ %{?_debugsource_packages:%_debugsource_template}\ %endif\ %{nil} %_defaultdocdir %{_datadir}/doc %_defaultlicensedir %{_datadir}/licenses # Following macros for filtering auto deps must not be used in spec files. # Their purpouse is to set up global filtering for all packages. If you need # to set up specific filtering for your package use %__requires_exclude_from # and %__provides_exclude_from instead. %__global_requires_exclude_from %{?_docdir:%{_docdir}} %__global_provides_exclude_from %{?_docdir:%{_docdir}} # The path to the gzip executable (legacy, use %{__gzip} instead). %_gzipbin %{__gzip} # # Maximum age of preserved changelog entries in binary packages, # relative to newest existing entry. Unix timestamp format. %_changelog_trimage 0 # The Unix time of the latest kept changelog entry in binary packages. # DEPRACATED, use %_changelog_trimage instead. %_changelog_trimtime 0 # If true, set the SOURCE_DATE_EPOCH environment variable # to the timestamp of the topmost changelog entry %source_date_epoch_from_changelog 0 # If true, make sure that buildtime in built rpms # is set to the value of SOURCE_DATE_EPOCH. # Is ignored when SOURCE_DATE_EPOCH is not set. %use_source_date_epoch_as_buildtime 0 # If true, make sure that timestamps in built rpms # are not later than the value of SOURCE_DATE_EPOCH. # Is ignored when SOURCE_DATE_EPOCH is not set. %clamp_mtime_to_source_date_epoch 0 # The directory where newly built binary packages will be written. %_rpmdir %{_topdir}/RPMS # A template used to generate the output binary package file name # (legacy). %_rpmfilename %{_build_name_fmt} # The directory where sources/patches from a source package will be # installed. This is also where sources/patches are found when building. %_sourcedir %{_topdir}/SOURCES # The directory where the spec file from a source package will be # installed. %_specdir %{_topdir}/SPECS # The directory where newly built source packages will be written. %_srcrpmdir %{_topdir}/SRPMS # The directory where buildroots will be created. %_buildrootdir %{_topdir}/BUILDROOT # Build root path, where %install installs the package during build. %buildroot %{_buildrootdir}/%{NAME}-%{VERSION}-%{RELEASE}.%{_arch} # Directory where temporaray files can be created. %_tmppath %{_var}/tmp # Path to top of build area. %_topdir %{getenv:HOME}/rpmbuild # The path to the unzip executable (legacy, use %{__unzip} instead). %_unzipbin %{__unzip} #============================================================================== # ---- Optional rpmrc macros. # Macros that are initialized as a side effect of rpmrc and/or spec # file parsing. # # The sub-directory (relative to %{_builddir}) where sources are compiled. # This macro is set after processing %setup, either explicitly from the # value given to -n or the default name-version. # #%buildsubdir # Configurable distribution information, same as Distribution: tag in a # specfile. # #%distribution # Configurable distribution URL, same as DistURL: tag in a specfile. # The URL will be used to supply reliable information to tools like # rpmfind. # # Note: You should not configure with disturl (or build packages with # the DistURL: tag) unless you are willing to supply content in a # yet-to-be-determined format at the URL specified. # #%disturl # Configurable distribution tag, same as DistTag: tag in a specfile. # The tag will be used to supply reliable information to tools like # rpmfind. # #%disttag # Configurable bug URL, same as BugURL: tag in a specfile. # The URL will be used to supply reliable information to where # to file bugs. # #%bugurl # Boolean (i.e. 1 == "yes", 0 == "no") that controls whether files # marked as %doc should be installed. #%_excludedocs # The signature to use and the location of configuration files for # signing packages with GNU gpg. # #%_gpg_name #%_gpg_path # The port and machine name of an HTTP proxy host (used for FTP/HTTP). # #%_httpport #%_httpproxy # The PATH put into the environment before running %pre/%post et al. # %_install_script_path /sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin # A colon separated list of desired locales to be installed; # "all" means install all locale specific files. # %_install_langs all # The value of CLASSPATH in build scriptlets (iff configured). # #%_javaclasspath all # Import packaging conventions from jpackage.org (prefixed with _ # to avoid name collisions). # %_javadir %{_datadir}/java %_javadocdir %{_datadir}/javadoc # Set ModularityLabel: for packages being build # #%modularitylabel # A colon separated list of paths where files should *not* be installed. # Usually, these are network file system mount points. # #%_netsharedpath # (experimental) # The type of pattern match used on rpmdb iterator selectors: # "default" simple glob-like regex, periods will be escaped, # splats will have period prepended, full "^...$" match # required. Also, file path tags will use glob(7). # "strcmp" compare strings # "regex" regex(7) patterns using regcomp(3)/regexec(3) # "glob" glob(7) patterns using fnmatch(3) # %_query_selector_match default # Configurable packager information, same as Packager: in a specfile. # #%packager # Compression type and level for source/binary package payloads. # "w9.gzdio" gzip level 9 (default). # "w9.bzdio" bzip2 level 9. # "w6.xzdio" xz level 6, xz's default. # "w7T16.xzdio" xz level 7 using 16 thread (xz only) # "w6.lzdio" lzma-alone level 6, lzma's default # "w3.zstdio" zstd level 3, zstd's default # "w.ufdio" uncompressed # #%_source_payload w9.gzdio #%_binary_payload w9.gzdio # Algorithm to use for generating file checksum digests on build. # If not specified or 0, MD5 is used. # WARNING: non-MD5 is backwards incompatible with rpm < 4.6! # The supported algorithms may depend on the underlying crypto # implementation but generally at least the following are supported: # 1 MD5 # 2 SHA1 # 8 SHA256 (default) # 9 SHA384 # 10 SHA512 # %_source_filedigest_algorithm 8 %_binary_filedigest_algorithm 8 # Configurable vendor information, same as Vendor: in a specfile. # #%vendor # Default fuzz level for %patch in spec file. %_default_patch_fuzz 0 # Default patch flags #%_default_patch_flags -s %_default_patch_flags --no-backup-if-mismatch #============================================================================== # ---- Build configuration macros. # # Script gets packaged file list on input and buildroot as first parameter. # Returns list of unpackaged files, i.e. files in $RPM_BUILD_ROOT not packaged. # # Note: Disable (by commenting out) for legacy compatibility. %__check_files %{_rpmconfigdir}/check-files %{buildroot} # # Should unpackaged files in a build root terminate a build? # # Note: The default value should be 0 for legacy compatibility. %_unpackaged_files_terminate_build 1 # # Should missing %doc files in the build directory terminate a build? # # Note: The default value should be 0 for legacy compatibility. %_missing_doc_files_terminate_build 1 # # Should empty %files manifest file terminate a build? # # Note: The default value should be 0 for legacy compatibility. %_empty_manifest_terminate_build 1 # # Should binaries in noarch packages terminate a build? %_binaries_in_noarch_packages_terminate_build 1 # Should invalid utf8 encoding in package metadata terminate a build? %_invalid_encoding_terminates_build 1 # Should invalid version format in requires, provides, ... terminate a build? %_wrong_version_format_terminate_build 1 # # Should rpm try to download missing sources at build-time? # Enabling this is dangerous as long as rpm has no means to validate # the integrity of the download with a digest or signature. %_disable_source_fetch 1 # # Program to call for each successfully built and written binary package. # The package name is passed to the program as a command-line argument. # #%_build_pkgcheck %{_bindir}/rpmlint # # Program to call for the whole binary package set after build. # The package set is passed to the program via command-line arguments. # #%_build_pkgcheck_set %{_bindir}/rpmlint # # Program to call for successfully built and written SRPM. # The package name is passed to the program as a command-line argument. # #%_build_pkgcheck_srpm %{_bindir}/rpmlint # # Should the build of packages fail if package checker (if defined) returns # non-zero exit status? # #%_nonzero_exit_pkgcheck_terminate_build 1 # # Should an ELF file processed by find-debuginfo.sh having no build ID # terminate a build? This is left undefined to disable it and defined to # enable. # #%_missing_build_ids_terminate_build 1 # # Include minimal debug information in build binaries. # Requires _enable_debug_packages. # #%_include_minidebuginfo 1 # # Include a .gdb_index section in the .debug files. # Requires _enable_debug_packages and gdb-add-index installed. # #%_include_gdb_index 1 # # Defines how and if build_id links are generated for ELF files. # The following settings are supported: # # - none # No build_id links are generated. # # - alldebug # build_id links are generated only when the __debug_package global is # defined. This will generate build_id links in the -debuginfo package # for both the main file as /usr/lib/debug/.build-id/xx/yyy and for # the .debug file as /usr/lib/debug/.build-id/xx/yyy.debug. # This is the old style build_id links as generated by the original # find-debuginfo.sh script. # # - separate # build_id links are generate for all binary packages. If this is a # main package (the __debug_package global isn't set) then the # build_id link is generated as /usr/lib/.build-id/xx/yyy. If this is # a -debuginfo package (the __debug_package global is set) then the # build_id link is generated as /usr/lib/debug/.build-id/xx/yyy. # # - compat # Same as for "separate" but if the __debug_package global is set then # the -debuginfo package will have a compatibility link for the main # ELF /usr/lib/debug/.build-id/xx/yyy -> /usr/lib/.build-id/xx/yyy %_build_id_links compat # Whether build-ids should be made unique between package version/releases # when generating debuginfo packages. If set to 1 this will pass # --build-id-seed "%{VERSION}-%{RELEASE}" to find-debuginfo.sh which will # pass it onto debugedit --build-id-seed to be used to prime the build-id # note hash. %_unique_build_ids 1 # Do not recompute build-ids but keep whatever is in the ELF file already. # Cannot be used together with _unique_build_ids (which forces recomputation). # Defaults to undefined (unset). #%_no_recompute_build_ids 1 # Whether .debug files should be made unique between package version, # release and architecture. If set to 1 this will pass # --unique-debug-suffix "-%{VERSION}-%{RELEASE}.%{_arch} find-debuginfo.sh # to create debuginfo files which end in -<ver>-<rel>.<arch>.debug # Requires _unique_build_ids. %_unique_debug_names 1 # Whether the /usr/debug/src/<package> directories should be unique between # package version, release and architecture. If set to 1 this will pass # --unique-debug-src-base "%{name}-%{VERSION}-%{RELEASE}.%{_arch}" to # find-debuginfo.sh to name the directory under /usr/debug/src as # <name>-<ver>-<rel>.<arch>. %_unique_debug_srcs 1 # Whether rpm should put debug source files into its own subpackage #%_debugsource_packages 1 # Whether rpm should create extra debuginfo packages for each subpackage #%_debuginfo_subpackages 1 # # Use internal dependency generator rather than external helpers? %_use_internal_dependency_generator 1 # # Filter GLIBC_PRIVATE Provides: and Requires: %_filter_GLIBC_PRIVATE 0 # Directories whose contents should be considered as documentation. %__docdir_path %{_datadir}/doc:%{_datadir}/man:%{_datadir}/info:%{_datadir}/gtk-doc/html:%{_datadir}/gnome/help:%{?_docdir}:%{?_mandir}:%{?_infodir}:%{?_javadocdir}:/usr/doc:/usr/man:/usr/info:/usr/X11R6/man # # Path to scripts to autogenerate package dependencies, # # Note: Used iff _use_internal_dependency_generator is zero. #%__find_provides %{_rpmconfigdir}/rpmdeps --provides #%__find_requires %{_rpmconfigdir}/rpmdeps --requires %__find_provides %{_rpmconfigdir}/find-provides %__find_requires %{_rpmconfigdir}/find-requires #%__find_conflicts ??? #%__find_obsoletes ??? # # Path to file attribute classifications for automatic dependency # extraction, used when _use_internal_dependency_generator # is used (on by default). Files can have any number of attributes # attached to them, and dependencies are separately extracted for # each attribute. # # To define a new file attribute called "myattr", add a file named # "myattr" to this directory, defining the requires and/or provides # finder script(s) + magic and/or path pattern regex(es). # provides finder and # %__myattr_requires path + args to requires finder script for <myattr> # %__myattr_provides path + args to provides finder script for <myattr> # %__myattr_magic libmagic classification match regex # %__myattr_path path based classification match regex # %__myattr_flags flags to control behavior (just "exeonly" for now) # %__myattr_exclude_magic exclude by magic regex # %__myattr_exclude_path exclude by path regex # %_fileattrsdir %{_rpmconfigdir}/fileattrs # This macro defines how much space (in bytes) in package should be # reserved for gpg signatures during building of a package. If this space is # big enough for gpg signatures to fit into it then signing of the packages is # very quick because it is not necessary to rewrite the whole package to make # some space for gpg signatures. %__gpg_reserved_space 4096 #============================================================================== # ---- Database configuration macros. # # Select backend database. The following values are supported: # bdb Berkeley DB # ndb new data base format # sqlite Sqlite database # dummy dummy backend (no actual functionality) # %_db_backend sqlite # # Macros used to configure Berkley db parameters. # # rpmdb macro configuration values are a colon (or white space) separated # list of tokens, with an optional '!' negation to explicitly disable bit # values, or a "=value" if a parameter. A per-tag value is used (e.g. # %_dbi_config_Packages) if defined, otherwise a per-rpmdb default # (e.g. %_dbi_config). # # Here's a short list of the tokens, with a guess of whether the option is # useful: # (nothing) currently used in rpm, known to work. # "+++" under development, will be supported in rpm eventually. # "???" I have no clue, you're mostly on your own. # # If you do find yourself inclined to fiddle, here's what I see (shrug): # 1) Only the value of mp_size has any serious impact on overall performance, # and you will need ~256Kb to handle a typical machine install. # 2) Only the Packages hash, because of the size of the values (i.e. headers), # will ever need tuning. Diddle the pagesize if you're interested, although # I believe that you will find pagesize=512 "best". # 3) Adding nofsync increases speed, but risks total data loss. Fiddle shared # and/or mp_size instead. # # token works? Berkeley db flag or value #================================================== #---------------------- DBENV tunable values: # mmapsize=16Mb DBENV->set_mp_mmapsize # cachesize=1Mb DBENV->set_cachesize, DB->set_cachesize #---------------------- DB->open bits: # nommap ??? DB_NOMMAP #----------------------- rpmdb specific configuration: # lockdbfd (always on for Packages) Use fcntl(2) locking ? # nofsync Disable fsync(2) call performed after db3 writes? # # Misc BDB tuning options %__dbi_other mp_mmapsize=128Mb mp_size=1Mb %_dbi_config %{?__dbi_other} # "Packages" should have shared/exclusive fcntl(2) lock using "lockdbfd". %_dbi_config_Packages %{?_dbi_config} lockdbfd #============================================================================== # ---- GPG/PGP/PGP5 signature macros. # Macro(s) to hold the arguments passed to GPG/PGP for package # signing and verification. # %__gpg_sign_cmd %{__gpg} \ gpg --no-verbose --no-armor \ %{?_gpg_digest_algo:--digest-algo %{_gpg_digest_algo}} \ --no-secmem-warning \ %{?_gpg_sign_cmd_extra_args:%{_gpg_sign_cmd_extra_args}} \ -u "%{_gpg_name}" -sbo %{__signature_filename} %{__plaintext_filename} # XXX rpm >= 4.1 verifies signatures internally #%__gpg_verify_cmd %{__gpg} \ # gpg --batch --no-verbose --verify --no-secmem-warning \ # %{__signature_filename} %{__plaintext_filename} # # Horowitz Key Protocol server configuration # %_hkp_keyserver http://pgp.mit.edu %_hkp_keyserver_query %{_hkp_keyserver}:11371/pks/lookup?op=get&search=0x #============================================================================== # ---- Transaction macros. # Macro(s) used to parameterize transactions. # # The output binary package file name template used when building # binary packages. # # XXX Note: escaped %% for use in headerSprintf() %_build_name_fmt %%{ARCH}/%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm # Verify digest/signature flags for various rpm modes: # 0x30300 (RPMVSF_MASK_NODIGESTS) --nohdrchk if set, don't check digest(s) # 0xc0c00 (RPMVSF_MASK_NOSIGNATURES) --nosignature if set, don't check signature(s) # 0xf0000 (RPMVSF_MASK_NOPAYLOAD) --nolegacy if set, check header+payload (if possible) # 0x00f00 (RPMVSF_MASK_NOHEADER) --nohdrchk if set, don't check rpmdb headers # # For example, the value 0xf0c00 (=0xf0000+0xc0c00) disables legacy # digest/signature checking, disables signature checking, but attempts # digest checking, also when retrieving headers from the database. # # You also can do: # >>> hex(rpm.RPMVSF_MASK_NOSIGNATURES) # '0xc0c00' # or: # >>> hex(rpm.RPMVSF_MASK_NOSIGNATURES|rpm.RPMVSF_MASK_NOPAYLOAD) # '0xf0c00' # at the python prompt for example, after "import rpm". # # The checking overhead is ~11ms per header for digests/signatures; # each header from the database is checked only when first encountered # for each database open. # # Note: the %_vsflags_erase applies to --upgrade/--freshen modes as # well as --erase. # %__vsflags 0xf0000 %_vsflags_build %{__vsflags} %_vsflags_erase %{__vsflags} %_vsflags_install %{__vsflags} %_vsflags_query %{__vsflags} %_vsflags_rebuilddb 0xc0c00 %_vsflags_verify %{__vsflags} # Enforced package verification level # all require valid digest(s) and signature(s) # signature require valid signature(s) # digest require valid digest(s) # none traditional rpm behavior, nothing required %_pkgverify_level digest # Disabler flags for package verification (similar to vsflags) %_pkgverify_flags 0x0 # Minimize writes during transactions (at the cost of more reads) to # conserve eg SSD disks (EXPERIMENTAL). # 1 enable # 0 disable # -1 (or undefined) autodetect on platforms where supported, otherwise # default to disabled #%_minimize_writes -1 # Flush file IO during transactions (at a severe cost in performance # for rotational disks). # 1 enable # <= 0 (or undefined) disable #%_flush_io 0 # Set to 1 to have IMA signatures written also on %config files. # Note that %config files may be changed and therefore end up with # a wrong or missing signature. #%_ima_sign_config_files 0 # # Default output format string for rpm -qa # # XXX Note: escaped %% for use in headerFormat() %_query_all_fmt %%{nvra} # # Default for coloring output # valid values are always never and auto %_color_output never # # Default path to the file used for transaction fcntl lock. %_rpmlock_path %{_dbpath}/.rpm.lock # # ISA dependency marker, none for noarch and name-bitness for others %_isa %{?__isa:(%{__isa})}%{!?__isa:%{nil}} # # Define per-arch and per-os defaults. Normally overridden by per-target macros. %__arch_install_post %{nil} %__os_install_post %{___build_post} # Macro to fix broken permissions in sources %_fixperms %{__chmod} -Rf a+rX,u+w,g-w,o-w #============================================================================== # ---- Scriptlet template templates. # Global defaults used for building scriptlet templates. # %___build_shell %{?_buildshell:%{_buildshell}}%{!?_buildshell:/bin/sh} %___build_args -e %___build_cmd %{?_sudo:%{_sudo} }%{?_remsh:%{_remsh} %{_remhost} }%{?_remsudo:%{_remsudo} }%{?_remchroot:%{_remchroot} %{_remroot} }%{___build_shell} %{___build_args} %___build_pre \ RPM_SOURCE_DIR=\"%{u2p:%{_sourcedir}}\"\ RPM_BUILD_DIR=\"%{u2p:%{_builddir}}\"\ RPM_OPT_FLAGS=\"%{optflags}\"\ RPM_LD_FLAGS=\"%{?build_ldflags}\"\ RPM_ARCH=\"%{_arch}\"\ RPM_OS=\"%{_os}\"\ RPM_BUILD_NCPUS=\"%{_smp_build_ncpus}\"\ export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_LD_FLAGS RPM_ARCH RPM_OS RPM_BUILD_NCPUS RPM_LD_FLAGS\ RPM_DOC_DIR=\"%{_docdir}\"\ export RPM_DOC_DIR\ RPM_PACKAGE_NAME=\"%{NAME}\"\ RPM_PACKAGE_VERSION=\"%{VERSION}\"\ RPM_PACKAGE_RELEASE=\"%{RELEASE}\"\ export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE\ LANG=C\ export LANG\ unset CDPATH DISPLAY ||:\ %{?buildroot:RPM_BUILD_ROOT=\"%{u2p:%{buildroot}}\"\ export RPM_BUILD_ROOT}\ %{?_javaclasspath:CLASSPATH=\"%{_javaclasspath}\"\ export CLASSPATH}\ PKG_CONFIG_PATH=\"${PKG_CONFIG_PATH}:%{_libdir}/pkgconfig:%{_datadir}/pkgconfig\"\ export PKG_CONFIG_PATH\ CONFIG_SITE=${CONFIG_SITE:-NONE}\ export CONFIG_SITE\ \ %{verbose:set -x}\ umask 022\ cd \"%{u2p:%{_builddir}}\"\ #%___build_body %{nil} %___build_post \ RPM_EC=$?\ for pid in $(jobs -p); do kill -9 ${pid} || continue; done\ exit ${RPM_EC}\ %{nil} %___build_template #!%{___build_shell}\ %{___build_pre}\ %{nil} #%{___build_body}\ #%{___build_post}\ #%{nil} #============================================================================== # ---- Scriptlet templates. # Macro(s) that expand to a command and script that is executed. # %__spec_prep_shell %{___build_shell} %__spec_prep_args %{___build_args} %__spec_prep_cmd %{___build_cmd} %__spec_prep_pre %{___build_pre} %__spec_prep_body %{___build_body} %__spec_prep_post %{___build_post} %__spec_prep_template #!%{__spec_prep_shell}\ %{__spec_prep_pre}\ %{nil} #%{__spec_prep_body}\ #%{__spec_prep_post}\ #%{nil} %__spec_buildrequires_shell %{___build_shell} %__spec_buildrequires_args %{___build_args} %__spec_buildrequires_cmd %{___build_cmd} %__spec_buildrequires_pre %{___build_pre} %__spec_buildrequires_body %{___build_body} %__spec_buildrequires_post %{___build_post} %__spec_buildrequires_template #!%{__spec_buildrequires_shell}\ %{__spec_buildrequires_pre}\ %{nil} #%{__spec_buildrequires_body}\ #%{__spec_buildrequires_post}\ #%{nil} %__spec_build_shell %{___build_shell} %__spec_build_args %{___build_args} %__spec_build_cmd %{___build_cmd} %__spec_build_pre %{___build_pre} %__spec_build_body %{___build_body} %__spec_build_post %{___build_post} %__spec_build_template #!%{__spec_build_shell}\ %{__spec_build_pre}\ %{nil} #%{__spec_build_body}\ #%{__spec_build_post}\ #%{nil} %__spec_install_shell %{___build_shell} %__spec_install_args %{___build_args} %__spec_install_cmd %{___build_cmd} %__spec_install_pre %{___build_pre} %__spec_install_body %{___build_body} %__spec_install_post\ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} %__spec_install_template #!%{__spec_install_shell}\ %{__spec_install_pre}\ %{nil} #%{__spec_install_body}\ #%{__spec_install_post}\ #%{nil} %__spec_check_shell %{___build_shell} %__spec_check_args %{___build_args} %__spec_check_cmd %{___build_cmd} %__spec_check_pre %{___build_pre} %__spec_check_body %{___build_body} %__spec_check_post %{___build_post} %__spec_check_template #!%{__spec_check_shell}\ %{__spec_check_pre}\ %{nil} #%{__spec_check_body}\ #%{__spec_check_post}\ #%{nil} #%__spec_autodep_shell %{___build_shell} #%__spec_autodep_args %{___build_args} #%__spec_autodep_cmd %{___build_cmd} #%__spec_autodep_pre %{___build_pre} #%__spec_autodep_body %{___build_body} #%__spec_autodep_post %{___build_post} #%__spec_autodep_template #!%{__spec_autodep_shell}\ #%{__spec_autodep_pre}\ #%{nil} #%{__spec_autodep_body}\ #%{__spec_autodep_post}\ #%{nil} %__spec_clean_shell %{___build_shell} %__spec_clean_args %{___build_args} %__spec_clean_cmd %{___build_cmd} %__spec_clean_pre %{___build_pre} %__spec_clean_body %{___build_body} %__spec_clean_post %{___build_post} %__spec_clean_template #!%{__spec_clean_shell}\ %{__spec_clean_pre}\ %{nil} #%{__spec_clean_body}\ #%{__spec_clean_post}\ #%{nil} %__spec_rmbuild_shell %{___build_shell} %__spec_rmbuild_args %{___build_args} %__spec_rmbuild_cmd %{___build_cmd} %__spec_rmbuild_pre %{___build_pre} %__spec_rmbuild_body %{___build_body} %__spec_rmbuild_post %{___build_post} %__spec_rmbuild_template #!%{__spec_rmbuild_shell}\ %{__spec_rmbuild_pre}\ %{nil} #%{__spec_rmbuild_body}\ #%{__spec_rmbuild_post}\ #%{nil} # XXX We don't expand pre/post install scriptlets (yet). #%__spec_pre_pre %{nil} #%__spec_pre_post %{nil} #%__spec_post_pre %{nil} #%__spec_post_post %{nil} #%__spec_preun_pre %{nil} #%__spec_preun_post %{nil} #%__spec_postun_pre %{nil} #%__spec_postun_post %{nil} #%__spec_triggerpostun_pre %{nil} #%__spec_triggerpostun_post %{nil} #%__spec_triggerun_pre %{nil} #%__spec_triggerun_post %{nil} #%__spec_triggerin_pre %{nil} #%__spec_triggerin_post %{nil} #============================================================================== # ---- configure macros. # Macro(s) slavishly copied from autoconf's config.status. # %_prefix /usr %_exec_prefix %{_prefix} %_bindir %{_exec_prefix}/bin %_sbindir %{_exec_prefix}/sbin %_libexecdir %{_exec_prefix}/libexec %_datadir %{_prefix}/share %_sysconfdir /etc %_sharedstatedir %{_prefix}/com %_localstatedir %{_prefix}/var %_lib lib %_libdir %{_exec_prefix}/%{_lib} %_includedir %{_prefix}/include %_infodir %{_datadir}/info %_mandir %{_datadir}/man #============================================================================== # ---- config.guess platform macros. # Macro(s) similar to the tokens used by configure. # %_build %{_host} %_build_alias %{_host_alias} %_build_cpu %{_host_cpu} %_build_vendor %{_host_vendor} %_build_os %{_host_os} %_host x86_64-redhat-linux-gnu %_host_alias x86_64-redhat-linux-gnu%{nil} %_host_cpu x86_64 %_host_vendor redhat %_host_os linux %_target %{_host} %_target_alias %{_host_alias} %_target_cpu %{_host_cpu} %_target_vendor %{_host_vendor} %_target_os %{_host_os} #============================================================================== # ---- compiler flags. # C compiler flags. This is traditionally called CFLAGS in makefiles. # Historically also available as %%{optflags}, and %%build sets the # environment variable RPM_OPT_FLAGS to this value. %build_cflags %{optflags} # C++ compiler flags. This is traditionally called CXXFLAGS in makefiles. %build_cxxflags %{optflags} # Fortran compiler flags. Makefiles use both FFLAGS and FCFLAGS as # the corresponding variable names. %build_fflags %{optflags} %{?_fmoddir:-I%{_fmoddir}} # Link editor flags. This is usually called LDFLAGS in makefiles. #%build_ldflags -Wl,-z,relro # Expands to shell code to seot the compiler/linker environment # variables CFLAGS, CXXFLAGS, FFLAGS, FCFLAGS, LDFLAGS if they have # not been set already. %set_build_flags \ CFLAGS="${CFLAGS:-%{?build_cflags}}" ; export CFLAGS ; \ CXXFLAGS="${CXXFLAGS:-%{?build_cxxflags}}" ; export CXXFLAGS ; \ FFLAGS="${FFLAGS:-%{?build_fflags}}" ; export FFLAGS ; \ FCFLAGS="${FCFLAGS:-%{?build_fflags}}" ; export FCFLAGS ; \ LDFLAGS="${LDFLAGS:-%{?build_ldflags}}" ; export LDFLAGS #============================================================================== # ---- specfile macros. # Macro(s) here can be used reliably for reproducible builds. # (Note: Above is the goal, below are the macros under development) # # The configure macro runs autoconf configure script with platform specific # directory structure (--prefix, --libdir etc) and compiler flags # such as CFLAGS. # %_configure ./configure %configure \ %{set_build_flags}; \ %{_configure} --host=%{_host} --build=%{_build} \\\ --program-prefix=%{?_program_prefix} \\\ --disable-dependency-tracking \\\ --prefix=%{_prefix} \\\ --exec-prefix=%{_exec_prefix} \\\ --bindir=%{_bindir} \\\ --sbindir=%{_sbindir} \\\ --sysconfdir=%{_sysconfdir} \\\ --datadir=%{_datadir} \\\ --includedir=%{_includedir} \\\ --libdir=%{_libdir} \\\ --libexecdir=%{_libexecdir} \\\ --localstatedir=%{_localstatedir} \\\ --sharedstatedir=%{_sharedstatedir} \\\ --mandir=%{_mandir} \\\ --infodir=%{_infodir} #------------------------------------------------------------------------------ # Tested features of make # Output synchronization for parallel make: %_make_output_sync %(! %{__make} --version -O >/dev/null 2>&1 || echo -O) #------------------------------------------------------------------------------ # Verbosity options passed to make %_make_verbose V=1 VERBOSE=1 #------------------------------------------------------------------------------ # The "make" analogue, hiding the _smp_mflags magic from specs %make_build %{__make} %{_make_output_sync} %{?_smp_mflags} %{_make_verbose} #------------------------------------------------------------------------------ # The make install analogue of %configure for modern autotools: %make_install %{__make} install DESTDIR=%{?buildroot} INSTALL="%{__install} -p" #------------------------------------------------------------------------------ # Former make install analogue, kept for compatibility and for old/broken # packages that don't support DESTDIR properly. %makeinstall \ echo "warning: %%makeinstall is deprecated, try %%make_install instead" 1>&2\ %{__make} \\\ prefix=%{?buildroot:%{buildroot}}%{_prefix} \\\ exec_prefix=%{?buildroot:%{buildroot}}%{_exec_prefix} \\\ bindir=%{?buildroot:%{buildroot}}%{_bindir} \\\ sbindir=%{?buildroot:%{buildroot}}%{_sbindir} \\\ sysconfdir=%{?buildroot:%{buildroot}}%{_sysconfdir} \\\ datadir=%{?buildroot:%{buildroot}}%{_datadir} \\\ includedir=%{?buildroot:%{buildroot}}%{_includedir} \\\ libdir=%{?buildroot:%{buildroot}}%{_libdir} \\\ libexecdir=%{?buildroot:%{buildroot}}%{_libexecdir} \\\ localstatedir=%{?buildroot:%{buildroot}}%{_localstatedir} \\\ sharedstatedir=%{?buildroot:%{buildroot}}%{_sharedstatedir} \\\ mandir=%{?buildroot:%{buildroot}}%{_mandir} \\\ infodir=%{?buildroot:%{buildroot}}%{_infodir} \\\ install #------------------------------------------------------------------------------ %patches %{lua: for i, p in ipairs(patches) do print(p.." ") end} %sources %{lua: for i, s in ipairs(sources) do print(s.." ") end} #------------------------------------------------------------------------------ # arch macro for all Intel i?86 compatible processors # (Note: This macro (and it's analogues) will probably be obsoleted when # rpm can use regular expressions against target platforms in macro # conditionals. # %ix86 i386 i486 i586 i686 pentium3 pentium4 athlon geode #------------------------------------------------------------------------------ # arch macro for all supported 32-bit ARM processors %arm32 armv3l armv4b armv4l armv4tl armv5tl armv5tel armv5tejl armv6l armv6hl armv7l armv7hl armv7hnl armv8l armv8hl armv8hnl armv8hcnl #------------------------------------------------------------------------------ # arch macro for all supported 32-bit ARM processors (legacy, use %%arm32 instead) %arm %{arm32} #------------------------------------------------------------------------------ # arch macro for all supported 64-bit ARM processors %arm64 aarch64 #------------------------------------------------------------------------------ # arch macro for 32-bit MIPS processors %mips32 mips mipsel mipsr6 mipsr6el #------------------------------------------------------------------------------ # arch macro for 64-bit MIPS processors %mips64 mips64 mips64el mips64r6 mips64r6el #------------------------------------------------------------------------------ # arch macro for big endian MIPS processors %mipseb mips mipsr6 mips64 mips64r6 #------------------------------------------------------------------------------ # arch macro for little endian MIPS processors %mipsel mipsel mipsr6el mips64el mips64r6el #------------------------------------------------------------------------------ # arch macro for all supported MIPS processors %mips %{mips32} %{mips64} #------------------------------------------------------------------------------ # arch macro for all supported Sparc processors %sparc sparc sparcv8 sparcv9 sparcv9v sparc64 sparc64v #------------------------------------------------------------------------------ # arch macro for all supported Alpha processors %alpha alpha alphaev56 alphaev6 alphaev67 #------------------------------------------------------------------------------ # arch macro for all supported PowerPC 64 processors %power64 ppc64 ppc64p7 ppc64le #------------------------------------------------------------------------------ # arch macro for all supported RISC-V processors %riscv32 riscv32 %riscv64 riscv64 %riscv128 riscv128 %riscv %{riscv32} %{riscv64} %{riscv128} #------------------------------------------------------------------------ # Use in %install to generate locale specific file lists. For example, # # %install # ... # %find_lang %{name} # ... # %files -f %{name}.lang # %find_lang %{_rpmconfigdir}/find-lang.sh %{buildroot} # Commands + opts to use for retrieving remote files # Proxy opts can be set through --httpproxy/--httpport popt aliases, # for any special local needs use %__urlhelper_localopts in system-wide # or per-user macro configuration. %__urlhelpercmd /usr/bin/curl %__urlhelperopts --silent --show-error --fail --globoff --location -o %__urlhelper_proxyopts %{?_httpproxy:--proxy %{_httpproxy}%{?_httpport::%{_httpport}}}%{!?_httpproxy:%{nil}} %_urlhelper %{__urlhelpercmd} %{?__urlhelper_localopts} %{?__urlhelper_proxyopts} %{__urlhelperopts} # Transaction plugin macros %__plugindir %{_libdir}/rpm-plugins %__transaction_systemd_inhibit %{__plugindir}/systemd_inhibit.so %__transaction_selinux %{__plugindir}/selinux.so %__transaction_syslog %{__plugindir}/syslog.so %__transaction_ima %{__plugindir}/ima.so %__transaction_fapolicyd %{__plugindir}/fapolicyd.so %__transaction_prioreset %{__plugindir}/prioreset.so %__transaction_audit %{__plugindir}/audit.so #------------------------------------------------------------------------------ # Macros for further automated spec %setup and patch application # default to plain patch %__scm patch # meh, figure something saner %__scm_username rpm-build %__scm_usermail <rpm-build> %__scm_author %{__scm_username} %{__scm_usermail} # Plain patch (-m is unused) %__scm_setup_patch(q) %{nil} %__scm_apply_patch(qp:m:)\ %{__patch} %{-p:-p%{-p*}} %{-q:-s} --fuzz=%{_default_patch_fuzz} %{_default_patch_flags} # Plain patch with backups for gendiff %__scm_setup_gendiff(q) %{nil} %__scm_apply_gendiff(qp:m:)\ %{__patch} %{-p:-p%{-p*}} %{-q:-s} --fuzz=%{_default_patch_fuzz} %{_default_patch_flags} -b --suffix ".%{2}" # Mercurial (aka hg) %__scm_setup_hg(q)\ %{__hg} init %{-q} .\ %{__hg} add %{-q} .\ %{__hg} commit %{-q} --user "%{__scm_author}" -m "%{NAME}-%{VERSION} base" %__scm_apply_hg(qp:m:)\ %{__hg} import - %{-p:-p%{-p*}} %{-q} -m %{-m*} --user "%{__scm_author}" # Git %__scm_setup_git(q)\ %{__git} init %{-q}\ %{__git} config user.name "%{__scm_username}"\ %{__git} config user.email "%{__scm_usermail}"\ %{__git} config gc.auto 0\ %{__git} add --force .\ %{__git} commit %{-q} --allow-empty -a\\\ --author "%{__scm_author}" -m "%{NAME}-%{VERSION} base" %__scm_apply_git(qp:m:)\ %{__git} apply --index --reject %{-p:-p%{-p*}} -\ %{__git} commit %{-q} -m %{-m*} --author "%{__scm_author}" # Git, using "git am" (-m is unused) %__scm_setup_git_am(q)\ %{expand:%__scm_setup_git %{-q}} %__scm_apply_git_am(qp:m:)\ %{__git} am --reject %{-q} %{-p:-p%{-p*}} # Quilt %__scm_setup_quilt(q) %{nil} %__scm_apply_quilt(qp:m:)\ %{__quilt} import %{-p:-p%{-p*}} %{1} && %{__quilt} push %{-q} # Bzr %__scm_setup_bzr(q)\ %{__bzr} init %{-q}\ %{__bzr} whoami --branch "%{__scm_author}"\ %{__bzr} add .\ %{__bzr} commit %{-q} -m "%{NAME}-%{VERSION} base" # bzr doesn't seem to have its own command to apply patches? %__scm_apply_bzr(qp:m:)\ %{__patch} %{-p:-p%{-p*}} %{-q:-s}\ %{__bzr} commit %{-q} -m %{-m*} # Single patch application %apply_patch(qp:m:)\ %{lua:\ local file = rpm.expand("%{1}")\ local num = rpm.expand("%{2}")\ if posix.access(file, "r") then\ local options = rpm.expand("%{-q} %{-p:-p%{-p*}} %{-m:-m%{-m*}}")\ local scm_apply = rpm.expand("%__scm_apply_%{__scm}")\ print(rpm.expand("%{uncompress:"..file.."} | "..scm_apply.." "..options.." "..file.." "..num.."\\n"))\ else\ print("echo 'Cannot read "..file.."'; exit 1;".."\\n")\ end} # Automatically apply all patches # Patches are applied in the order they are listed in the spec file # not by their number! # -m<min> Apply patches with number >= min only # -M<max> Apply patches with number <= max only %autopatch(vp:m:M:)\ %{lua:\ local options = rpm.expand("%{!-v:-q} %{-p:-p%{-p*}} ")\ local low_limit = tonumber(rpm.expand("%{-m:%{-m*}}"))\ local high_limit = tonumber(rpm.expand("%{-M:%{-M*}}"))\ for i, p in ipairs(patches) do\ local inum = patch_nums[i]\ if ((not low_limit or inum>=low_limit) and (not high_limit or inum<=high_limit)) \ then\ print(rpm.expand("%apply_patch -m %{basename:"..p.."} "..options..p.." "..i.."\\n")) \ end\ end} # One macro to (optionally) do it all. # -S<scm name> Sets the used patch application style, eg '-S git' enables # usage of git repository and per-patch commits. # -N Disable automatic patch application # -p<num> Use -p<num> for patch application %autosetup(a:b:cDn:TvNS:p:)\ %setup %{-a} %{-b} %{-c} %{-D} %{-n} %{-T} %{!-v:-q}\ %{-S:%global __scm %{-S*}}\ %{expand:%__scm_setup_%{__scm} %{!-v:-q}}\ %{!-N:%autopatch %{-v} %{-p:-p%{-p*}}} # \endverbatim #*/ macros.d/macros.firewalld 0000644 00000000357 15043540723 0011441 0 ustar 00 # RPM macros for packages installing firewalld services/zones # put this into %post otherwise firewalld won't load new service/zone file %firewalld_reload() \ test -x %{_bindir}/firewall-cmd && firewall-cmd --reload --quiet || : \ %{nil} macros.d/macros.openblas-srpm 0000644 00000000150 15043540723 0012241 0 ustar 00 # Architectures that OpenBLAS supports %openblas_arches x86_64 %{ix86} armv7hl %{power64} aarch64 s390x macros.d/macros.ldc-srpm 0000644 00000000106 15043540723 0011201 0 ustar 00 # arches that ldc builds on %ldc_arches %{ix86} x86_64 %{arm} aarch64 macros.d/macros.pkgconf 0000644 00000000075 15043540723 0011114 0 ustar 00 %pkgconfig_personalitydir /usr/share/pkgconfig/personality.d macros.d/macros.aaa-pyproject-srpm 0000644 00000000671 15043540723 0013205 0 ustar 00 # This file is called macros.aaa-pyproject-srpm # to sort alphabetically before macros.pyproject. # When this file is installed but macros.pyproject is not # this macro will cause the package with the real macro to be installed. # When macros.pyproject is installed, it overrides this macro. # Note: This needs to maintain the same set of options as the real macro. %pyproject_buildrequires(rRxtNwe:C:) echo 'pyproject-rpm-macros' && exit 0 macros.d/macros.efi-srpm 0000644 00000006306 15043540723 0011212 0 ustar 00 # # EFI specific SRPM macro definitions # # Copyright 2018 Peter M Jones <pjones@redhat.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or (at # your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <https://www.gnu.org/licenses/>. # %_efi_srpm_macros_setup() %{expand:%{lua: -- test if our arch matches local function arch(archmacro) local target = rpm.expand(" %{_target_cpu} ") local arches = rpm.expand(" " .. archmacro .. " ") local match = string.match(arches, target) return (match ~= nil) end -- give us the arch... local function getarch() if arch("ia64") then return("ia64") elseif arch("x86_64") then return("x64") elseif arch("%{ix86}") then return("ia32") elseif arch("aarch64") then return("aa64") elseif arch("%{arm}") then return("arm") else return("none") end end -- alt arch local function getaltarch() return("none") end -- make some macros local done = rpm.expand("%{?_efi}") if done == nil or done == "" then local arch = getarch() local alt = getaltarch() print("%global _efi x86_64 aarch64 armv3l armv4b armv4l armv4tl armv5tl armv5tel armv5tejl armv6l armv6hl armv7l armv7hl armv7hnl armv8l armv8hl armv8hnl armv8hcnl i386 i486 i586 i686 pentium3 pentium4 athlon geode\\n") print("%global _efi_vendor almalinux\\n") if arch == "none" then print("%global _efi_has_arch 0\\n") else print("%global _efi_has_arch 1\\n") end print("%global _efi_arch " .. getarch() .. "\\n") print("%global _efi_arch_upper " .. string.upper(getarch()) .. "\\n") if alt == "none" then print("%global _efi_has_alt_arch 0\\n") else print("%global _efi_has_alt_arch 1\\n") end print("%global _efi_alt_arch " .. alt .. "\\n") print("%global _efi_alt_arch_upper " .. string.upper(alt) .. "\\n") end }} %efi_srpm_macros_version %{expand:%{_efi_srpm_macros_setup}}6 %efi %{expand:%{_efi_srpm_macros_setup}}%{expand:%{_efi}} %efi_vendor %{expand:%{_efi_srpm_macros_setup}}%{expand:%{_efi_vendor}} %efi_esp_root /boot/efi %efi_esp_efi %{efi_esp_root}/EFI %efi_esp_boot %{efi_esp_efi}/BOOT %efi_esp_dir %{expand:%{_efi_srpm_macros_setup}}%{efi_esp_efi}/%{efi_vendor} %efi_arch %{expand:%{_efi_srpm_macros_setup}}%{_efi_arch} %efi_arch_upper %{expand:%{_efi_srpm_macros_setup}}%{_efi_arch_upper} %efi_has_arch %{expand:%{_efi_srpm_macros_setup}}0%{_efi_has_arch} %efi_has_alt_arch %{expand:%{_efi_srpm_macros_setup}}0%{_efi_has_alt_arch} %efi_alt_arch %{expand:%{_efi_srpm_macros_setup}}%{?_efi_alt_arch}%{nil} %efi_alt_arch_upper %{expand:%{_efi_srpm_macros_setup}}%{?_efi_alt_arch_upper}%{nil} %efi_build_requires bash coreutils %__brp_boot_efi_times /usr/lib/rpm/brp-boot-efi-times macros.d/macros.vim 0000644 00000000050 15043540723 0010251 0 ustar 00 %vimfiles_root %{_datadir}/vim/vimfiles macros.d/macros.lua-srpm 0000644 00000000433 15043540723 0011223 0 ustar 00 %lua_version %{lua: print(string.sub(_VERSION, 5))} %lua_requires \ %if 0%{?fedora} || 0%{?rhel} >= 7 \ Requires: lua(abi) = %{lua_version} \ %else \ Requires: lua >= %{lua_version} \ Requires: lua < %{lua: os.setlocale('C'); print(string.sub(_VERSION, 5) + 0.1)} \ %endif \ %{nil} macros.d/macros.environment-modules 0000644 00000000113 15043540723 0013470 0 ustar 00 # RPM macros for environment modules %_modulesdir %{_datadir}/modulefiles macros.d/macros.kernel-srpm 0000644 00000000155 15043540723 0011723 0 ustar 00 # kernel_arches lists what arches the full kernel is built for. %kernel_arches x86_64 s390x ppc64le aarch64 macros.d/macros.fedora-misc-srpm 0000644 00000003266 15043540723 0012642 0 ustar 00 # Fedora macros, safe to use at SRPM build stage # A directory for rpm macros %rpmmacrodir /usr/lib/rpm/macros.d # A directory for appdata metainfo. This has changed between releases so a # macro is useful. %_metainfodir %{_datadir}/metainfo # A directory for SWID tag files describing the installation %_swidtagdir %{_prefix}/lib/swidtag/fedoraproject.org # Applies the fedora.wordwrap filter to the content of an rpm variable, and # prints the result. # – putting multiple lines of UTF-8 text inside a variable is usually # accomplished with %{expand:some_text} # Control variables, flags and arguments: # -v <variable_name> (default value: _description) %wordwrap(v:) %{lua: local fedora = require "fedora.common" local variable = "%{?" .. rpm.expand("%{-v*}%{!-v:_description}") .. "}" print(fedora.wordwrap(variable)) } # A single Name: and %package substitute # Control variables, flags and arguments: # %{source_name} the SRPM name # %{source_summary} the SRPM summary # %{source_description} the SRPM description # -n <name> declare a package named <name> # (%package-like behavior) # -v be verbose # %1 declare a package named %{source_name}-%{%1} # (%package-like behavior) %new_package(n:v) %{lua: local fedora = require "fedora.common" local pkg_name = fedora.readflag("n") local verbose = fedora.hasflag("v") local name_suffix = fedora.read("1") local source_name = fedora.read("source_name") local first = not ( fedora.read("name") or fedora.read("currentname") ) fedora.new_package(source_name, pkg_name, name_suffix, first, verbose) } macros.d/macros.ldconfig 0000644 00000000463 15043540723 0011253 0 ustar 00 #%ldconfig /sbin/ldconfig %ldconfig_post(n:) %{?ldconfig:%post -p %ldconfig %{?*} %{-n:-n %{-n*}}\ %end} %ldconfig_postun(n:) %{?ldconfig:%postun -p %ldconfig %{?*} %{-n:-n %{-n*}}\ %end} %ldconfig_scriptlets(n:) %{?ldconfig:\ %ldconfig_post %{?*} %{-n:-n %{-n*}}\ %ldconfig_postun %{?*} %{-n:-n %{-n*}}\ } macros.d/macros.cmake 0000644 00000004436 15043540723 0010552 0 ustar 00 # # Macros for cmake # %_cmake_lib_suffix64 -DLIB_SUFFIX=64 %_cmake_shared_libs -DBUILD_SHARED_LIBS:BOOL=ON %_cmake_skip_rpath -DCMAKE_SKIP_RPATH:BOOL=ON %_cmake_version 3.26.5 %__cmake /usr/bin/cmake %__ctest /usr/bin/ctest %__cmake_builddir %{!?__cmake_in_source_build:%{_vpath_builddir}}%{?__cmake_in_source_build:.} # - Set default compile flags # - CMAKE_*_FLAGS_RELEASE are added *after* the *FLAGS environment variables # and default to -O3 -DNDEBUG. Strip the -O3 so we can override with *FLAGS # - Turn on verbose makefiles so we can see and verify compile flags # - Turn off stripping by default so RPM can do it separately # - Set default install prefixes and library install directories # - Turn on shared libraries by default %cmake \ %if 0%{?set_build_flags:1} \ %set_build_flags \ %else \ CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \ CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \ FFLAGS="${FFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}}" ; export FFLAGS ; \ FCFLAGS="${FCFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}}" ; export FCFLAGS ; \ %{?__global_ldflags:LDFLAGS="${LDFLAGS:-%__global_ldflags}" ; export LDFLAGS ;} \ %endif \ %__cmake \\\ %{!?__cmake_in_source_build:-S "%{_vpath_srcdir}"} \\\ %{!?__cmake_in_source_build:-B "%{__cmake_builddir}"} \\\ -DCMAKE_C_FLAGS_RELEASE:STRING="-DNDEBUG" \\\ -DCMAKE_CXX_FLAGS_RELEASE:STRING="-DNDEBUG" \\\ -DCMAKE_Fortran_FLAGS_RELEASE:STRING="-DNDEBUG" \\\ -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \\\ -DCMAKE_INSTALL_DO_STRIP:BOOL=OFF \\\ -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \\\ -DINCLUDE_INSTALL_DIR:PATH=%{_includedir} \\\ -DLIB_INSTALL_DIR:PATH=%{_libdir} \\\ -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \\\ -DSHARE_INSTALL_PREFIX:PATH=%{_datadir} \\\ %if "%{?_lib}" == "lib64" \ %{?_cmake_lib_suffix64} \\\ %endif \ %{?_cmake_shared_libs} %cmake_build \ %__cmake --build "%{__cmake_builddir}" %{?_smp_mflags} --verbose %cmake_install \ DESTDIR="%{buildroot}" %__cmake --install "%{__cmake_builddir}" %ctest(:-:) \ cd "%{__cmake_builddir}" \ %__ctest --output-on-failure --force-new-ctest-process %{?_smp_mflags} %{**} \ cd - %cmake3 %cmake %cmake3_build %cmake_build %cmake3_install %cmake_install %ctest3(:-:) %ctest %{**} macros.d/macros.fonts-srpm 0000644 00000012253 15043540723 0011576 0 ustar 00 # Copyright © 2008-2019 Nicolas Mailhot <nim@fedoraproject.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <https://www.gnu.org/licenses/>. # RPM macros for fonts packages. # # SPDX-License-Identifier: GPL-3.0-or-later ## Default directories # Font installation directory root %_fontbasedir /usr/share/fonts # Master fontconfig configuration directory # Only needed to avoid a circular directory dependency with the fontconfig # package — you should *not* use this in fonts packages %_fontconfig_masterdir /etc/fonts # Fontconfig directory for active configuration snippets %_fontconfig_confdir /etc/fonts/conf.d # Fontconfig configuration template directory # Templates are activated by symlinking in _fontconfig_confdir %_fontconfig_templatedir /usr/share/fontconfig/conf.avail # Default contact in font appstream files # Override in your spec file if it does not apply %fontcontact fonts@lists.fedoraproject.org # Default org in font appstream files # Override in your spec file if it does not apply %fontorg org.fedoraproject # Sanitize a font family name that can then serve as rpm package name # Mandatory parameter: a font family name %fontrpmname() %{lua: local fonts = require "fedora.srpm.fonts" print(fonts.rpmname(rpm.expand("%1"))) } # Computes rpm variables associated with a font sub(package) # There should be no reason to call this macro directly. Arguments: # -z <number> read the zth block of definitions, for example # %{fontfamily<number>} # -a process all blocks in one go, instead of using separate # -z calls # -v be verbose # -f "<shell globs>" font files to include. Alternatively, set %{fonts<number>} # -F "<shell globs>" font files to exclude. Alternatively, set %{fontsex<number>} # -c "<shell globs>" fontconfig files to include. Alternatively, set %{fontconfs<number>} # -C "<shell globs>" fontconfig files to exclude. Alternatively, set %{fontconfsex<number>} # -s "<shell globs>" font appstream files to include. Alternatively, set %{fontappstreams<number>} # -S "<shell globs>" font appstream files to exclude. Alternatively, set %{fontappstreamsex<number>} # -d "<shell globs>" documentation files to include. Alternatively, set %{fontdocs<number>} # -D "<shell globs>" documentation files to exclude. Alternatively, set %{fontdocsex<number>} # -l "<shell globs>" licensing files to include. Alternatively, set %{fontlicenses<number>} # -L "<shell globs>" licensing files to exclude. Alternatively, set %{fontlicensesex<number>} %fontenv(z:vf:F:c:C:s:S:d:D:l:L:) %{lua: local fonts = require "fedora.srpm.fonts" local suffix = rpm.expand("%{?-z*}") local verbose = (rpm.expand("%{-v}") ~= "") local globvalues = {} for g,_ in pairs(fonts.globargs) do globvalues[g] = rpm.expand("%{?-" .. fonts.globargs[g] .. "*}") end fonts.env(suffix, verbose, globvalues) } # Create a font (sub)package header. Arguments: # -z <number> read the zth block of definitions, for example # %{fontfamily<number>} # -a process all blocks in one go, instead of using separate # -z calls # -v be verbose # -m force main header creation # -s force sub header creation # by itself the macro assumes the zero or nil suffix block # corresponds to the main package header %fontpkg(z:avms) %{lua: local fonts = require "fedora.srpm.fonts" local suffix = rpm.expand("%{?-z*}") local processall = (rpm.expand("%{-a}") ~= "") and (rpm.expand("%{-z}") == "") local verbose = (rpm.expand("%{-v}") ~= "") local forcemain = (rpm.expand("%{-m}") ~= "") local forcesub = (rpm.expand("%{-s}") ~= "") fonts.pkg(forcemain, forcesub, suffix, processall, verbose) } # Create a font (sub)metapackage header. Optional arguments: # -n <name> use <name> as metapackage name # -s <variable> use the content of <variable> as metapackage summary # -d <variable> use the content of <variable> as metapackage description # -z "<numbers>" restrict metapackaging to <numbers> comma-separated list of # font package suffixes %fontmetapkg(n:s:d:z:) %{lua: local fonts = require "fedora.srpm.fonts" local name = rpm.expand("%{?-n*}") local summary = rpm.expand("%{?-s*}") if (summary ~= "") then summary = "%{" .. summary .. "}" end local description = rpm.expand("%{?-d*}") if (description ~= "") then description = "%{" .. description .. "}" end local suffixes = rpm.expand("%{?-z*}") fonts.metapkg(name, summary, description, suffixes) } macros.d/macros.valgrind-srpm 0000644 00000000177 15043540723 0012255 0 ustar 00 # valgrind_arches lists what arches Valgrind works on %valgrind_arches %{ix86} x86_64 ppc ppc64 ppc64le s390x armv7hl aarch64 macros.d/macros.clang 0000644 00000001012 15043540723 0010541 0 ustar 00 %clang_major_version 18 %clang_minor_version 1 %clang_patch_version 8 %clang_version %{clang_major_version}.%{clang_minor_version}.%{clang_patch_version} # This is the path to the clang resource directory that has clang's internal # headers and libraries. This path should be used by packages that need to # install files into this directory. This macro's value changes every time # clang's version changes. %clang_resource_dir %{_prefix}/lib/clang/%{clang_major_version} %clang18_resource_dir %{_prefix}/lib/clang/18 macros.d/macros.go-srpm 0000644 00000023502 15043540723 0011051 0 ustar 00 # Copyright © 2015-2019 Jakub Cajka <jcajka@redhat.com>, # Jan Chaloupka <jchaloup@redhat.com>, # Nicolas Mailhot <nim@fedoraproject.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <https://www.gnu.org/licenses/>. # # This file contains macros for building projects in golang for packages # with golang compiler or gcc-go compiler based on an architecture. # Golang is primarly for primary architectures, gcc-go for secondary. # # This file provides only macros and must not use any other package except # redhat-rpm-macros. # # SPDX-License-Identifier: GPL-3.0-or-later # Define arches for PA and SA # There is no %%go_arches_future that contains %%gccgo_arches, as # %%gccgo_arches don't match any currently supported Fedora architectures %golang_arches_future x86_64 armv3l armv4b armv4l armv4tl armv5tl armv5tel armv5tejl armv6l armv6hl armv7l armv7hl armv7hnl armv8l armv8hl armv8hnl armv8hcnl aarch64 ppc64le s390x %golang_arches x86_64 aarch64 ppc64le s390x %gccgo_arches mips mipsel mipsr6 mipsr6el mips64 mips64el mips64r6 mips64r6el %go_arches %{golang_arches} %{gccgo_arches} # Where to set GOPATH for builds %gopath /usr/share/gocode # Define go_compilers macro to signal go-compiler package is available %go_compiler 1 # Sanitize a Go import path that can then serve as rpm package name # Mandatory parameter: a Go import path (without flag) # Optional parameters: # – “-c <compatid>” a compat identifier, used to distinguish the package # from the primary package tracking the project recommended # version. For example: a (different) major version, a # specific shortened commit, etc # -L Enable new naming scheme for versioned compat packages # that respect Fedora Packaging Guidelines. # All new go packages should use this option. %gorpmname(Lc:) %{lua: local go = require "fedora.srpm.go" if rpm.expand("%{-L}") ~= "" then rpm.define("go_use_new_versioning 1") end print(go.rpmname("%1", "%{-c*}")) } # Map Go information to rpm metadata. This macro will compute default spec # variable values. # # The following spec variable MUST be set before calling the macro: # # goipath the packaged Go project import path # # The following spec variables SHOULD be set before calling the macro: # # forgeurl the project url on the forge, # if it can not be deduced from goipath # Version if applicable, set it with Version: <version> # tag if applicable # commit if applicable # date if applicable (to override the mtime of the Source archive) # # Use -z for multiple calls to the macro # # The macro will attempt to compute and set the following variables if they are # not already set by the packager: # # goname an rpm-compatible package name derived from goipath # gosource an URL that can be used as SourceX: value # gourl an URL that can be used as URL: value # # It will delegate processing to the forgemeta macro for: # # forgesource an URL that can be used as SourceX: value # forgesetupargs the correct arguments to pass to %setup for this source # used by %forgesetup and %forgeautosetup # archivename the source archive filename, without extentions # archiveext the source archive filename extensions, without leading dot # archiveurl the url that can be used to download the source archive, # without renaming # topdir the source archive top directory (can be empty) # extractdir the source directory created inside %{_builddir} after using # %%forgesetup, %forgeautosetup or %{forgesetupargs} # repo the repository name # owner the repository owner (if used by another computed variable) # shortcommit the commit hash clamping used by the forge, if any # scm the scm type, when packaging code snapshots: commits or tags # distprefix the prefix that needs adding to dist to trace non-release packaging # # Most of the computed variables are both overridable and optional. # # Optional parameters: # -a process all sources in one go, instead of using separate -z calls # -z <number> suffix all the read and written variable names with <number> # for example read goipath<number>, version<number>… # and generate goname<number>, archiveurl<number>… # The macro assumes that null or nil suffix is used for the primary # package source. # -s Silently ignore problems in forgeurl, use it if it can be parsed, # ignore it otherwise. # -v Be verbose and print every spec variable the macro sets. # -i Print some info about the state of spec variables the macro may use or # set at the end of the processing. # -f Use ExclusiveArch: %%{golang_arches_future}, which excludes the package # from %ix86. All new go packages should use this option. # -L Enable new naming scheme for versioned compat packages that respects # Fedora Packaging Guidelines. # All new go packages should use this option. %gometa(az:svifL) %{lua: if rpm.expand("%{-f}") == "" then exclusive_arches = "%{golang_arches}" else exclusive_arches = "%{golang_arches_future}" end print( "BuildRequires: go-rpm-macros\\n") print(rpm.expand("ExclusiveArch: " .. exclusive_arches .. "\\n")) local fedora = require "fedora.common" local go = require "fedora.srpm.go" local verbose = rpm.expand("%{-v}") ~= "" local informative = rpm.expand("%{-i}") ~= "" local silent = rpm.expand("%{-s}") ~= "" local processall = (rpm.expand("%{-a}") ~= "") and (rpm.expand("%{-z}") == "") if rpm.expand("%{-L}") ~= "" then rpm.define("go_use_new_versioning 1") end if processall then for _,s in pairs(fedora.getsuffixes("goipath")) do go.meta(s,verbose,informative,silent) end else go.meta(rpm.expand("%{-z*}"),verbose,informative,silent) end } # Create %package sections for every known kind of go subpackage. Arguments: # -v be verbose %gopkg(av) %{expand: %godevelpkg -a %{-v} %goaltpkg -a %{-v} } # Create a %package section for a golang-*-devel subpackage. Arguments: # -z <number> read the zth block of definitions, for example # %{goipaths<number>} # -a process all blocks in one go, instead of using separate # -z calls # -v be verbose %godevelpkg(z:av) %{lua: local go = require "fedora.srpm.go" local suffix = rpm.expand("%{-z*}") local processall = (rpm.expand("%{-a}") ~= "") and (rpm.expand("%{-z}") == "") local verbose = (rpm.expand("%{-v}") ~= "") go.pkg("devel", suffix, processall, verbose) } # Create a %package section for a compat-golang-*-devel subpackage. Arguments: # -z <number> read the zth block of definitions, for example # %{goaltipaths<number>} # -a process all blocks in one go, instead of using separate # -z calls # -v be verbose %goaltpkg(z:av) %{lua: local go = require "fedora.srpm.go" local suffix = rpm.expand("%{-z*}") local processall = (rpm.expand("%{-a}") ~= "") and (rpm.expand("%{-z}") == "") local verbose = (rpm.expand("%{-v}") ~= "") go.pkg("alt", suffix, processall, verbose) } # Create %files sections for every known kind of Go subpackage. Arguments: # -v be verbose %gopkgfiles(av) %{expand: %godevelfiles -a %{-v} %goaltfiles -a %{-v} } # Create a %files section for a golang-*-devel subpackage. Arguments: # -z <number> read the zth block of definitions, for example # %{goipaths<number>} # -a process all blocks in one go, instead of using separate # -z calls # -v be verbose %godevelfiles(z:av) %{lua: local go = require "fedora.srpm.go" local suffix = rpm.expand("%{-z*}") local processall = (rpm.expand("%{-a}") ~= "") and (rpm.expand("%{-z}") == "") local verbose = (rpm.expand("%{-v}") ~= "") go.files("devel", suffix, processall, verbose) } # Create a %files section for a compat-golang-*-devel subpackage. Arguments: # -z <number> read the zth block of definitions, for example # %{goaltipaths<number>} # -a process all blocks in one go, instead of using separate # -z calls # -v be verbose %goaltfiles(z:av) %{lua: local go = require "fedora.srpm.go" local suffix = rpm.expand("%{-z*}") local processall = (rpm.expand("%{-a}") ~= "") and (rpm.expand("%{-z}") == "") local verbose = (rpm.expand("%{-v}") ~= "") go.files("alt", suffix, processall, verbose) } # Define commands for building # BUILD_ID can be generated for golang build no matter of debuginfo %gobuild(o:) \ GOPPC64=power9 GOAMD64=v2 CGO_CPPFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-all" go build -compiler gc -buildmode pie -tags="rpm_crashtraceback libtrust_openssl ${GO_BUILDTAGS-${BUILDTAGS-}}" -ldflags "-linkmode=external -compressdwarf=false ${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v -x %{?**};\ # Define commands for testing %gotest() go test -compiler gc -ldflags "${LDFLAGS:-}" %{?**}; macros.d/macros.alt-python311 0000644 00000004011 15043540723 0012003 0 ustar 00 %__alt_python311 /opt/alt/python311/bin/python3 %alt_python311_sitelib %(%{__alt_python311} -Ic "from distutils.sysconfig import get_python_lib; print(get_python_lib())") %alt_python311_sitearch %(%{__alt_python311} -Ic "from distutils.sysconfig import get_python_lib; print(get_python_lib(True))") %alt_python311_version %(%{__alt_python311} -Ic "import sys; sys.stdout.write(sys.version[:3])") %alt_python311_version_nodots %(%{__alt_python311} -Ic "import sys; sys.stdout.write(sys.version[:3].replace('.',''))") %alt_py311dir %{_builddir}/python3-%{name}-%{version}-%{release} %alt_python311_dir /opt/alt/python311 %py_setup setup.py %alt_py311_shbang_opts -s %alt_py311_shbang_opts_nodash %(opts=%{alt_py311_shbang_opts}; echo ${opts#-}) # Use the slashes after expand so that the command starts on the same line as # the macro %alt_py311_build() %{expand:\\\ CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}"\\\ %{__alt_python311} %{py_setup} %{?py_setup_args} build --executable="%{__alt_python311} %{alt_py311_shbang_opts}" %{?*} } %alt_py311_build_egg() %{expand:\\\ CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}"\\\ %{__alt_python311} %{py_setup} %{?py_setup_args} bdist_egg %{?*} } %alt_py311_build_wheel() %{expand:\\\ CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}"\\\ %{__alt_python311} %{py_setup} %{?py_setup_args} bdist_wheel %{?*} } %alt_py311_install() %{expand:\\\ CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}"\\\ %{__alt_python311} %{py_setup} %{?py_setup_args} install -O1 --skip-build --root %{buildroot} %{?*} } %alt_py311_install_egg() %{expand:\\\ mkdir -p %{buildroot}%{alt_python311_sitelib} %alt_easy_install-3.9 -m --prefix %{buildroot}%{_prefix} -Z dist/*-py3.9.egg %{?*} %{alt_python311_dir}/bin/easy_install-3.9 %{alt_python311_locate}/bin/easy_install-3.9 } %alt_py311_install_wheel() %{expand:\\\ %{alt_python311_dir}/bin/pip3.9 install -I dist/%{1} --root %{buildroot} --no-deps } macros.d/macros.vpath 0000644 00000000361 15043540723 0010605 0 ustar 00 # ---- VPATH default settings # directory where CMakeLists.txt/meson.build/etc. are placed %_vpath_srcdir . # directory (doesn't need to exist) where all generated build files will be placed %_vpath_builddir %{_vendor}-%{_target_os}-build macros.d/macros.dist 0000644 00000000374 15043540723 0010432 0 ustar 00 # dist macros. %__bootstrap ~bootstrap %cloudlinux_ver 9 %cloudlinux 9 %centos_ver 9 %centos 9 %rhel 9 %dist %{!?distprefix0:%{?distprefix}}%{expand:%{lua:for i=0,9999 do print("%{?distprefix" .. i .."}") end}}.el9%{?with_bootstrap:~bootstrap} %el9 1 macros.d/macros.forge 0000644 00000006376 15043540723 0010601 0 ustar 00 # Computes forge-related variables for use in the rest of the spec file # Control variables, flags and arguments: # %{forgeurl<number>} the project url on the target forge # %{tag<number>} the packaged tag, OR # %{commit<number>} the packaged commit, OR # %{version<number>} the packaged version # – %{version}/%{version0} are set via: # Version: # – because git is lacking a built-in version # reference, %{version<number>} will be translated # into %{tag<number>} using unreliable heuristics; # set %{tag<number>} directly if those fail # %{date<number>} the packaged timestamp # … %forgemeta will compute a huge number of variables: # — the packager can override it by setting some of # those before the %forgemeta call # – use the -i flag to list those variables # -z <number> only process the zth block of definitions # "" for the no-suffix block # -i list the resulting variable values # -s silently ignore problems in %{forgeurl<number>} # -v be verbose # -a process all sources in one go, instead of using # separate -z calls %forgemeta(z:isva) %{lua: local fedora = require "fedora.common" local forge = require "fedora.srpm.forge" local verbose = rpm.expand("%{-v}") ~= "" local informative = rpm.expand("%{-i}") ~= "" local silent = rpm.expand("%{-s}") ~= "" local processall = (rpm.expand("%{-a}") ~= "") and (rpm.expand("%{-z}") == "") if processall then for _,s in pairs(fedora.getsuffixes("forgeurl")) do forge.meta(s,verbose,informative,silent) end else forge.meta(rpm.expand("%{-z*}"),verbose,informative,silent) end } # Unpacks sources computed by %forgemeta # Control variables, flags and arguments: # %{forgesource<number>} the source archive that will be processed # %{forgesetupargs<number>} %setup arguments # -z <number> only process the zth block of definitions # "" for the no-suffix block # -v be verbose # -a process all sources in one go, instead of using # separate -z calls %forgesetup(z:va) %{lua: local fedora = require "fedora.common" if (rpm.expand("%{-z}") == "") and (rpm.expand("%{-a}") ~= "") then for _,s in pairs(fedora.getsuffixes("forgesetupargs")) do print(rpm.expand("%setup %{!-v:-q} %{?forgesetupargs" .. s .. "}\\n")) end else print( rpm.expand("%setup %{!-v:-q} %{?forgesetupargs" .. rpm.expand("%{-z*}") .. "}\\n")) end } # Calls %autosetup using %forgemeta results # – this will probably be removed since it is unsafe in presence of multiple # sources # Control variables, flags and arguments: # -z <number> process the zth block of definitions # -v -N -S -p relayed to %autosetup %forgeautosetup(z:vNS:p:q) %{lua: print(rpm.expand("%autosetup %{-v} %{-N} %{?-S} %{?-p} %{?forgesetupargs" .. rpm.expand("%{-z*}") .. "}\\n")) } macros.d/macros.ocaml-srpm 0000644 00000001351 15043540723 0011535 0 ustar 00 # Note that OCaml is compiled on all architectures. However # on some (rare) architectures, only bytecode compilation is # available. Use these macros to find out if native code # compilation is available on a particular architecture. # Architectures that support the OCaml native code compiler. %ocaml_native_compiler aarch64 %{arm} %{ix86} ppc ppc64 ppc64le riscv64 s390x sparc sparcv9 x86_64 # Architectures that support native dynamic linking of OCaml code. %ocaml_natdynlink aarch64 %{arm} %{ix86} ppc ppc64 ppc64le riscv64 s390x sparc sparcv9 x86_64 # Architectures that support profiling of native code (ocamlopt -p). # This was removed in OCaml 4.09. # https://github.com/ocaml/ocaml/pull/2314 %ocaml_native_profiling %{nil} macros.d/macros.mono-srpm 0000644 00000000265 15043540723 0011415 0 ustar 00 # arches that mono builds on %mono_arches %{ix86} x86_64 sparc sparcv9 ia64 %{arm} aarch64 alpha s390x ppc ppc64 ppc64le %_monodir %{_prefix}/lib/mono %_monogacdir %{_monodir}/gac macros.d/macros.fedora-misc 0000644 00000004662 15043540723 0011664 0 ustar 00 # Fedora macros, safe to use after the SRPM build stage # Lists files matching inclusion globs, excluding files matching exclusion # globs # – globs are space-separated lists of shell globs. Such lists require # %{quote:} use when passed as rpm arguments or flags. # Control variables, flags and arguments: # %{listfiles_include} inclusion globs # %{listfiles_exclude} exclusion globs # -i <globs> inclusion globs # -x <globs> exclusion globs # … arguments passed to the macro without flags will be # interpreted as inclusion globs %listfiles(i:x:) %{expand: %if %{lua: print(string.len(rpm.expand("%{?-i*}%{?listfiles_include}%*")))} listfiles_include=$(realpath -e --relative-base=. %{?-i*} %{?listfiles_include} %* | sort -u) %if %{lua: print(string.len(rpm.expand("%{?-x*}%{?listfiles_exclude}")))} while IFS= read -r finc ; do realpath -qe --relative-base=. %{?-x*} %{?listfiles_exclude} \\ | sort -u | grep -q "${finc}" || echo "${finc}" done <<< "${listfiles_include}" %else echo "${listfiles_include}" %endif %endif } # https://github.com/rpm-software-management/rpm/issues/581 # Writes the contents of a list of rpm variables to a macro file # Control variables, flags and arguments: # -f <filename> the macro file to process: # – it must contain corresponding anchors # – for example %writevars -f myfile foo bar will replace: # @@FOO@@ with the rpm evaluation of %{foo} and # @@BAR@@ with the rpm evaluation of %{bar} # in myfile %writevars(f:) %{lua: local fedora = require "fedora.common" local macrofile = rpm.expand("%{-f*}") local rpmvars = {} for i = 1, rpm.expand("%#") do table.insert(rpmvars, rpm.expand("%" .. i)) end fedora.writevars(macrofile,rpmvars) } # gpgverify verifies signed sources. There is documentation in the script. %gpgverify(k:s:d:) %{lua: local script = rpm.expand("%{_rpmconfigdir}/redhat/gpgverify ") local keyring = rpm.expand("%{-k*}") local signature = rpm.expand("%{-s*}") local data = rpm.expand("%{-d*}") print(script) if keyring ~= "" then print(rpm.expand("--keyring='%{SOURCE" .. keyring .. "}' ")) end if signature ~= "" then print(rpm.expand("--signature='%{SOURCE" .. signature .. "}' ")) end if data ~= "" then print(rpm.expand("--data='%{SOURCE" .. data .. "}' ")) end } macros.d/macros.systemd 0000644 00000015662 15043540723 0011165 0 ustar 00 # -*- Mode: rpm-spec; indent-tabs-mode: nil -*- */ # SPDX-License-Identifier: LGPL-2.1-or-later # # This file is part of systemd. # RPM macros for packages installing systemd unit files %_systemd_util_dir /usr/lib/systemd %_unitdir /usr/lib/systemd/system %_userunitdir /usr/lib/systemd/user %_presetdir /usr/lib/systemd/system-preset %_userpresetdir /usr/lib/systemd/user-preset %_udevhwdbdir /usr/lib/udev/hwdb.d %_udevrulesdir /usr/lib/udev/rules.d %_journalcatalogdir /usr/lib/systemd/catalog %_binfmtdir /usr/lib/binfmt.d %_sysctldir /usr/lib/sysctl.d %_sysusersdir /usr/lib/sysusers.d %_tmpfilesdir /usr/lib/tmpfiles.d %_user_tmpfilesdir /usr/share/user-tmpfiles.d %_environmentdir /usr/lib/environment.d %_modulesloaddir /usr/lib/modules-load.d %_modprobedir /usr/lib/modprobe.d %_systemdgeneratordir /usr/lib/systemd/system-generators %_systemdusergeneratordir /usr/lib/systemd/user-generators %_systemd_system_env_generator_dir /usr/lib/systemd/system-environment-generators %_systemd_user_env_generator_dir /usr/lib/systemd/user-environment-generators # Because we had one release with a typo... # This is temporary (Remove after systemd 240 is released) %_environmnentdir %{warn:Use %%_environmentdir instead}%_environmentdir %systemd_requires \ Requires(post): systemd \ Requires(preun): systemd \ Requires(postun): systemd \ %{nil} %systemd_ordering \ OrderWithRequires(post): systemd \ OrderWithRequires(preun): systemd \ OrderWithRequires(postun): systemd \ %{nil} %__systemd_someargs_0(:) %{error:The %%%1 macro requires some arguments} %__systemd_twoargs_2() %{nil} %systemd_post() \ %{expand:%%{?__systemd_someargs_%#:%%__systemd_someargs_%# systemd_post}} \ if [ $1 -eq 1 ] && [ -x "/usr/lib/systemd/systemd-update-helper" ]; then \ # Initial installation \ /usr/lib/systemd/systemd-update-helper install-system-units %{?*} || : \ fi \ %{nil} %systemd_user_post() \ %{expand:%%{?__systemd_someargs_%#:%%__systemd_someargs_%# systemd_user_post}} \ if [ $1 -eq 1 ] && [ -x "/usr/lib/systemd/systemd-update-helper" ]; then \ # Initial installation \ /usr/lib/systemd/systemd-update-helper install-user-units %{?*} || : \ fi \ %{nil} %systemd_preun() \ %{expand:%%{?__systemd_someargs_%#:%%__systemd_someargs_%# systemd_preun}} \ if [ $1 -eq 0 ] && [ -x "/usr/lib/systemd/systemd-update-helper" ]; then \ # Package removal, not upgrade \ /usr/lib/systemd/systemd-update-helper remove-system-units %{?*} || : \ fi \ %{nil} %systemd_user_preun() \ %{expand:%%{?__systemd_someargs_%#:%%__systemd_someargs_%# systemd_user_preun}} \ if [ $1 -eq 0 ] && [ -x "/usr/lib/systemd/systemd-update-helper" ]; then \ # Package removal, not upgrade \ /usr/lib/systemd/systemd-update-helper remove-user-units %{?*} || : \ fi \ %{nil} %systemd_postun() \ %{expand:%%{?__systemd_someargs_%#:%%__systemd_someargs_%# systemd_postun}} \ %{nil} %systemd_user_postun() \ %{expand:%%{?__systemd_someargs_%#:%%__systemd_someargs_%# systemd_user_postun}} \ %{nil} %systemd_postun_with_restart() \ %{expand:%%{?__systemd_someargs_%#:%%__systemd_someargs_%# systemd_postun_with_restart}} \ if [ $1 -ge 1 ] && [ -x "/usr/lib/systemd/systemd-update-helper" ]; then \ # Package upgrade, not uninstall \ /usr/lib/systemd/systemd-update-helper mark-restart-system-units %{?*} || : \ fi \ %{nil} %systemd_user_postun_with_restart() \ %{expand:%%{?__systemd_someargs_%#:%%__systemd_someargs_%# systemd_user_postun_with_restart}} \ if [ $1 -ge 1 ] && [ -x "/usr/lib/systemd/systemd-update-helper" ]; then \ # Package upgrade, not uninstall \ /usr/lib/systemd/systemd-update-helper mark-restart-user-units %{?*} || : \ fi \ %{nil} %systemd_postun_with_reload() \ %{expand:%%{?__systemd_someargs_%#:%%__systemd_someargs_%# systemd_postun_with_reload}} \ if [ $1 -ge 1 ] && [ -x "/usr/lib/systemd/systemd-update-helper" ]; then \ # Package upgrade, not uninstall \ /usr/lib/systemd/systemd-update-helper mark-reload-system-units %{?*} || : \ fi \ %{nil} %systemd_user_postun_with_reload() \ %{expand:%%{?__systemd_someargs_%#:%%__systemd_someargs_%# systemd_user_postun_with_reload}} \ if [ $1 -ge 1 ] && [ -x "/usr/lib/systemd/systemd-update-helper" ]; then \ # Package upgrade, not uninstall \ /usr/lib/systemd/systemd-update-helper mark-reload-user-units %{?*} || : \ fi \ %{nil} %systemd_user_daemon_reexec() \ if [ $1 -ge 1 ] && [ -x "/usr/lib/systemd/systemd-update-helper" ]; then \ # Package upgrade, not uninstall \ /usr/lib/systemd/systemd-update-helper user-reexec || : \ fi \ %{nil} %udev_hwdb_update() %{nil} %udev_rules_update() %{nil} %journal_catalog_update() %{nil} # Deprecated. Use %tmpfiles_create_package instead %tmpfiles_create() \ %{expand:%%{?__systemd_someargs_%#:%%__systemd_someargs_%# tmpfiles_create}} \ command -v systemd-tmpfiles >/dev/null && systemd-tmpfiles --create %{?*} || : \ %{nil} # Deprecated. Use %sysusers_create_package instead %sysusers_create() \ %{expand:%%{?__systemd_someargs_%#:%%__systemd_someargs_%# sysusers_create}} \ command -v systemd-sysusers >/dev/null && systemd-sysusers %{?*} || : \ %{nil} %sysusers_create_inline() \ command -v systemd-sysusers >/dev/null && systemd-sysusers - <<SYSTEMD_INLINE_EOF || : \ %{?*} \ SYSTEMD_INLINE_EOF\ %{nil} # This should be used by package installation scripts which require users or # groups to be present before the files installed by the package are present on # disk (for example because some files are owned by those users or groups). # # Example: # Source1: %{name}-sysusers.conf # ... # %install # install -D %SOURCE1 %{buildroot}%{_sysusersdir}/%{name}.conf # %pre # %sysusers_create_package %{name} %SOURCE1 # %files # %{_sysusersdir}/%{name}.conf %sysusers_create_package() \ %{expand:%%{?!__systemd_twoargs_%#:%%{error:The %%%%sysusers_create_package macro requires two arguments}}} \ systemd-sysusers --replace=%_sysusersdir/%1.conf - <<SYSTEMD_INLINE_EOF || : \ %(cat %2) \ SYSTEMD_INLINE_EOF\ %{nil} # This may be used by package installation scripts to create files according to # their tmpfiles configuration from a package installation script, even before # the files of that package are installed on disk. # # Example: # Source1: %{name}-tmpfiles.conf # ... # %install # install -D %SOURCE1 %{buildroot}%{_tmpfilesdir}/%{name}.conf # %pre # %tmpfiles_create_package %{name} %SOURCE1 # %files # %{_tmpfilesdir}/%{name}.conf %tmpfiles_create_package() \ %{expand:%%{?!__systemd_twoargs_%#:%%{error:The %%%%tmpfiles_create_package macro requires two arguments}}} \ systemd-tmpfiles --replace=%_tmpfilesdir/%1.conf --create - <<SYSTEMD_INLINE_EOF || : \ %(cat %2) \ SYSTEMD_INLINE_EOF\ %{nil} %sysctl_apply() \ %{expand:%%{?__systemd_someargs_%#:%%__systemd_someargs_%# sysctl_apply}} \ [ -x /usr/lib/systemd/systemd-sysctl ] && /usr/lib/systemd/systemd-sysctl %{?*} || : \ %{nil} %binfmt_apply() \ %{expand:%%{?__systemd_someargs_%#:%%__systemd_someargs_%# binfmt_apply}} \ [ -x /usr/lib/systemd/systemd-binfmt ] && /usr/lib/systemd/systemd-binfmt %{?*} || : \ %{nil} macros.d/macros.perl-srpm 0000644 00000001536 15043540723 0011411 0 ustar 00 # Copyright (c) 2012 Petr Pisar <ppisar@redhat.com>. # This file is distributed under the terms of GNU GPL license version 3, or # any later version. # This file contains macros that can be used for building source RPM package # from git source repository. This file must present in minimal build root to # take effect. # This file must not use Perl or any non-minimal-build-root package. The # purpose is to enable bootstrapping perl. # Perl bootstrap For rebuild of Perl and all related packages is needed # switch, which enable only vital build requires. This could help cyclic # dependencies, for example: perl-Test-Minimum-Version <-> # perl-Perl-Minimum-Version Defined for bootstraping, undefined otherwise. # Usage: %%if !%%{defined perl_bootstrap} ... %%endif #%%perl_bootstrap 1 # Perl macro, no longer part of rpm >= 4.15 %__perl %{_bindir}/perl macros.d/macros.sysusers 0000644 00000000527 15043540723 0011367 0 ustar 00 # RPM macros for packages creating system accounts # # Turn a sysusers.d file into macros specified by # https://docs.fedoraproject.org/en-US/packaging-guidelines/UsersAndGroups/#_dynamic_allocation %sysusers_requires_compat Requires(pre): shadow-utils %sysusers_create_compat() \ %(%{_rpmconfigdir}/sysusers.generate-pre.sh %{?*}) \ %{nil} macros.d/macros.nodejs-srpm 0000644 00000000504 15043540723 0011723 0 ustar 00 # nodejs_arches lists what arches Node.js and dependent packages run on. # # Enabling Node.js on other arches requires porting the V8 JavaScript JIT to # those arches. Support for POWER and aarch64 arrived in nodejs v4. Support # for s390x arrived in nodejs v6 %nodejs_arches %{ix86} x86_64 %{arm} aarch64 %{power64} s390x macros.d/macros.qt5-srpm 0000644 00000000754 15043540723 0011161 0 ustar 00 # # the architectures theoretically supported by the version of V8 used (#1298011) # # You may need some minor patching to build on one of the secondary # # architectures, e.g., to add to the Qt -> Chromium -> V8 arch translations. # # If you cannot get this package to build on your secondary architecure, please: # # * remove your architecture from this list AND # # * put #1298011 onto your ExcludeArch tracker. %qt5_qtwebengine_arches %{ix86} x86_64 %{arm} aarch64 mips mipsel mips64el macros.d/macros.qt5-qtbase 0000644 00000000116 15043540723 0011447 0 ustar 00 %_qt5 qt5-qtbase %_qt5_epoch 0 %_qt5_version 5.15.9 %_qt5_evr 5.15.9-10.el9_4 macros.d/macros.selinux-policy 0000644 00000015626 15043540723 0012461 0 ustar 00 # Copyright (C) 2017 Red Hat, Inc. All rights reserved. # # Author: Petr Lautrbach <plautrba@redhat.com> # Author: Lukáš Vrabec <lvrabec@redhat.com> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # RPM macros for packages installing SELinux modules %_selinux_policy_version 38.1.45-3.el9_5 %_selinux_store_path /var/lib/selinux %_selinux_store_policy_path %{_selinux_store_path}/${_policytype} %_file_context_file %{_sysconfdir}/selinux/${SELINUXTYPE}/contexts/files/file_contexts %_file_context_file_pre %{_localstatedir}/lib/rpm-state/file_contexts.pre %_file_custom_defined_booleans %{_selinux_store_policy_path}/rpmbooleans.custom %_file_custom_defined_booleans_tmp %{_selinux_store_policy_path}/rpmbooleans.custom.tmp # %selinux_requires %selinux_requires \ Requires: selinux-policy >= %{_selinux_policy_version} \ BuildRequires: pkgconfig(systemd) \ BuildRequires: selinux-policy \ BuildRequires: selinux-policy-devel \ Requires(post): selinux-policy-base >= %{_selinux_policy_version} \ Requires(post): libselinux-utils \ Requires(post): policycoreutils \ %if 0%{?fedora} || 0%{?rhel} > 7\ Requires(post): policycoreutils-python-utils \ %else \ Requires(post): policycoreutils-python \ %endif \ %{nil} # %selinux_modules_install [-s <policytype>] [-p <modulepriority>] module [module]... %selinux_modules_install("s:p:") \ if [ -e /etc/selinux/config ]; then \ . /etc/selinux/config \ fi \ _policytype=%{-s*} \ if [ -z "${_policytype}" ]; then \ _policytype="targeted" \ fi \ if [ "${SELINUXTYPE}" = "${_policytype}" ]; then \ %{_sbindir}/semodule -n -s ${_policytype} -X %{!-p:200}%{-p*} -i %* || : \ %{_sbindir}/selinuxenabled && %{_sbindir}/load_policy || : \ fi \ %{nil} # %selinux_modules_uninstall [-s <policytype>] [-p <modulepriority>] module [module]... %selinux_modules_uninstall("s:p:") \ if [ -e /etc/selinux/config ]; then \ . /etc/selinux/config \ fi \ _policytype=%{-s*} \ if [ -z "${_policytype}" ]; then \ _policytype="targeted" \ fi \ if [ $1 -eq 0 ]; then \ if [ "${SELINUXTYPE}" = "${_policytype}" ]; then \ %{_sbindir}/semodule -n -X %{!-p:200}%{-p*} -s ${_policytype} -r %* &> /dev/null || : \ %{_sbindir}/selinuxenabled && %{_sbindir}/load_policy || : \ fi \ fi \ %{nil} # %selinux_relabel_pre [-s <policytype>] %selinux_relabel_pre("s:") \ if %{_sbindir}/selinuxenabled; then \ if [ -e /etc/selinux/config ]; then \ . /etc/selinux/config \ fi \ _policytype=%{-s*} \ if [ -z "${_policytype}" ]; then \ _policytype="targeted" \ fi \ if [ "${SELINUXTYPE}" = "${_policytype}" ]; then \ [ -f %{_file_context_file_pre} ] || cp -f %{_file_context_file} %{_file_context_file_pre} \ fi \ fi \ %{nil} # %selinux_relabel_post [-s <policytype>] %selinux_relabel_post("s:") \ if [ -e /etc/selinux/config ]; then \ . /etc/selinux/config \ fi \ _policytype=%{-s*} \ if [ -z "${_policytype}" ]; then \ _policytype="targeted" \ fi \ if %{_sbindir}/selinuxenabled && [ "${SELINUXTYPE}" = "${_policytype}" ]; then \ if [ -f %{_file_context_file_pre} ]; then \ %{_sbindir}/fixfiles -C %{_file_context_file_pre} restore &> /dev/null \ rm -f %{_file_context_file_pre} \ fi \ fi \ %{nil} # %selinux_set_booleans [-s <policytype>] boolean [boolean]... %selinux_set_booleans("s:") \ if [ -e /etc/selinux/config ]; then \ . /etc/selinux/config \ fi \ _policytype=%{-s*} \ if [ -z "${_policytype}" ]; then \ _policytype="targeted" \ fi \ if [ -d "%{_selinux_store_policy_path}" ]; then \ LOCAL_MODIFICATIONS=$(%{_sbindir}/semanage boolean -E) \ if [ ! -f %_file_custom_defined_booleans ]; then \ /bin/echo "# This file is managed by macros.selinux-policy. Do not edit it manually" > %_file_custom_defined_booleans \ fi \ semanage_import='' \ for boolean in %*; do \ boolean_name=${boolean%=*} \ boolean_value=${boolean#*=} \ boolean_local_string=$(grep "$boolean_name\$" <<<$LOCAL_MODIFICATIONS) \ if [ -n "$boolean_local_string" ]; then \ semanage_import="${semanage_import}\\nboolean -m -$boolean_value $boolean_name" \ boolean_customized_string=$(grep "$boolean_name\$" %_file_custom_defined_booleans | tail -n 1) \ if [ -n "$boolean_customized_string" ]; then \ /bin/echo $boolean_customized_string >> %_file_custom_defined_booleans \ else \ /bin/echo $boolean_local_string >> %_file_custom_defined_booleans \ fi \ else \ semanage_import="${semanage_import}\\nboolean -m -$boolean_value $boolean_name" \ boolean_default_value=$(LC_ALL=C %{_sbindir}/semanage boolean -l | grep "^$boolean_name " | sed 's/[^(]*([^,]*, *\\(on\\|off\\).*/\\1/') \ /bin/echo "boolean -m --$boolean_default_value $boolean_name" >> %_file_custom_defined_booleans \ fi \ done; \ if %{_sbindir}/selinuxenabled && [ "${SELINUXTYPE}" = "${_policytype}" ]; then \ /bin/echo -e "$semanage_import" | %{_sbindir}/semanage import -S "${_policytype}" \ elif test -d /usr/share/selinux/"${_policytype}"/base.lst; then \ /bin/echo -e "$semanage_import" | %{_sbindir}/semanage import -S "${_policytype}" -N \ fi \ fi \ %{nil} # %selinux_unset_booleans [-s <policytype>] boolean [boolean]... %selinux_unset_booleans("s:") \ if [ -e /etc/selinux/config ]; then \ . /etc/selinux/config \ fi \ _policytype=%{-s*} \ if [ -z "${_policytype}" ]; then \ _policytype="targeted" \ fi \ if [ -d "%{_selinux_store_policy_path}" ]; then \ semanage_import='' \ for boolean in %*; do \ boolean_name=${boolean%=*} \ boolean_customized_string=$(grep "$boolean_name\$" %_file_custom_defined_booleans | tail -n 1) \ if [ -n "$boolean_customized_string" ]; then \ awk "/$boolean_customized_string/ && !f{f=1; next} 1" %_file_custom_defined_booleans > %_file_custom_defined_booleans_tmp && mv %_file_custom_defined_booleans_tmp %_file_custom_defined_booleans \ if ! grep -q "$boolean_name\$" %_file_custom_defined_booleans; then \ semanage_import="${semanage_import}\\n${boolean_customized_string}" \ fi \ fi \ done; \ if %{_sbindir}/selinuxenabled && [ "${SELINUXTYPE}" = "${_policytype}" ]; then \ /bin/echo -e "$semanage_import" | %{_sbindir}/semanage import -S "${_policytype}" \ elif test -d /usr/share/selinux/"${_policytype}"/base.lst; then \ /bin/echo -e "$semanage_import" | %{_sbindir}/semanage import -S "${_policytype}" -N \ fi \ fi \ %{nil} macros.d/macros.kmp 0000644 00000010542 15043540723 0010254 0 ustar 00 # Use these macros to differentiate between RH and other KMP implementation(s). redhat_kernel_module_package 1 kernel_module_package_release 1 redhat_kmp_has_post_hooks 1 %__brp_kmod_set_exec_bit /usr/lib/rpm/redhat/brp-kmod-set-exec-bit %__brp_kmod_restore_perms /usr/lib/rpm/redhat/brp-kmod-restore-perms %__kmod_brps_added 0 #kernel_module_package [ -n name ] [ -v version ] [ -r release ] [ -s script ] # [ -f filelist] [ -x ] [ -p preamble ] flavor flavor ... %kernel_module_package_buildreqs %global kmodtool_generate_buildreqs 1 \ kernel-devel kernel-abi-stablelists redhat-rpm-config kernel-rpm-macros elfutils-libelf-devel kmod %kernel_module_package(n:v:r:s:f:xp:) %{expand:%( \ ## An ugly hack: we want kmods to be processed by find-debuginfo, ## but it processes only files with executable permission set. ## It is important now since, as of now, if debuginfo package ## is enabled (and it is enabled), there's an RPM build error ## as a result of lack of ether absence or emptiness of ## debugsourcefiles.list (which is likely a bug in RPM, but it looks ## like that there's no obvious fix and apparently no one have ## any issues with this). ## In order to minimise intrusiveness, usually (in Red Hat-built kmod ## RPMs) *.ko files just have executable permission being set as a part ## of %build section. There are two caveats with kmp, however: ## * We have no control over %build section itself (and it wasn't ## required previously) ## * Changing the criteria used in find-debuginfo.sh/brp-strip ## for selecting files that have to undergo debug section separation ## may introduce regression. ## As a result, we insert additional hooks in __spec_install_post ## (__brp_kmod_set_exec_bit in the beginning and ## __brp_kmod_restore_perms in the end) that (temporarily) set ## executable permission for *.ko files so find-debuginfo.sh will pick ## them up. ## Unfortunately, __spec_install_post's body is copied here since ## we want that __debug_package macro expansion has been performed ## lazily and it looks like RPM has no ability to provide a body ## of a macro verbatim. if [ 0 = "%{__kmod_brps_added}" ]; then \ echo "%%global __spec_install_post \\\\" \ echo " %%{?__brp_kmod_set_exec_bit} \\\\" \ echo " %%%%{?__debug_package:%%%%{__debug_install_post}} \\\\" \ echo " %%{__arch_install_post} \\\\" \ echo " %%{__os_install_post} \\\\" \ echo " %%{?__brp_kmod_pre_sign_process} \\\\" \ echo " %%{?__brp_kmod_sign} \\\\" \ echo " %%{?__brp_kmod_post_sign_process} \\\\" \ echo " %%{?__brp_kmod_compress} \\\\" \ echo " %%{?__brp_kmod_post_compress_process} \\\\" \ echo " %%{?__brp_kmod_restore_perms} \\\\" \ echo "%%{nil}" \ fi \ %global __kmod_brps_added 1 \ %global kmodtool %{-s*}%{!-s:/usr/lib/rpm/redhat/kmodtool} \ %global kmod_version %{-v*}%{!-v:%{version}} \ %global kmod_release %{-r*}%{!-r:%{release}} \ %global latest_kernel %({ rpm -q --qf '%%{VERSION}-%%{RELEASE}.%%{ARCH}\\\\n' `rpm -qa | egrep "^kernel(-rt|-aarch64)?-devel" | /usr/lib/rpm/redhat/rpmsort -r | head -n 1`; echo '%%%%{nil}'; } | head -n 1) \ %{!?kernel_version:%{expand:%%global kernel_version %{latest_kernel}}} \ %global kverrel %(%{kmodtool} verrel %{?kernel_version} 2>/dev/null) \ flavors="default" \ if [ -z "%*" ]; then \ flavors_to_build=$flavors \ elif [ -z "%{-x}" ]; then \ flavors_to_build="%*" \ else \ flavors_to_build=" $flavors "\ for i in %* \ do \ flavors_to_build=${flavors_to_build//$i /} done \ fi \ echo "%%global flavors_to_build ${flavors_to_build:-%%nil}" \ echo "%%global kernel_source() \\\$([ default = \"%%%%{1}\" ] && echo \"/usr/src/kernels//%%%%kverrel\" || %{kmodtool} kernel_source \"%%%%{kverrel}\" \"%%%%{1}\" 2>/dev/null || { ls -Ud \"/usr/src/kernels///%%%%{kverrel}\"[.+]\"%%%%{1}\" | sort -V | tail -n 1; } || echo \"/usr/src/kernels////%%%%kverrel.%%%%1\")" \ echo "%%global kernel_module_package_moddir() extra" \ if [ ! -z "%{-f*}" ] \ then \ filelist="%{-f*}" \ fi \ if [ ! -z "%{-p*}" ] \ then \ preamble="%{-p*}" \ fi \ nobuildreqs="yes" \ if [ "x%{kmodtool_generate_buildreqs}" != "x1" ] \ then \ nobuildreqs="no" \ fi \ override_filelist="$filelist" override_preamble="$preamble" nobuildreqs="$nobuildreqs" kmod_version=%kmod_version kmod_release=%kmod_release %{kmodtool} rpmtemplate %{-n*}%{!-n:%name} %{kverrel} $flavors_to_build 2>/dev/null \ )} macros.d/macros.rust-srpm 0000644 00000002541 15043540723 0011441 0 ustar 00 %rust_arches x86_64 %{ix86} armv7hl aarch64 ppc64 ppc64le riscv64 s390x %version_no_tilde() %{lua: local sep = rpm.expand('%1') local ver = rpm.expand('%2') \ if sep == '%1' then sep = '-' end \ if ver == '%2' then ver = rpm.expand('%version') end ver = ver:gsub('~', sep) \ print(ver) } %__crates_url https://crates.io/api/v1/crates/ %crates_source() %{lua: local crate = rpm.expand('%1') local version = rpm.expand('%2') local url = rpm.expand('%__crates_url') \ if crate == '%1' then crate = rpm.expand('%real_crate') end if crate == '%real_crate' then crate = rpm.expand('%crate') end if crate == '%crate' then crate = rpm.expand('%name') end \ if version == '%2' then version = rpm.expand('%version') end version = version:gsub('~', '-') \ print(url .. crate .. '/' .. version .. '/download#/' .. crate .. '-' .. version .. '.crate') } # If crate not in _build_crates and _module_build is set, we should skip the build %__cargo_skip_build %{lua: local crate = rpm.expand('%{crate}') local build_crate = false for w in rpm.expand('%{?_build_crates}'):gmatch('%S+') do if w == crate then build_crate = true break end end if (rpm.expand('%{defined _module_build}') ~= '0' and not build_crate) then print(1) else print(0) end} macros.d/macros.ghc-srpm 0000644 00000001027 15043540723 0011203 0 ustar 00 # Macros needed for building srpms of Haskell packages # from ghc-7.8 ghci is supported on all arch's # former archs: armv5tel ppc sparcv9 %ghc_arches_with_ghci %{ix86} x86_64 armv7hl ppc64 ppc64le aarch64 s390 s390x %{mips} # ghc_arches is not used in current packages but still here for back compat # former archs: alpha ppc sparcv9 armv5tel %ghc_arches %{ix86} x86_64 armv7hl ppc64 ppc64le aarch64 s390 s390x # control whether to BR devel or prof library packages # (prof subpackages were introduced in F31) %ghc_devel_prof prof macros.d/macros.python-srpm 0000644 00000026211 15043540723 0011765 0 ustar 00 # There are multiple Python 3 versions packaged, but only one can be the "main" version # That means that it owns the "python3" namespace: # - python3 package name # - /usr/bin/python3 command # - python3-foo packages are meant for this version # Other versions of Python 3 always contain the version in the namespace: # - python3.XX package name # - /usr/bin/python3.XX command # - python3.XX-foo packages (if allowed) # # Python spec files use the version defined here to determine defaults for the # %%py_provides and %%python_provide macros, as well as for the "pythonname" generator that # provides python3-foo for python3.XX-foo and vice versa for the default "main" version. # E.g. in Fedora 33, python3.9-foo will provide python3-foo, # python3-foo will provide python3.9-foo. # # There are two macros: # # This always contains the major.minor version (with dots), default for %%python3_version. %__default_python3_version 3.9 # # The pkgname version that determines the alternative provide name (e.g. python3.9-foo), # set to the same as above, but historically hasn't included the dot. # This is left intentionally a separate macro, in case the naming convention ever changes. %__default_python3_pkgversion %__default_python3_version # python3_pkgversion specifies the version of Python 3 in the distro. # For Fedora, this is usually just "3". # It can be a specific version distro-wide (e.g. "36" in EPEL7). # Alternatively, it can be overridden in spec (e.g. to "3.8") when building for alternate Python stacks. %python3_pkgversion 3 # Define the Python interpreter paths in the SRPM macros so that # - they can be used in Build/Requires # - they can be used in non-Python packages where requiring pythonX-devel would # be an overkill # use the underscored macros to redefine the behavior of %%python3_version etc. %__python2 /usr/bin/python2 %__python3 /usr/bin/python%{python3_pkgversion} # use the non-underscored macros to refer to Python in spec, etc. %python2 %__python2 %python3 %__python3 # See https://fedoraproject.org/wiki/Changes/PythonMacroError %__python %{error:attempt to use unversioned python, define %%__python to %{__python2} or %{__python3} explicitly} # Users can use %%python only if they redefined %%__python (e.g. to %%__python3) %python %__python # Define where Python wheels will be stored and the prefix of -wheel packages # - In Fedora we want wheel subpackages named e.g. `python-pip-wheel` that # install packages into `/usr/share/python-wheels`. Both names are not # versioned, because they're used by all Python 3 stacks. # - In RHEL we want wheel packages named e.g. `python3-pip-wheel` and # `python3.11-pip-wheel` that install packages into similarly versioned # locations. We want each Python stack in RHEL to have their own wheels, # because the main python3 wheels (which we can't upgrade) will likely be # quite old by the time we're adding new alternate Python stacks. # - In ELN we want to follow Fedora, because builds for ELN and Fedora rawhide # need to be interoperable. %python_wheel_pkg_prefix python%{?rhel:%{!?eln:%{python3_pkgversion}}} %python_wheel_dir %{_datadir}/%{python_wheel_pkg_prefix}-wheels # === Macros for Build/Requires tags using Python dist tags === # - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages # - These macros need to be in macros.python-srpm, because BuildRequires tags # get rendered as runtime requires into the metadata of SRPMs. # Converts Python dist name to a canonical format %py_dist_name() %{lua:\ name = rpm.expand("%{?1:%{1}}");\ canonical = string.gsub(string.lower(name), "[^%w%[%]]+", "-");\ print(canonical);\ } # Creates Python 2 dist tag(s) after converting names to canonical format # Needs to first put all arguments into a list, because invoking a different # macro (%%py_dist_name) overwrites them %py2_dist() %{lua:\ args = {}\ arg = 1\ while (true) do\ name = rpm.expand("%{?" .. arg .. ":%{" .. arg .. "}}");\ if (name == nil or name == '') then\ break\ end\ args[arg] = name\ arg = arg + 1\ end\ for arg, name in ipairs(args) do\ canonical = rpm.expand("%py_dist_name " .. name);\ print("python2dist(" .. canonical .. ") ");\ end\ } # Creates Python 3 dist tag(s) after converting names to canonical format # Needs to first put all arguments into a list, because invoking a different # macro (%%py_dist_name) overwrites them %py3_dist() %{lua:\ python3_pkgversion = rpm.expand("%python3_pkgversion");\ args = {}\ arg = 1\ while (true) do\ name = rpm.expand("%{?" .. arg .. ":%{" .. arg .. "}}");\ if (name == nil or name == '') then\ break\ end\ args[arg] = name\ arg = arg + 1\ end\ for arg, name in ipairs(args) do\ canonical = rpm.expand("%py_dist_name " .. name);\ print("python" .. python3_pkgversion .. "dist(" .. canonical .. ") ");\ end\ } # Macro to replace overly complicated references to PyPI source files. # Expands to the pythonhosted URL for a package # Accepts zero to three arguments: # 1: The PyPI project name, defaulting to %%srcname if it is defined, then # %%pypi_name if it is defined, then just %%name. # 2: The PYPI version, defaulting to %%version with tildes stripped. # 3: The file extension, defaulting to "tar.gz". (A period will be added # automatically.) # Requires %%__pypi_url and %%__pypi_default_extension to be defined. %__pypi_url https://files.pythonhosted.org/packages/source/ %__pypi_default_extension tar.gz %pypi_source() %{lua: local src = rpm.expand('%1') local ver = rpm.expand('%2') local ext = rpm.expand('%3') local url = rpm.expand('%__pypi_url') \ -- If no first argument, try %srcname, then %pypi_name, then %name -- Note that rpm leaves macros unchanged if they are not defined. if src == '%1' then src = rpm.expand('%srcname') end if src == '%srcname' then src = rpm.expand('%pypi_name') end if src == '%pypi_name' then src = rpm.expand('%name') end \ -- If no second argument, use %version if ver == '%2' then ver = rpm.expand('%version'):gsub('~', '') end \ -- If no third argument, use the preset default extension if ext == '%3' then ext = rpm.expand('%__pypi_default_extension') end \ local first = string.sub(src, 1, 1) \ print(url .. first .. '/' .. src .. '/' .. src .. '-' .. ver .. '.' .. ext) } %py_provides() %{lua: local python = require 'fedora.srpm.python' local rhel = rpm.expand('%{?rhel}') local name = rpm.expand('%1') if name == '%1' then rpm.expand('%{error:%%py_provides requires at least 1 argument, the name to provide}') end local evr = rpm.expand('%2') if evr == '%2' then evr = rpm.expand('%{?epoch:%{epoch}:}%{version}-%{release}') end print('Provides: ' .. name .. ' = ' .. evr .. '\\n') local provides = python.python_altprovides(name, evr) for i, provide in ipairs(provides) do print('Provides: ' .. provide .. '\\n') end -- We only generate these Obsoletes on CentOS/RHEL to provide clean upgrade -- path, e.g. python3-foo obsoletes python39-foo from previous RHEL. -- In Fedora this is not needed as we don't ship ecosystem packages -- for alternative Python interpreters. if rhel ~= '' then -- Create Obsoletes only if the name does not end in a parenthesis, -- as Obsoletes can't include parentheses. -- This most commonly happens when the name contains an isa. if (string.sub(name, "-1") ~= ")") then local obsoletes = python.python_altobsoletes(name, evr) for i, obsolete in ipairs(obsoletes) do print('Obsoletes: ' .. obsolete .. '\\n') end end end } %python_extras_subpkg(n:i:f:FaA) %{expand:%{lua: local option_n = '-n (name of the base package)' local option_i = '-i (buildroot path to metadata)' local option_f = '-f (builddir path to a filelist)' local option_F = '-F (skip %%files section)' local option_a = '-a (insert BuildArch: noarch)' local option_A = '-A (do not insert BuildArch: noarch (default))' local value_n = rpm.expand('%{-n*}') local value_i = rpm.expand('%{-i*}') local value_f = rpm.expand('%{-f*}') local value_F = rpm.expand('%{-F}') local value_a = rpm.expand('%{-a}') local value_A = rpm.expand('%{-A}') local args = rpm.expand('%{*}') if value_n == '' then rpm.expand('%{error:%%%0: missing option ' .. option_n .. '}') end if value_i == '' and value_f == '' and value_F == '' then rpm.expand('%{error:%%%0: missing option ' .. option_i .. ' or ' .. option_f .. ' or ' .. option_F .. '}') end if value_i ~= '' and value_f ~= '' then rpm.expand('%{error:%%%0: simultaneous ' .. option_i .. ' and ' .. option_f .. ' options are not possible}') end if value_i ~= '' and value_F ~= '' then rpm.expand('%{error:%%%0: simultaneous ' .. option_i .. ' and ' .. option_F .. ' options are not possible}') end if value_f ~= '' and value_F ~= '' then rpm.expand('%{error:%%%0: simultaneous ' .. option_f .. ' and ' .. option_F .. ' options are not possible}') end if value_a ~= '' and value_A ~= '' then rpm.expand('%{error:%%%0: simultaneous ' .. option_a .. ' and ' .. option_A .. ' options are not possible}') end if args == '' then rpm.expand('%{error:%%%0 requires at least one argument with "extras" name}') end local requires = 'Requires: ' .. value_n .. ' = %{?epoch:%{epoch}:}%{version}-%{release}' for extras in args:gmatch('[^%s,]+') do local rpmname = value_n .. '+' .. extras local pkgdef = '%package -n ' .. rpmname local summary = 'Summary: Metapackage for ' .. value_n .. ': ' .. extras .. ' extras' local description = '%description -n ' .. rpmname .. '\\\n' local current_line = 'This is a metapackage bringing in' for _, word in ipairs({extras, 'extras', 'requires', 'for', value_n .. '.'}) do local line = current_line .. ' ' .. word if line:len() > 79 then description = description .. current_line .. '\\\n' current_line = word else current_line = line end end description = description .. current_line .. '\\\n' .. 'It makes sure the dependencies are installed.\\\n' local files = '' if value_i ~= '' then files = '%files -n ' .. rpmname .. '\\\n' .. '%ghost ' .. value_i elseif value_f ~= '' then files = '%files -n ' .. rpmname .. ' -f ' .. value_f end local tags = summary .. '\\\n' .. requires if value_a ~= '' then tags = tags .. '\\\nBuildArch: noarch' end for i, line in ipairs({pkgdef, tags, description, files, ''}) do print(line .. '\\\n') end end }} macros.d/macros.dwz 0000644 00000003416 15043540723 0010273 0 ustar 00 # Macros for reducing debug info size using dwz(1) utility. # The two default values below should result in dwz taking at most # 3GB of RAM or so on 64-bit hosts and 2.5GB on 32-bit hosts # on the largest *.debug files (in mid 2012 those are # libreoffice-debuginfo, debuginfos containing # libxul.so.debug and libwebkitgtk-*.so.*.debug). # This needs to be tuned based on the amount of available RAM # on build boxes for each architecture as well as virtual address # space limitations if dwz is 32-bit program. While it needs less # memory than 64-bit program because pointers are smaller, it can # never have more than 4GB-epsilon of RAM and on some architecture # even less than that (e.g. 2GB). # Number of debugging information entries (DIEs) above which # dwz will stop considering file for multifile optimizations # and enter a low memory mode, in which it will optimize # in about half the memory needed otherwise. %_dwz_low_mem_die_limit 10000000 # Number of DIEs above which dwz will stop processing # a file altogether. %_dwz_max_die_limit 50000000 # On x86_64 increase the higher limit to make libwebkit* optimizable. # libwebkit* in mid 2012 contains roughly 87mil DIEs, and 64-bit # dwz is able to optimize it from ~1.1GB to ~410MB using 5.2GB of RAM. %_dwz_max_die_limit_x86_64 110000000 # On ARM, build boxes often have only 512MB of RAM and are very slow. # Lower both the limits. %_dwz_low_mem_die_limit_armv5tel 4000000 %_dwz_low_mem_die_limit_armv7hl 4000000 %_dwz_max_die_limit_armv5tel 10000000 %_dwz_max_die_limit_armv7hl 10000000 %_dwz_limit() %{expand:%%{?%{1}_%{_arch}}%%{!?%{1}_%{_arch}:%%%{1}}} %_find_debuginfo_dwz_opts --run-dwz\\\ --dwz-low-mem-die-limit %{_dwz_limit _dwz_low_mem_die_limit}\\\ --dwz-max-die-limit %{_dwz_limit _dwz_max_die_limit} brp-boot-efi-times 0000755 00000002671 15043540723 0010107 0 ustar 00 #!/usr/bin/bash -eu # If using normal root, avoid changing anything. if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then exit 0 fi if [[ ! -d "$RPM_BUILD_ROOT//boot/efi" ]] ; then exit 0 fi update() { local path="$1" local ctime=$(stat -c "%Z" "${path}") # we always want to touch it once... if [[ $((${ctime} % 2)) -eq 0 ]] ; then let ++ctime fi while [[ $((${ctime} % 2)) -eq 1 ]] ; do let ++ctime touch -h -c -d "@${ctime}" "${path}" ctime=$(stat -c "%Z" "${path}") done } declare -a dirs dirs=() || : cd "$RPM_BUILD_ROOT" while IFS= read -r -d $'\0' f; do if [[ -d "${f}" ]] ; then dirs[${#dirs[@]}]="${f}" else update "${f}" fi done < <(find ./boot/efi/ -print0) # sort the directory list lexicographically, longest-first, so a parent dir's # updated mtime won't be clobbered by the child dir being updated, if some day # someone actually makes that matter. # # I don't think we actually have to do this on linux, but # $RPM_BUILD_ROOT//boot/efi/ isn't going to have but so many files on # it. let i=0 || : let j=1 while [[ ${i} -lt ${#dirs[@]} ]] && [[ ${j} -lt ${#dirs[@]} ]] ; do if [[ "${dirs[$i]}" < "${dirs[$j]}" ]] ; then tmp="${dirs[$i]}" dirs[$i]="${dirs[$j]}" dirs[$j]="${tmp}" else let ++j fi if [[ ${j} -ge ${#dirs[@]} ]] ; then let ++i let ++j fi done # and now just process them just like files. if [[ ${#dirs[@]} -gt 0 ]] ; then for dir in "${dirs[@]}" ; do update "${dir}" done fi lua/fedora/srpm/python.lua 0000644 00000007775 15043540723 0011615 0 ustar 00 -- Convenience Lua functions that can be used within Python srpm/rpm macros -- Determine alternate names provided from the given name. -- Used in pythonname provides generator, python_provide and py_provides. -- If only_3_to_3_X is false/nil/unused there are 2 rules: -- python3-foo -> python-foo, python3.X-foo -- python3.X-foo -> python-foo, python3-foo -- If only_3_to_3_X is true there is only 1 rule: -- python3-foo -> python3X-foo -- There is no python-foo -> rule, python-foo packages are version agnostic. -- Returns a table/array with strings. Empty when no rule matched. local function python_altnames(name, only_3_to_3_X) local xy if only_3_to_3_X then -- Here we hardcode the xy prefix we want to obsolete to "39", because: -- 1. Python 3.9 will remain the main Python version in RHEL 9 -- 2. python39 in RHEL 8 is still using the dotless naming (as opposed to -- python3.9) xy = "39" else xy = rpm.expand('%{__default_python3_pkgversion}') end local altnames = {} local replaced -- NB: dash needs to be escaped! if name:match('^python3%-') then local prefixes = only_3_to_3_X and {} or {'python-'} for i, prefix in ipairs({'python' .. xy .. '-', table.unpack(prefixes)}) do replaced = name:gsub('^python3%-', prefix) table.insert(altnames, replaced) end elseif name:match('^python' .. xy .. '%-') and not only_3_to_3_X then for i, prefix in ipairs({'python-', 'python3-'}) do replaced = name:gsub('^python' .. xy .. '%-', prefix) table.insert(altnames, replaced) end end return altnames end local function __python_alttags(name, evr, tag_type) -- for the "provides" tag_type we want also unversioned provides local only_3_to_3_X = tag_type ~= "provides" local operator = tag_type == "provides" and ' = ' or ' < ' -- global cache that tells what package NEVRs were already processed for the -- given tag type if __python_alttags_beenthere == nil then __python_alttags_beenthere = {} end if __python_alttags_beenthere[tag_type] == nil then __python_alttags_beenthere[tag_type] = {} end __python_alttags_beenthere[tag_type][name .. ' ' .. evr] = true local alttags = {} for i, altname in ipairs(python_altnames(name, only_3_to_3_X)) do table.insert(alttags, altname .. operator .. evr) end return alttags end -- For any given name and epoch-version-release, return provides except self. -- Uses python_altnames under the hood -- Returns a table/array with strings. local function python_altprovides(name, evr) return __python_alttags(name, evr, "provides") end -- For any given name and epoch-version-release, return versioned obsoletes except self. -- Uses python_altnames under the hood -- Returns a table/array with strings. local function python_altobsoletes(name, evr) return __python_alttags(name, evr, "obsoletes") end local function __python_alttags_once(name, evr, tag_type) -- global cache that tells what provides were already processed if __python_alttags_beenthere == nil or __python_alttags_beenthere[tag_type] == nil or __python_alttags_beenthere[tag_type][name .. ' ' .. evr] == nil then return __python_alttags(name, evr, tag_type) else return nil end end -- Like python_altprovides but only return something once. -- For each argument can only be used once, returns nil otherwise. -- Previous usage of python_altprovides counts as well. local function python_altprovides_once(name, evr) return __python_alttags_once(name, evr, "provides") end -- Like python_altobsoletes but only return something once. -- For each argument can only be used once, returns nil otherwise. -- Previous usage of python_altobsoletes counts as well. local function python_altobsoletes_once(name, evr) return __python_alttags_once(name, evr, "obsoletes") end return { python_altnames = python_altnames, python_altprovides = python_altprovides, python_altobsoletes = python_altobsoletes, python_altprovides_once = python_altprovides_once, python_altobsoletes_once = python_altobsoletes_once, } lua/fedora/srpm/go.lua 0000644 00000040025 15043540723 0010662 0 ustar 00 -- Copyright (c) 2017-2019 Nicolas Mailhot <nim@fedoraproject.org> -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program. If not, see <https://www.gnu.org/licenses/>. -- -- SPDX-License-Identifier: GPL-3.0-or-later -- This file contains Lua code used in rpm macros needed to create and process -- source rpm (srpm) Go (golang) packages. -- -- The resulting code must not use any package except redhat-rpm-macros -- Sanitize a Go import path that can then serve as rpm package name -- Mandatory parameter: a Go import path local function rpmname(goipath, compatid) -- lowercase and end with '/' local goname = string.lower(rpm.expand(goipath) .. "/") -- remove eventual protocol prefix goname = string.gsub(goname, "^http(s?)://", "") -- remove eventual .git suffix goname = string.gsub(goname, "%.git/+", "") -- remove eventual git. prefix goname = string.gsub(goname, "^git%.", "") -- remove FQDN root (.com, .org, etc) -- will also remove vanity FQDNs such as "tools" goname = string.gsub(goname, "^([^/]+)%.([^%./]+)/", "%1/") -- add golang prefix goname = "golang-" .. goname -- compat naming additions local compatid = string.lower(rpm.expand(compatid)) if (compatid ~= nil) and (compatid ~= "") then goname = "compat-" .. goname .. "-" .. compatid end -- special-case x.y.z number-strings as that’s an exception in our naming -- guidelines repeat goname, i = string.gsub(goname, "(%d)%.(%d)", "%1:%2") until i == 0 -- replace various separators rpm does not like with - goname = string.gsub(goname, "[%._/%-~]+", "-") -- because of the Azure sdk goname = string.gsub(goname, "%-for%-go%-", "-") -- Tokenize along - separators and remove duplicates to avoid -- golang-foo-foo-bar-foo names local result = "" local tokens = {} tokens["go"] = true for token in string.gmatch(goname, "[^%-]+") do if not tokens[token] then result = result .. "-" .. token tokens[token] = true end end -- reassemble the string, restore x.y.z runs, convert the vx.y.z -- Go convention to x.y.z as prefered in rpm naming result = string.gsub(result, "^-", "") result = string.gsub(result, ":", ".") -- some projects have a name that end up in a number, and *also* add release -- numbers on top of it, keep a - prefix before version strings result = string.gsub(result, "%-v([%.%d]+)$", "-%1") result = string.gsub(result, "%-v([%.%d]+%-)", "-%1") if rpm.expand("%{?go_use_new_versioning}") ~= "" then -- according to the guidelines, if the base package name does not end with -- a digit, the version MUST be directly appended to the package name with -- no intervening separator. -- If the base package name ends with a digit, a single underscore (_) MUST -- be appended to the name, and the version MUST be appended to that, in -- order to avoid confusion over where the name ends and the version begins. result = string.gsub(result, "([^-]*)(%-)([%.%d]+)$", function(prior, hyphen, version) if string.find(prior, "%d$") then return prior .. "_" .. version else return prior .. version end end) end return(result) end -- The gometa macro main processing function -- See the documentation in the macros.go-srpm file for argument description local function meta(suffix, verbose, informative, silent) local fedora = require "fedora.common" local forge = require "fedora.srpm.forge" local zsuffix = "" if (suffix ~= "") then zsuffix = " -z " .. suffix end local ismain = (suffix == "") or (suffix == "0") if ismain then fedora.zalias({"forgeurl", "goipath", "gocid", "goname", "gourl", "gosource"}, verbose) end local spec = {} for _, v in ipairs({'goipath', 'forgeurl'}) do spec[v] = rpm.expand("%{?" .. v .. suffix .. "}") end -- All the Go packaging automation relies on goipath being set if (spec["goipath"] == "") then rpm.expand("%{error:Please set the Go import path in the %%{goipath" .. suffix .. "} variable before calling %%gometa" .. zsuffix .. "!}") end local cleangoipath = string.gsub(spec["goipath"], "^http(s?)://", "") cleangoipath = string.gsub(cleangoipath, "/+$", "") if (cleangoipath ~= spec["goipath"]) then fedora.explicitset(goipath .. suffix, cleangoipath) end if (spec["forgeurl"] == "") then fedora.safeset("forgeurl" .. suffix, "https://%{goipath" .. suffix .. "}",verbose) end forge.meta(suffix, verbose, informative, silent) fedora.safeset("gourl" .. suffix, "%{forgeurl" .. suffix .. "}",verbose) if (rpm.expand("%{?forgesource" .. suffix .. "}") ~= "") then fedora.safeset("gosource" .. suffix, "%{forgesource" .. suffix .. "}",verbose) else fedora.safeset("gosource" .. suffix, "%{gourl" .. suffix .. "}/%{archivename" .. suffix .. "}.%{archiveext" .. suffix .. "}",verbose) end fedora.safeset( "goname" .. suffix, rpmname("%{goipath" .. suffix .. "}", "%{?gocid" .. suffix .. "}") ,verbose) fedora.zalias({"forgeurl","goname","gourl","gosource"},verbose) -- Final spec variable summary if the macro was called with -i if informative then rpm.expand("%{echo:Packaging variables read or set by %%gometa}") fedora.echovars({"goipath","goname","gourl","gosource"}, suffix) end end -- Pivot variable definitions for each kind of Go package local pivot = {devel = "goipaths", alt = "goaltipaths"} -- Default argument flag for each kind of list local listflags = {goipaths = "-i", goipathsex = "-t", goextensions = "-e"} -- Convert a space-separated list of import paths to a table indexed by their -- rpmname version, to handle upstreams that play naming games local function indexedgoipaths(goipaths, gocid) local go = require "fedora.srpm.go" local giptable = {} for goipath in string.gmatch(rpm.expand(goipaths), "[^%s,]+") do local key = go.rpmname(goipath, gocid) if (not string.match(key, "^compat-")) then key = "compat-" .. key end if (giptable[key] == nil) then giptable[key] = {} end table.insert(giptable[key], goipath) end return giptable end -- Create fallbacks to goipath variables if godevelipath variables are missing local function develenvinit() local fedora = require "fedora.common" if (next(fedora.getsuffixes("goipaths")) == nil) then for _, suffix in pairs(fedora.getsuffixes("goipath")) do fedora.safeset("goipaths" .. suffix, "%{goipath" .. suffix .. "}") end end end -- Set rpm variables related to the processing of a golang-*-devel subpackage local function develenv(suffix, verbose) local fedora = require "fedora.common" local go = require "fedora.srpm.go" local ismain = (suffix == "") or (suffix == "0") if ismain then fedora.zalias( {"goipath", "gocid", "gofilelist", "godevelname", "godevelcid", "godevelfilelist", "godevelsummary", "godeveldescription", "godevelheader", "goextensions", "gosupfiles", "gosupfilesex", "goipaths", "goipathsex", "golicenses", "golicensesex", "godocs", "godocsex"}, verbose) end for list, flag in pairs(listflags) do local l = rpm.expand("%{?" .. list .. suffix .. "}") if (l ~= "") then l = string.gsub(" " .. l, "%s+%" .. flag .. "%s+", " ") l = string.gsub(l, "%s+", " ") l = string.gsub(l, "^ ", "") l = string.gsub(l, " $", "") if (list ~= "goipaths") then l = string.gsub(l, "([^%s]+)", flag .. " %1") end fedora.explicitset(list .. suffix, l) end end local goipaths = rpm.expand("%{?goipaths" .. suffix .. "}") local goipath = string.match(goipaths, "[^%s]+") fedora.safeset("godevelcid" .. suffix, "%{?gocid" .. suffix .. "}", verbose) local rpmname = go.rpmname(goipath, "%{?godevelcid" .. suffix .. "}") fedora.safeset("godevelname" .. suffix, rpmname .. "-devel", verbose) fedora.safeset("godevelfilelist" .. suffix, rpmname .. "-%{gofilelist}", verbose) fedora.safeset("godevelsummary" .. suffix, "%{summary}", verbose) fedora.safeset("godeveldescription" .. suffix, "%{?common_description}", verbose) local postdescr = "\n\nThis package contains the source code needed for building packages that reference " .. "the following Go import paths:" postdescr = postdescr .. string.gsub(goipaths, "([^%s]+)", "\n – %1") fedora.explicitset("currentgodeveldescription", "%{expand:%{godeveldescription" .. suffix .. "}" .. postdescr .. "}", verbose) fedora.setcurrent({"godevelname", "godevelcid", "godevelfilelist", "godevelsummary", "godevelheader", "goextensions", "gosupfiles", "gosupfilesex", "goipaths", "goipathsex", "golicenses", "golicensesex", "godocs", "godocsex"}, suffix, verbose) if ismain then fedora.zalias( {"godevelname", "godevelcid", "godevelfilelist", "godevelsummary", "godeveldescription"}, verbose) end end -- Set rpm variables related to the processing of a compat-golang-*-devel subpackage local function altenv(suffix, rpmname, goaltipaths, verbose) local fedora = require "fedora.common" local go = require "fedora.srpm.go" local ismain = (suffix == "") or (suffix == "0") if ismain then fedora.zalias( {"goipath", "gocanonipath", "goaltdescription", "goaltsummary", "goaltheader"}, verbose) end fedora.safeset("gocanonipath" .. suffix, "%{goipath" .. suffix .. "}", verbose) fedora.safeset("goaltsummary" .. suffix, "%{summary}", verbose) fedora.safeset("goaltdescription" .. suffix, "%{?common_description}", verbose) fedora.setcurrent( {"gocanonipath", "goaltcid", "goaltsummary"}, suffix, verbose) local postdescr = "\n\nThis package provides symbolic links that alias the following Go import paths " .. "to %{currentgocanonipath}:" local posthead = "" for _, goaltipath in ipairs(goaltipaths) do postdescr = postdescr .. "\n – " .. goaltipath posthead = "\nObsoletes: " .. go.rpmname(goaltipath, "") .. "-devel < %{version}-%{release}" end postdescr = postdescr .. "\n\nAliasing Go import paths via symbolic links or http redirects is fragile. " .. "If your Go code depends on this package, you should patch it to import " .. "directly %{currentgocanonipath}." fedora.explicitset("currentgoaltdescription", "%{expand:%{?goaltdescription" .. suffix .. "}" .. postdescr .. "}", verbose) fedora.explicitset("currentgoaltheader", "%{expand:%{?goaltheader" .. suffix .. "}" .. posthead .. "}", verbose) fedora.explicitset("currentgoaltname", rpmname .. "-devel", verbose) fedora.explicitset("currentgoaltfilelist", rpmname .. "-%{gofilelist}", verbose) if ismain then fedora.zalias( {"gocanonipath", "goaltsummary", "goaltdescription"}, verbose) end end -- Create a single %package section for a known kind of Go subpackage local function singlepkg(kind, suffix, verbose) local fedora = require "fedora.common" if (kind == "devel") then develenv(suffix, verbose) print( rpm.expand( "%package -n %{currentgodevelname}\n" .. "Summary: %{currentgodevelsummary}\n" .. "BuildRequires: go-rpm-macros\n" .. "BuildArch: noarch\n" .. "%{?currentgodevelheader}\n" .. "%description -n %{currentgodevelname}\n") .. fedora.wordwrap("%{?currentgodeveldescription}") .. "\n") elseif (kind == "alt") then local ismain = (suffix == "") or (suffix == "0") if ismain then fedora.zalias({"goaltipaths","gocid","goaltcid"}, verbose) end fedora.safeset("goaltcid" .. suffix, "%{?gocid" .. suffix .. "}", verbose) if ismain then fedora.zalias({"goaltcid"}, verbose) end for rpmname, goaltipaths in pairs(indexedgoipaths("%{goaltipaths" .. suffix .. "}", "%{goaltcid" .. suffix .. "}")) do altenv(suffix, rpmname, goaltipaths, verbose) print( rpm.expand( "%package -n %{currentgoaltname}\n" .. "Summary: %{currentgoaltsummary}\n" .. "BuildRequires: go-rpm-macros\n" .. "BuildArch: noarch\n" .. "%{?currentgoaltheader}\n" .. "%description -n %{currentgoaltname}\n") .. fedora.wordwrap("%{?currentgoaltdescription}") .. "\n") end else rpm.expand("%{error:Unknown kind of Go subpackage: " .. kind .. "}") end end -- Create one or all %package sections for a known kind of go subpackage local function pkg(kind, suffix, processall, verbose) local fedora = require "fedora.common" if (kind == "devel") then develenvinit() end if processall then for _, suffix in pairs(fedora.getsuffixes(pivot[kind])) do singlepkg(kind, suffix, verbose) end else singlepkg(kind, suffix, verbose) end end -- Create a single %files section for a known kind of Go subpackage local function singlefiles(kind, suffix, verbose) if (kind == "devel") then develenv(suffix, verbose) print(rpm.expand('%files -n %{currentgodevelname} -f "%{goworkdir}/%{currentgodevelfilelist}"\n')) elseif (kind == "alt") then local fedora = require "fedora.common" local ismain = (suffix == "") or (suffix == "0") if ismain then fedora.zalias({"goaltipaths","gocid","goaltcid"}, verbose) end fedora.safeset("goaltcid" .. suffix, "%{?gocid" .. suffix .. "}", verbose) if ismain then fedora.zalias({"goaltcid"}, verbose) end for rpmname, goaltipaths in pairs(indexedgoipaths("%{goaltipaths" .. suffix .. "}", "%{goaltcid" .. suffix .. "}")) do altenv(suffix, rpmname, goaltipaths, verbose) print(rpm.expand('%files -n %{currentgoaltname} -f "%{goworkdir}/%{currentgoaltfilelist}"\n')) end else rpm.expand("%{error:Unknown kind of Go subpackage: " .. kind .. "}") end end -- Create one or all %files sections for a known kind of go subpackage local function files(kind, suffix, processall, verbose) local fedora = require "fedora.common" if (kind == "devel") then develenvinit() end if processall then for _, suffix in pairs(fedora.getsuffixes(pivot[kind])) do singlefiles(kind, suffix, verbose) end else singlefiles(kind, suffix, verbose) end end return { rpmname = rpmname, meta = meta, pivot = pivot, indexedgoipaths = indexedgoipaths, develenvinit = develenvinit, develenv = develenv, altenv = altenv, pkg = pkg, files = files, } lua/fedora/srpm/forge.lua 0000644 00000036406 15043540723 0011367 0 ustar 00 -- Lua code used by macros.forge and derivatives -- Computes the suffix of a version string, removing vprefix if it matches -- For example with vprefix 1.2.3: 1.2.3.rc2 → .rc2 but 1.2.30 → 1.2.30 not 0 local function getversionsuffix(vstring,vprefix) if (string.sub(vstring, 1, #vprefix) == vprefix) and (not string.match(string.sub(vstring, #vprefix + 1), "^%.?%d")) then return string.sub(vstring, #vprefix + 1) else return vstring end end -- Check if an identified url is sane local function checkforgeurl(url, id, silent) local checkedurl = nil local checkedid = nil local urlpatterns = { gitlab = { pattern = 'https://[^/]+/[^/]+/[^/#?]+', description = 'https://(…[-.])gitlab[-.]…/owner/repo'}, pagure = { pattern = 'https://[^/]+/[^/#?]+', description = 'https://pagure.io/repo'}, pagure_ns = { pattern = 'https://[^/]+/[^/]+/[^/#?]+', description = 'https://pagure.io/namespace/repo'}, pagure_fork = { pattern = 'https://[^/]+/fork/[^/]+/[^/#?]+', description = 'https://pagure.io/fork/owner/repo'}, pagure_ns_fork = { pattern = 'https://[^/]+/fork/[^/]+/[^/]+/[^/#?]+', description = 'https://pagure.io/fork/owner/namespace/repo'}, ["gitea.com"] = { pattern = 'https://[^/]+/[^/]+/[^/#?]+', description = 'https://gitea.com/owner/repo'}, github = { pattern = 'https://[^/]+/[^/]+/[^/#?]+', description = 'https://(…[-.])github[-.]…/owner/repo'}, ["code.googlesource.com"] = { pattern = 'https://code.googlesource.com/[^#?]*[^/#?]+', description = 'https://code.googlesource.com/…/repo'}, ["bitbucket.org"] = { pattern = 'https://[^/]+/[^/]+/[^/#?]+', description = 'https://bitbucket.org/owner/repo'}} if (urlpatterns[id] ~= nil) then checkedurl = string.match(url,urlpatterns[id]["pattern"]) if (checkedurl == nil) then if not silent then rpm.expand("%{error:" .. id .. " URLs must match " .. urlpatterns[id]["description"] .. " !}") end else checkedid = id end end return checkedurl, checkedid end -- Check if an url matches a known forge local function idforge(url, silent) local forgeurl = nil local forge = nil if (url ~= "") then forge = string.match(url, "^[^:]+://([^/]+)/") if (forge == nil) then if not silent then rpm.expand("%{error:URLs must include a protocol such as https:// and a path starting with / !}") end else if (forge == "pagure.io") then if string.match(url, "[^:]+://pagure.io/fork/[^/]+/[^/]+/[^/]+") then forge = "pagure_ns_fork" elseif string.match(url, "[^:]+://pagure.io/fork/[^/]+/[^/]+") then forge = "pagure_fork" elseif string.match(url, "[^:]+://pagure.io/[^/]+/[^/]+") then forge = "pagure_ns" elseif string.match(url, "[^:]+://pagure.io/[^/]+") then forge = "pagure" end elseif (string.match(forge, "^gitlab[%.-]") or string.match(forge, "[%.-]gitlab[%.]")) then forge = "gitlab" elseif (string.match(forge, "^github[%.-]") or string.match(forge, "[%.-]github[%.]")) then forge = "github" end forgeurl, forge = checkforgeurl(url, forge, silent) end end return forgeurl, forge end -- The forgemeta macro main processing function -- See the documentation in the macros.forge file for argument description -- Also called directly by gometa local function meta(suffix, verbose, informative, silent) local fedora = require "fedora.common" local ismain = (suffix == "") or (suffix == "0") if ismain then fedora.zalias({"forgeurl", "forgesource", "forgesetupargs", "archivename", "archiveext", "archiveurl", "topdir", "extractdir", "repo", "owner", "namespace", "scm", "tag", "commit", "shortcommit", "branch", "version", "date", "distprefix"}, verbose) end local variables = { default = { scm = "git", archiveext = "tar.bz2", repo = '%{lua:print(string.match(rpm.expand("%{forgeurl' .. suffix .. '}"), "^[^:]+://[^/]+/[^/]+/([^/?#]+)"))}', archivename = "%{repo" .. suffix .. "}-%{ref" .. suffix .. "}", topdir = "%{archivename" .. suffix .. "}" }, gitlab = { archiveurl = "%{forgeurl" .. suffix .. "}/-/archive/%{ref" .. suffix .. "}/%{archivename" .. suffix .. "}.%{archiveext" .. suffix .. "}" }, pagure = { archiveext = "tar.gz", repo = '%{lua:print(string.match(rpm.expand("%{forgeurl' .. suffix .. '}"), "^[^:]+://[^/]+/([^/?#]+)"))}', archiveurl = "%{forgeurl" .. suffix .. "}/archive/%{ref" .. suffix .. "}/%{archivename" .. suffix .. "}.%{archiveext" .. suffix .. "}" }, pagure_ns = { archiveext = "tar.gz", namespace = '%{lua:print(string.match(rpm.expand("%{forgeurl' .. suffix .. '}"), "^[^:]+://[^/]+/([^/]+)/[^/?#]+"))}', repo = '%{lua:print(string.match(rpm.expand("%{forgeurl' .. suffix .. '}"), "^[^:]+://[^/]+/[^/]+/([^/?#]+)"))}', archivename = "%{namespace" .. suffix .. "}-%{repo" .. suffix .. "}-%{ref" .. suffix .. "}", archiveurl = "%{forgeurl" .. suffix .. "}/archive/%{ref" .. suffix .. "}/%{archivename" .. suffix .. "}.%{archiveext" .. suffix .. "}" }, pagure_fork = { archiveext = "tar.gz", owner = '%{lua:print(string.match(rpm.expand("%{forgeurl' .. suffix .. '}"), "https://[^/]+/fork/([^/]+)/[^/?#]+"))}', repo = '%{lua:print(string.match(rpm.expand("%{forgeurl' .. suffix .. '}"), "https://[^/]+/fork/[^/]+/([^/?#]+)"))}', archivename = "%{owner" .. suffix .. "}-%{repo" .. suffix .. "}-%{ref" .. suffix .. "}", archiveurl = "%{forgeurl" .. suffix .. "}/archive/%{ref" .. suffix .. "}/%{archivename" .. suffix .. "}.%{archiveext" .. suffix .. "}" }, pagure_ns_fork = { owner = '%{lua:print(string.match(rpm.expand("%{forgeurl' .. suffix .. '}"), "https://[^/]+/fork/([^/]+)/[^/]+/[^/?#]+"))}', namespace = '%{lua:print(string.match(rpm.expand("%{forgeurl' .. suffix .. '}"), "https://[^/]+/fork/[^/]+/([^/]+)/[^/?#]+")}', repo = '%{lua:print(string.match(rpm.expand("%{forgeurl' .. suffix .. '}"), "https://[^/]+/fork/[^/]+/[^/]+/([^/?#]+)")}', archivename = "%{owner" .. suffix .. "}-%{namespace" .. suffix .. "}-%{repo" .. suffix .. "}-%{ref" .. suffix .. "}", archiveurl = "%{forgeurl" .. suffix .. "}/archive/%{ref" .. suffix .. "}/%{archivename" .. suffix .. "}.%{archiveext" .. suffix .. "}" }, ["gitea.com"] = { archiveext = "tar.gz", archivename = "%{fileref" .. suffix .. "}", archiveurl = "%{forgeurl" .. suffix .. "}/archive/%{ref" .. suffix .. "}.%{archiveext" .. suffix .. "}", topdir = "%{repo}" }, github = { archiveext = "tar.gz", archivename = "%{repo" .. suffix .. "}-%{fileref" .. suffix .. "}", archiveurl = "%{forgeurl" .. suffix .. "}/archive/%{ref" .. suffix .. "}/%{archivename" .. suffix .. "}.%{archiveext" .. suffix .. "}" }, ["code.googlesource.com"] = { archiveext = "tar.gz", repo = '%{lua:print(string.match(rpm.expand("%{forgeurl' .. suffix .. '}"), "^[^:]+://.+/([^/?#]+)"))}', archiveurl = "%{forgeurl" .. suffix .. "}/+archive/%{ref" .. suffix .. "}.%{archiveext" .. suffix .. "}", topdir = "" }, ["bitbucket.org"] = { shortcommit = '%{lua:print(string.sub(rpm.expand("%{commit' .. suffix .. '}"), 1, 12))}', owner = '%{lua:print(string.match(rpm.expand("%{forgeurl' .. suffix .. '}"), "^[^:]+://[^/]+/([^/?#]+)"))}', archivename = "%{owner" .. suffix .. "}-%{repo" .. suffix .. "}-%{shortcommit" .. suffix .. "}", archiveurl = "%{forgeurl" .. suffix .. "}/get/%{ref" .. suffix .. "}.%{archiveext" .. suffix .. "}" } } -- Packaging a moving branch is quite a bad idea, but since at least Gitlab -- will treat branches and tags the same way better support branches explicitly -- than have packagers hijack %{tag} to download branch states local spec = {} for _, v in ipairs({'forgeurl','tag','commit','branch','version'}) do spec[v] = rpm.expand("%{?" .. v .. suffix .. "}") end -- Compute the reference of the object to fetch local isrelease = false if (spec["tag"] ~= "") then ref = "%{?tag" .. suffix .. "}" elseif (spec["commit"] ~= "") then ref = "%{?commit" .. suffix .. "}" elseif (spec["branch"] ~= "") then ref = "%{?branch" .. suffix .. "}" else ref = "%{?version" .. suffix .. "}" isrelease = true end if (rpm.expand(ref) == "") then if (suffix == "") then rpm.expand("%{error:You need to define Version:, %{commit} or %{tag} before the macro invocation !}") else rpm.expand("%{error:You need to define %{version" .. suffix .. "}, %{commit" .. suffix .. "} or %{tag" .. suffix .. "} before the macro invocation !}") end end local forgeurl = spec["forgeurl"] -- For backwards compatibility only local expliciturl = rpm.expand("%{?-u*}") if (expliciturl ~= "") then rpm.expand("%{warn:-u use in %%forgemeta is deprecated, use -z instead to select a separate set of rpm variables!}") forgeurl = expliciturl end local forge forgeurl, forge = idforge(forgeurl, silent) if (forge ~= nil) then fedora.explicitset("forgeurl" .. suffix, forgeurl, verbose) -- Custom processing of quirky forges that can not be handled with simple variables if (forge == "github") then -- Workaround the way GitHub injects "v"s before some version strings (but not all!) -- To package one of the minority of sane GitHub projects that do not munge their version -- strings set tag to %{version} in your spec local fileref = ref if (ref == "%{?version" .. suffix .. "}") then ref = "v" .. ref elseif (fileref ~= "%{?commit" .. suffix .. "}") and string.match(rpm.expand(fileref), "^v[%d]") then fileref = string.gsub(rpm.expand(fileref), "^v", "") elseif (string.match(rpm.expand(fileref), "/")) then fileref = string.gsub(rpm.expand(fileref), "/", "-") end fedora.safeset("fileref" .. suffix, fileref, verbose) elseif (forge == "gitea.com") then -- Workaround the way gitea mangles /s in ref names local fileref = ref fileref = string.gsub(rpm.expand(fileref), "/", "-") fedora.safeset("fileref" .. suffix, fileref, verbose) elseif (forge == "code.googlesource.com") then if (ref == "%{?version" .. suffix .. "}") then ref = "v" .. ref end elseif (forge == "bitbucket.org") then if (spec["commit"] == "") then rpm.expand("%{error:All BitBucket URLs require commit value knowledge: you need to define %{commit}!}") end end fedora.safeset("ref" .. suffix, ref, verbose) -- Mass setting of the remaining variables for k,v in pairs(variables[forge]) do fedora.safeset(k .. suffix, variables[forge][k], verbose) end for k,v in pairs(variables["default"]) do if (variables[forge][k] == nil) then fedora.safeset(k .. suffix, variables["default"][k], verbose) end end end -- Generic rules for _, v in ipairs({'archiveurl','archivename','archiveext','topdir'}) do spec[v] = rpm.expand("%{?" .. v .. suffix .. "}") end -- Source URL processing (computing the forgesource spec variable) local forgesource = "%{archiveurl" .. suffix .. "}" if (string.match(spec["archiveurl"], "/([^/]+)$") ~= spec["archivename"] .. "." .. spec["archiveext"]) then forgesource = "%{?archiveurl" .. suffix .. "}#/%{?archivename" .. suffix .. "}.%{archiveext" .. suffix .. "}" end fedora.safeset("forgesource" .. suffix, forgesource, verbose) -- Setup processing (computing the forgesetup and extractdir variables) local forgesetupargs = "-n %{extractdir" .. suffix .. "}" local extractdir = "%{topdir" .. suffix .. "}" if (spec["topdir"] == "") then forgesetupargs = "-c " .. forgesetupargs extractdir = "%{archivename" .. suffix .. "}" end if not ismain then if (spec["topdir"] ~= "") then forgesetupargs = "-T -D -b " .. suffix .. " " .. forgesetupargs else forgesetupargs = "-T -D -a " .. suffix .. " " .. forgesetupargs end end fedora.safeset("forgesetupargs" .. suffix, forgesetupargs, verbose) fedora.safeset("extractdir" .. suffix, extractdir, verbose) -- dist processing (computing the correct prefix for snapshots) local distprefix = "" if not isrelease then distprefix = string.lower(rpm.expand(ref)) if (ref == "%{?commit" .. suffix .. "}") then distprefix = string.sub(distprefix, 1, 7) elseif (ref ~= "%{?branch" .. suffix .. "}") then distprefix = string.gsub(distprefix, "[%p%s]+", ".") distprefix = string.gsub(distprefix, "^" .. string.lower(rpm.expand("%{?repo}")) .. "%.?", "") local v = string.gsub(rpm.expand("%{version}"), "[%p%s]+", ".") for _, p in ipairs({'','v','v.','version','version.','tags.v', 'tags.v.'}) do distprefix = getversionsuffix(distprefix, p .. v) end distprefix = string.gsub(distprefix, "^%.", "") end if (distprefix ~= "") then distprefix = "%{scm" .. suffix .. "}" .. distprefix date = rpm.expand("%{?date" .. suffix .. "}") if (date ~= "") then distprefix = date .. distprefix else distprefix = "%([ -r %{_sourcedir}/%{archivename" .. suffix .. "}.%{archiveext" .. suffix .. "} ] && date +%Y%m%d -u -r %{_sourcedir}/%{archivename" .. suffix .. "}.%{archiveext" .. suffix .. "})" .. distprefix end distprefix = "." .. distprefix end end if (spec["version"] ~= "") and (spec["version"] ~= "0") and (spec["version"] ~= rpm.expand("%{?version}")) then distprefix = ".%{version" .. suffix .. "}" .. distprefix end if (rpm.expand(distprefix) ~= "") then if not ismain then distprefix = string.gsub(distprefix, "^%.", ".s") end fedora.safeset ("distprefix" .. suffix, distprefix, verbose) end if ismain then fedora.zalias({"forgeurl", "forgesource", "forgesetupargs", "archivename", "archiveext", "archiveurl", "topdir", "extractdir", "repo", "owner", "namespace", "scm", "shortcommit", "distprefix"}, verbose) end -- Final spec variable summary if the macro was called with -i if informative then rpm.expand("%{echo:Packaging variables read or set by %%forgemeta}") fedora.echovars({"forgeurl", "forgesource", "forgesetupargs", "archivename", "archiveext", "archiveurl", "topdir", "extractdir", "repo", "owner", "namespace", "scm", "tag", "commit", "shortcommit", "branch", "version", "date", "distprefix"}, suffix) fedora.echovars({"dist"},"") rpm.expand("%{echo: (snapshot date is either manually supplied or computed once %%{_sourcedir}/%%{archivename" .. suffix .. "}.%%{archiveext" .. suffix .. "} is available)}") end end return { meta = meta, } lua/fedora/srpm/fonts.lua 0000644 00000021020 15043540723 0011400 0 ustar 00 -- Copyright © 2018-2019 Nicolas Mailhot <nim@fedoraproject.org> -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program. If not, see <https://www.gnu.org/licenses/>. -- -- SPDX-License-Identifier: GPL-3.0-or-later -- Convenience lua functions used to create rpm font packages local globargs = {fonts = "f", fontsex = "F", fontconfs = "c", fontconfsex = "C", fontconfngs = "n", fontconfngsex = "N", fontappstreams = "s", fontappstreamsex = "S", fontdocs = "d", fontdocsex = "D", fontlicenses = "l", fontlicensesex = "L"} -- Return a normalized name local function norm(name) local r = name r = string.gsub(r, "[%p%s]+", "-") r = string.gsub(r, "^-", "") r = string.gsub(r, "-$", "") r = string.lower(r) return r end -- loop over suffixlist and return name minus the first suffix that matches -- - is used as suffix separator -- name should have passed through norm at one point in the past local function dropsuffix(name,suffixlist) local r = name for _, s in ipairs(suffixlist) do r, n = string.gsub(r, "-" .. norm(s) .. "$", "") if (n == 1) then break end end return r end -- Compute a font family name that can be used in packaging, lowercasing, using -- - as separator, and applying “WPF font selection model” whitepaper -- simplifications local function rpmname(name) local r = norm(name) -- Normal & co r = dropsuffix(r,{"normal","book","regular","upright"}) -- Slant r = dropsuffix(r,{"italic","ita","ital","cursive","kursiv", "oblique","inclined","backslanted","backslant","slanted"}) -- Width / Stretch r = dropsuffix(r,{"ultracondensed","extra-compressed","ext-compressed","ultra-compressed","ultra-condensed", "extracondensed","compressed","extra-condensed","ext-condensed","extra-cond", "semicondensed","narrow","semi-condens", "semiexpanded","wide","semi-expanded","semi-extended", "extraexpanded","extra-expanded","ext-expanded","extra-extended","ext-extended", "ultraexpanded","ultra-expanded","ultra-extended", "condensed","cond", "expanded","extended"}) -- Weight (no abbreviated suffix handling, too dangerous) r = dropsuffix(r,{"thin","extra-thin","ext-thin","ultra-thin", "extralight","extra-light","ext-light","ultra-light", "demibold","semi-bold","demi-bold", "extrabold","extra-bold","ext-bold","ultra-bold", "extrablack","extra-black","ext-black","ultra-black", "bold","thin","light","medium", "black","heavy","nord", "demi","ultra"}) local tokens = {} for _, t in ipairs({"font","fonts"}) do tokens[t] = true end local ts = string.gmatch(r, "[^%-]+") r = "" for t in ts do if not tokens[t] then r = r .. "-" .. t tokens[t] = true end end r = string.gsub(r, "^-", "") .. "-fonts" return r end -- The fontenv macro main processing function -- See the documentation in the macros.fonts file for argument description local function env(suffix, verbose, globvalues) local fedora = require "fedora.common" local ismain = (suffix == "") or (suffix == "0") fedora.zalias({"foundry", "fontlicense"}, verbose) fedora.safeset("fontlicense", "%{license}", verbose) if ismain then fedora.zalias({"fontsummary", "fontdescription", "fontpkgname", "fonthumanname", "fontpkgheader", "fonts", "fontsex", "fontconfs", "fontconfsex", "fontconfngs", "fontconfngsex", "fontappstreams", "fontappstreamsex", "fontdocs", "fontdocsex", "fontlicense", "fontlicenses", "fontlicensesex", "fontdir", "fontfilelist"}, verbose) end for _, v in ipairs({"foundry", "fontdocs", "fontdocsex", "fontlicense", "fontlicenses", "fontlicensesex"}) do if (rpm.expand("%{" .. v .. "}") ~= "%{" .. v .. "}") then fedora.safeset(v .. suffix, "%{" .. v .. "}", verbose) end end for g, _ in pairs(globargs) do local v = rpm.expand("%{?" .. g .. suffix .. "} " .. (globvalues[g] or "")) if (string.gsub(v, "[%s]+", "") ~= "") then fedora.explicitset( "current" .. g, v, verbose) else fedora.explicitunset("current" .. g, verbose) end end local basename = rpm.expand("%{?foundry" .. suffix .. ":%{foundry" .. suffix .. "} }%{fontfamily" .. suffix .. "}") fedora.safeset("fontpkgname" .. suffix, rpmname(basename), verbose) fedora.safeset("fonthumanname" .. suffix, basename, verbose) fedora.safeset("fontdir" .. suffix, "%{_fontbasedir}/%{fontpkgname" .. suffix .. "}", verbose) fedora.safeset("fontfilelist" .. suffix, "%{_builddir}/%{?buildsubdir}/%{fontpkgname" .. suffix .. "}.list", verbose) if ismain then fedora.zalias({"fontpkgname", "fontdir", "fontfilelist"}) end for _, v in ipairs({"foundry", "fontpkgname", "fonthumanname", "fontpkgheader", "fontdir", "fontfilelist", "fontfamily", "fontlicense", "fontsummary", "fontdescription"}) do if (rpm.expand("%{?" .. v .. suffix .. "}") ~= "") then fedora.explicitset( "current" .. v, "%{" .. v .. suffix .. "}", verbose) else fedora.explicitunset("current" .. v, verbose) end end end -- Create a single %package section for a fonts subpackage local function singlepkg(forcemain, forcesub, suffix, verbose) local fedora = require "fedora.common" local sub = (not forcemain) and (forcesub or ((suffix ~= nil) and (suffix ~= "") and (suffix ~= "0"))) env(suffix, verbose, {}) name = sub and "%package -n " or "Name: " print( name .. rpm.expand( "%{currentfontpkgname}\n" .. "Summary: %{currentfontsummary}\n" .. "License: %{currentfontlicense}\n" .. "BuildArch: noarch\n" .. "BuildRequires: fonts-rpm-macros\n" .. "Requires: fontpackages-filesystem\n" .. "%{?currentfontpkgheader}\n" .. "%description -n %{currentfontpkgname}\n") .. fedora.wordwrap("%{?currentfontdescription}") .. "\n") end -- Create one or all %package sections for fonts subpackages local function pkg(forcemain, forcesub, suffix, processall, verbose) local fedora = require "fedora.common" if processall then for _, suffix in pairs(fedora.getsuffixes("fontfamily")) do singlepkg(forcemain, forcesub, suffix, verbose) end else singlepkg(forcemain, forcesub, suffix, verbose) end end -- Create a font (sub)metapackage header local function metapkg(name, summary, description, suffixes) local fedora = require "fedora.common" local fontpkgs = fedora.getsuffixed("fontpkgname") if (name == "") then name, _ = string.gsub(rpm.expand("%{name}"), "-fonts$", "") name = name .. "-fonts-all" end if (summary == "") then summary = "All the font packages, generated from %{name}" end if (description == "") then description = "This meta-package installs all the font packages, generated from the %{name} source package." end description = fedora.wordwrap(description) print(rpm.expand( "%package -n " .. name .. "\n" .. "Summary: " .. summary .. "\n")) if (suffixes == "") then for _, fontpkg in pairs(fontpkgs) do print(rpm.expand( "Requires(meta): " .. fontpkg .. " = %{version}-%{release}\n")) end else for suffix in string.gmatch(rpm.expand(suffixes), "[^%s%p]+") do local fontpkg = fontpkgs[suffix] if (fontpkg ~= nil) then print(rpm.expand("Requires(meta): " .. fontpkg .. " = %{version}-%{release}\n")) end end end print(rpm.expand( "BuildArch: noarch\n" .. "%description -n " .. name .. "\n" .. description .. "\n" .. "%files -n " .. name .. "\n\n")) end return { globargs = globargs, rpmname = rpmname, env = env, pkg = pkg, metapkg = metapkg, } lua/fedora/common.lua 0000644 00000022771 15043540723 0010574 0 ustar 00 -- Convenience Lua functions that can be used within rpm macros -- Reads an rpm variable. Unlike a basic rpm.expand("{?foo}"), returns nil if -- the variable is unset, which is convenient in lua tests and enables -- differentiating unset variables from variables set to "" local function read(rpmvar) if not rpmvar or (rpm.expand("%{" .. rpmvar .. "}") == "%{" .. rpmvar .. "}") then return nil else return rpm.expand("%{?" .. rpmvar .. "}") end end -- Returns true if the macro that called this function had flag set -- – for example, hasflag("z") would give the following results: -- %foo -z bar → true -- %foo -z → true -- %foo → false local function hasflag(flag) return (rpm.expand("%{-" .. flag .. "}") ~= "") end -- Returns the argument passed to flag in the macro that called this function -- – for example, readflag("z") would give the following results: -- %foo -z bar → bar -- %foo → nil -- %foo -z "" → empty string -- %foo -z '' → empty string local function readflag(flag) if not hasflag(flag) then return nil else local a = rpm.expand("%{-" .. flag .. "*}") -- Handle "" and '' as empty strings if (a == '""') or (a == "''") then a = '' end return a end end -- Sets a spec variable; echoes the result if verbose local function explicitset(rpmvar, value, verbose) local value = value if (value == nil) or (value == "") then value = "%{nil}" end rpm.define(rpmvar .. " " .. value) if verbose then rpm.expand("%{warn:Setting %%{" .. rpmvar .. "} = " .. value .. "}") end end -- Unsets a spec variable if it is defined; echoes the result if verbose local function explicitunset(rpmvar, verbose) if (rpm.expand("%{" .. rpmvar .. "}") ~= "%{" .. rpmvar .. "}") then rpm.define(rpmvar .. " %{nil}") if verbose then rpm.expand("%{warn:Unsetting %%{" .. rpmvar .. "}}") end end end -- Sets a spec variable, if not already set; echoes the result if verbose local function safeset(rpmvar, value, verbose) if (rpm.expand("%{" .. rpmvar .. "}") == "%{" .. rpmvar .. "}") then explicitset(rpmvar,value,verbose) end end -- Aliases a list of rpm variables to the same variables suffixed with 0 (and -- vice versa); echoes the result if verbose local function zalias(rpmvars, verbose) for _, sfx in ipairs({{"","0"},{"0",""}}) do for _, rpmvar in ipairs(rpmvars) do local toalias = "%{?" .. rpmvar .. sfx[1] .. "}" if (rpm.expand(toalias) ~= "") then safeset(rpmvar .. sfx[2], toalias, verbose) end end end end -- Takes a list of rpm variable roots and a suffix and alias current<root> to -- <root><suffix> if it resolves to something not empty local function setcurrent(rpmvars, suffix, verbose) for _, rpmvar in ipairs(rpmvars) do if (rpm.expand("%{?" .. rpmvar .. suffix .. "}") ~= "") then explicitset( "current" .. rpmvar, "%{" .. rpmvar .. suffix .. "}", verbose) else explicitunset("current" .. rpmvar, verbose) end end end -- Echo the list of rpm variables, with suffix, if set local function echovars(rpmvars, suffix) for _, rpmvar in ipairs(rpmvars) do rpmvar = rpmvar .. suffix local header = string.sub(" " .. rpmvar .. ": ",1,21) rpm.expand("%{?" .. rpmvar .. ":%{echo:" .. header .. "%{?" .. rpmvar .. "}}}") end end -- Returns an array, indexed by suffix, containing the non-empy values of -- <rpmvar><suffix>, with suffix an integer string or the empty string local function getsuffixed(rpmvar) local suffixes = {} zalias({rpmvar}) for suffix=0,9999 do local value = rpm.expand("%{?" .. rpmvar .. suffix .. "}") if (value ~= "") then suffixes[tostring(suffix)] = value end end -- rpm convention is to alias no suffix to zero suffix -- only add no suffix if zero suffix is different local value = rpm.expand("%{?" .. rpmvar .. "}") if (value ~= "") and (value ~= suffixes["0"]) then suffixes[""] = value end return suffixes end -- Returns the list of suffixes, including the empty string, for which -- <rpmvar><suffix> is set to a non empty value local function getsuffixes(rpmvar) suffixes = {} for suffix in pairs(getsuffixed(rpmvar)) do table.insert(suffixes,suffix) end table.sort(suffixes, function(a,b) return (tonumber(a) or 0) < (tonumber(b) or 0) end) return suffixes end -- Returns the suffix for which <rpmvar><suffix> has a non-empty value that -- matches best the beginning of the value string local function getbestsuffix(rpmvar, value) local best = nil local currentmatch = "" for suffix, setvalue in pairs(getsuffixed(rpmvar)) do if (string.len(setvalue) > string.len(currentmatch)) and (string.find(value, "^" .. setvalue)) then currentmatch = setvalue best = suffix end end return best end -- %writevars core local function writevars(macrofile, rpmvars) for _, rpmvar in ipairs(rpmvars) do print("sed -i 's\029" .. string.upper("@@" .. rpmvar .. "@@") .. "\029" .. rpm.expand( "%{" .. rpmvar .. "}" ) .. "\029g' " .. macrofile .. "\n") end end -- https://github.com/rpm-software-management/rpm/issues/566 -- Reformat a text intended to be used used in a package description, removing -- rpm macro generation artefacts. -- – remove leading and ending empty lines -- – trim intermediary empty lines to a single line -- – fold on spaces -- Should really be a %%{wordwrap:…} verb local function wordwrap(text) text = rpm.expand(text .. "\n") text = string.gsub(text, "\t", " ") text = string.gsub(text, "\r", "\n") text = string.gsub(text, " +\n", "\n") text = string.gsub(text, "\n+\n", "\n\n") text = string.gsub(text, "^\n", "") text = string.gsub(text, "\n( *)[-*—][ ]+", "\n%1– ") output = "" for line in string.gmatch(text, "[^\n]*\n") do local pos = 0 local advance = "" for word in string.gmatch(line, "%s*[^%s]*\n?") do local wl, bad = utf8.len(word) if not wl then print("%{warn:Invalid UTF-8 sequence detected in:}" .. "%{warn:" .. word .. "}" .. "%{warn:It may produce unexpected results.}") wl = bad end if (pos == 0) then advance, n = string.gsub(word, "^(%s*– ).*", "%1") if (n == 0) then advance = string.gsub(word, "^(%s*).*", "%1") end advance = string.gsub(advance, "– ", " ") pos = pos + wl elseif (pos + wl < 81) or ((pos + wl == 81) and string.match(word, "\n$")) then pos = pos + wl else word = advance .. string.gsub(word, "^%s*", "") output = output .. "\n" pos = utf8.len(word) end output = output .. word if pos > 80 then pos = 0 if not string.match(word, "\n$") then output = output .. "\n" end end end end output = string.gsub(output, "\n*$", "\n") return output end -- Because rpmbuild will fail if a subpackage is declared before the source -- package itself, provide a source package declaration shell as fallback. local function srcpkg(verbose) if verbose then rpm.expand([[ %{echo:Creating a header for the SRPM from %%{source_name}, %%{source_summary} and} %{echo:%%{source_description}. If that is not the intended result, please declare the} %{echo:SRPM header and set %%{source_name} in your spec file before calling a macro} %{echo:that creates other package headers.} ]]) end print(rpm.expand([[ Name: %{source_name} Summary: %{source_summary} %description %wordwrap -v source_description ]])) explicitset("currentname", "%{source_name}", verbose) end -- %new_package core local function new_package(source_name, pkg_name, name_suffix, first, verbose) -- Safety net when the wrapper is used in conjunction with traditional syntax if (not first) and (not source_name) then rpm.expand([[ %{warn:Something already set a package name. However, %%{source_name} is not set.} %{warn:Please set %%{source_name} to the SRPM name to ensure reliable processing.} ]]) if name_suffix then print(rpm.expand("%package " .. name_suffix)) else print(rpm.expand("%package -n " .. pkg_name)) end return end -- New processing if not (pkg_name or name_suffix or source_name) then rpm.expand([[ %{error:You need to set %%{source_name} or provide explicit package naming!} ]]) end if name_suffix then print(rpm.expand("%package " .. name_suffix)) explicitset("currentname", "%{source_name}-" .. name_suffix, verbose) else if not source_name then source_name = pkg_name end if (pkg_name == source_name) then safeset("source_name", source_name, verbose) print(rpm.expand("Name: %{source_name}")) else if source_name and first then srcpkg(verbose) end print(rpm.expand("%package -n " .. pkg_name)) end explicitset("currentname", pkg_name, verbose) end end return { read = read, hasflag = hasflag, readflag = readflag, explicitset = explicitset, explicitunset = explicitunset, safeset = safeset, zalias = zalias, setcurrent = setcurrent, echovars = echovars, getsuffixed = getsuffixed, getsuffixes = getsuffixes, getbestsuffix = getbestsuffix, writevars = writevars, wordwrap = wordwrap, new_package = new_package, } rpm2cpio.sh 0000755 00000003075 15043540723 0006646 0 ustar 00 #!/usr/bin/sh -efu fatal() { echo "$*" >&2 exit 1 } pkg="$1" [ -n "$pkg" ] && [ -e "$pkg" ] || fatal "No package supplied" _dd() { local o="$1"; shift dd if="$pkg" skip="$o" iflag=skip_bytes status=none $* } calcsize() { case "$(_dd $1 bs=4 count=1 | tr -d '\0')" in "$(printf '\216\255\350')"*) ;; # '\x8e\xad\xe8' *) fatal "File doesn't look like rpm: $pkg" ;; esac offset=$(($1 + 8)) local i b b0 b1 b2 b3 b4 b5 b6 b7 i=0 while [ $i -lt 8 ]; do # add . to not loose \n # strip \0 as it gets dropped with warning otherwise b="$(_dd $(($offset + $i)) bs=1 count=1 | tr -d '\0' ; echo .)" b=${b%.} # strip . again [ -z "$b" ] && b="0" || b="$(exec printf '%u\n' "'$b")" eval "b$i=\$b" i=$(($i + 1)) done rsize=$((8 + ((($b0 << 24) + ($b1 << 16) + ($b2 << 8) + $b3) << 4) + ($b4 << 24) + ($b5 << 16) + ($b6 << 8) + $b7)) offset=$(($offset + $rsize)) } case "$(_dd 0 bs=4 count=1 | tr -d '\0')" in "$(printf '\355\253\356\333')"*) ;; # '\xed\xab\xee\xdb' *) fatal "File doesn't look like rpm: $pkg" ;; esac calcsize 96 sigsize=$rsize calcsize $(($offset + (8 - ($sigsize % 8)) % 8)) hdrsize=$rsize case "$(_dd $offset bs=2 count=1 | tr -d '\0')" in "$(printf '\102\132')") _dd $offset | bunzip2 ;; # '\x42\x5a' "$(printf '\037\213')") _dd $offset | gunzip ;; # '\x1f\x8b' "$(printf '\375\067')") _dd $offset | xzcat ;; # '\xfd\x37' "$(printf '\135')") _dd $offset | unlzma ;; # '\x5d\x00' "$(printf '\050\265')") _dd $offset | unzstd ;; # '\x28\xb5' *) fatal "Unrecognized payload compression format in rpm file: $pkg" ;; esac fileattrs/libsymlink.attr 0000644 00000000417 15043540723 0011617 0 ustar 00 # Make libfoo.so symlinks require the soname-provide of the target library %__libsymlink_requires %{_rpmconfigdir}/elfdeps --provides --soname-only %__libsymlink_magic ^symbolic link to .*lib.*\\.so\\..*$ %__libsymlink_path ^.*\\.so$ %__libsymlink_flags magic_and_path fileattrs/kmod.attr 0000644 00000001664 15043540723 0010401 0 ustar 00 %__kmod_path ^/lib/modules/.*/(modules.builtin|.*\.ko|.*\.ko\.gz|.*\.ko\.bz2|.*\.ko\.xz|.*\.ko\.zst)$ %__kmod_provides() %{lua: function basename(fn) return string.gsub(fn, "(.*/)(.*)", "%2") end function strip_compress_sfx(fn) return string.gsub(fn, "(.*)(\.gz|\.bz2|\.xz|\.zst)?$", "%1") end function printdep(mod) print("kmod("..mod..") ") end local fn = rpm.expand("%{1}") local bn = basename(fn) if bn == "modules.builtin" then for l in io.lines(fn) do local builtin_mod = basename(l) printdep(builtin_mod) if strip_compress_sfx(builtin_mod) ~= builtin_mod then printdep(strip_compress_sfx(builtin_mod)) end end else local mod = string.match(bn, "%g+.ko") if mod then printdep(mod) if strip_compress_sfx(mod) ~= mod then printdep(strip_compress_sfx(mod)) end end end } fileattrs/gstreamer1.attr 0000644 00000000155 15043540723 0011513 0 ustar 00 %__gstreamer1_provides %{_rpmconfigdir}/gstreamer1.prov %__gstreamer1_path ^%{_libdir}/gstreamer-1.*/.*\.so$ fileattrs/sysusers.attr 0000644 00000000141 15043540723 0011334 0 ustar 00 %__sysusers_provides %{_rpmconfigdir}/sysusers.prov %__sysusers_path ^%{_sysusersdir}/.*\\.conf$ fileattrs/cmake.attr 0000644 00000000257 15043540723 0010524 0 ustar 00 %__cmake_provides %{_rpmconfigdir}/cmake.prov %__cmake_requires %{_rpmconfigdir}/cmake.req %__cmake_path ^(%{_libdir}|%{_datadir})/cmake/.*/.*(Config\.cmake|-config\.cmake)$ rpmrc 0000644 00000042366 15043540723 0005630 0 ustar 00 #/*! \page config_rpmrc Default configuration: /usr/lib/rpm/rpmrc # \verbatim # # This is a global RPM configuration file. All changes made here will # be lost when the rpm package is upgraded. Any per-system configuration # should be added to /etc/rpmrc, while per-user configuration should # be added to ~/.rpmrc. # ############################################################# # Values for RPM_OPT_FLAGS for various platforms # "fat" binary with both archs, for Darwin optflags: fat -O2 -g -arch i386 -arch ppc optflags: i386 -O2 -g -march=i386 -mtune=i686 optflags: i486 -O2 -g -march=i486 optflags: i586 -O2 -g -march=i586 optflags: i686 -O2 -g -march=i686 optflags: pentium3 -O2 -g -march=pentium3 optflags: pentium4 -O2 -g -march=pentium4 optflags: athlon -O2 -g -march=athlon optflags: geode -Os -g -m32 -march=geode optflags: ia64 -O2 -g optflags: x86_64 -O2 -g optflags: amd64 -O2 -g optflags: ia32e -O2 -g optflags: alpha -O2 -g -mieee optflags: alphaev5 -O2 -g -mieee -mtune=ev5 optflags: alphaev56 -O2 -g -mieee -mtune=ev56 optflags: alphapca56 -O2 -g -mieee -mtune=pca56 optflags: alphaev6 -O2 -g -mieee -mtune=ev6 optflags: alphaev67 -O2 -g -mieee -mtune=ev67 optflags: sparc -O2 -g -m32 -mtune=ultrasparc optflags: sparcv8 -O2 -g -m32 -mtune=ultrasparc -mv8 optflags: sparcv9 -O2 -g -m32 -mtune=ultrasparc optflags: sparcv9v -O2 -g -m32 -mtune=niagara optflags: sparc64 -O2 -g -m64 -mtune=ultrasparc optflags: sparc64v -O2 -g -m64 -mtune=niagara optflags: m68k -O2 -g -fomit-frame-pointer optflags: ppc -O2 -g optflags: ppc8260 -O2 -g optflags: ppc8560 -O2 -g optflags: ppc32dy4 -O2 -g optflags: ppciseries -O2 -g optflags: ppcpseries -O2 -g optflags: ppc64 -O2 -g optflags: ppc64le -O2 -g optflags: ppc64p7 -O3 -mtune=power7 -mcpu=power7 -g optflags: parisc -O2 -g -mpa-risc-1-0 optflags: hppa1.0 -O2 -g -mpa-risc-1-0 optflags: hppa1.1 -O2 -g -mpa-risc-1-0 optflags: hppa1.2 -O2 -g -mpa-risc-1-0 optflags: hppa2.0 -O2 -g -mpa-risc-1-0 optflags: mips -O2 -g optflags: mipsel -O2 -g optflags: mips64 -O2 -g optflags: mips64el -O2 -g optflags: mipsr6 -O2 -g optflags: mipsr6el -O2 -g optflags: mips64r6 -O2 -g optflags: mips64r6el -O2 -g optflags: armv3l -O2 -g -march=armv3 optflags: armv4b -O2 -g -march=armv4 optflags: armv4l -O2 -g -march=armv4 optflags: armv4tl -O2 -g -march=armv4t optflags: armv5tl -O2 -g -march=armv5t optflags: armv5tel -O2 -g -march=armv5te optflags: armv5tejl -O2 -g -march=armv5te optflags: armv6l -O2 -g -march=armv6 optflags: armv6hl -O2 -g -march=armv6 -mfloat-abi=hard -mfpu=vfp optflags: armv7l -O2 -g -march=armv7 optflags: armv7hl -O2 -g -march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 optflags: armv7hnl -O2 -g -march=armv7-a -mfloat-abi=hard -mfpu=neon optflags: armv8l -O2 -g -march=armv8-a optflags: armv8hl -O2 -g -march=armv8-a -mfloat-abi=hard -mfpu=vfpv4 optflags: m68k -O2 -g -fomit-frame-pointer optflags: atarist -O2 -g -fomit-frame-pointer optflags: atariste -O2 -g -fomit-frame-pointer optflags: ataritt -O2 -g -fomit-frame-pointer optflags: falcon -O2 -g -fomit-frame-pointer optflags: atariclone -O2 -g -fomit-frame-pointer optflags: milan -O2 -g -fomit-frame-pointer optflags: hades -O2 -g -fomit-frame-pointer optflags: s390 -O2 -g optflags: s390x -O2 -g optflags: sh3 -O2 -g optflags: sh4 -O2 -g -mieee optflags: sh4a -O2 -g -mieee optflags: aarch64 -O2 -g optflags: riscv64 -O2 -g ############################################################# # Architecture colors archcolor: noarch 0 archcolor: i386 1 archcolor: alpha 2 archcolor: sparc 1 archcolor: sparc64 2 archcolor: sparcv9 2 archcolor: ppc 1 archcolor: ppc64 2 archcolor: ppc64le 2 archcolor: armv3l 1 archcolor: armv4b 1 archcolor: armv4l 1 archcolor: armv4tl 1 archcolor: armv5tel 1 archcolor: armv5tejl 1 archcolor: armv6l 1 archcolor: armv7l 1 archcolor: armv8l 1 archcolor: mips 1 archcolor: mipsel 1 archcolor: mips64 2 archcolor: mips64el 2 archcolor: mipsr6 1 archcolor: mipsr6el 1 archcolor: mips64r6 2 archcolor: mips64r6el 2 archcolor: m68k 1 archcolor: m68kmint 1 archcolor: s390 1 archcolor: s390x 2 archcolor: ia64 2 archcolor: x86_64 2 archcolor: sh3 1 archcolor: sh4 1 archcolor: aarch64 2 archcolor: riscv64 2 ############################################################# # Canonical arch names and numbers arch_canon: athlon: athlon 1 arch_canon: geode: geode 1 arch_canon: pentium4: pentium4 1 arch_canon: pentium3: pentium3 1 arch_canon: i686: i686 1 arch_canon: i586: i586 1 arch_canon: i486: i486 1 arch_canon: i386: i386 1 arch_canon: x86_64: x86_64 1 arch_canon: amd64: amd64 1 arch_canon: ia32e: ia32e 1 arch_canon: em64t: em64t 1 arch_canon: alpha: alpha 2 arch_canon: alphaev5: alphaev5 2 arch_canon: alphaev56: alphaev56 2 arch_canon: alphapca56:alphapca56 2 arch_canon: alphaev6: alphaev6 2 arch_canon: alphaev67: alphaev67 2 # We always want to prefer sparc to sparc64. arch_canon: sparc64:sparc64 2 arch_canon: sun4u: sparc64 2 arch_canon: sparc64v: sparc64v 2 arch_canon: sparc: sparc 3 arch_canon: sun4: sparc 3 arch_canon: sun4m: sparc 3 arch_canon: sun4c: sparc 3 arch_canon: sun4d: sparc 3 arch_canon: sparcv8: sparcv8 3 arch_canon: sparcv9: sparcv9 3 arch_canon: sparcv9v: sparcv9v 3 # This is really a place holder for MIPS. arch_canon: mips: mips 4 arch_canon: mipsel: mipsel 4 arch_canon: ppc: ppc 5 arch_canon: ppc8260: ppc8260 5 arch_canon: ppc8560: ppc8560 5 arch_canon: ppc32dy4: ppc32dy4 5 arch_canon: ppciseries: ppciseries 5 arch_canon: ppcpseries: ppcpseries 5 arch_canon: m68k: m68k 6 arch_canon: IP: sgi 7 arch_canon: rs6000: rs6000 8 arch_canon: ia64: ia64 9 arch_canon: mips64: mips64 11 arch_canon: mips64el: mips64el 11 arch_canon: armv3l: armv3l 12 arch_canon: armv4b: armv4b 12 arch_canon: armv4l: armv4l 12 arch_canon: armv5tl: armv5tl 12 arch_canon: armv5tel: armv5tel 12 arch_canon: armv5tejl: armv5tejl 12 arch_canon: armv6l: armv6l 12 arch_canon: armv6hl: armv6hl 12 arch_canon: armv7l: armv7l 12 arch_canon: armv7hl: armv7hl 12 arch_canon: armv7hnl: armv7hnl 12 arch_canon: armv8l: armv8l 12 arch_canon: armv8hl: armv8hl 12 arch_canon: m68kmint: m68kmint 13 arch_canon: atarist: m68kmint 13 arch_canon: atariste: m68kmint 13 arch_canon: ataritt: m68kmint 13 arch_canon: falcon: m68kmint 13 arch_canon: atariclone: m68kmint 13 arch_canon: milan: m68kmint 13 arch_canon: hades: m68kmint 13 arch_canon: s390: s390 14 arch_canon: i370: i370 14 arch_canon: s390x: s390x 15 arch_canon: ppc64: ppc64 16 arch_canon: ppc64le: ppc64le 16 arch_canon: ppc64pseries: ppc64pseries 16 arch_canon: ppc64iseries: ppc64iseries 16 arch_canon: ppc64p7: ppc64p7 16 arch_canon: sh: sh 17 arch_canon: sh3: sh3 17 arch_canon: sh4: sh4 17 arch_canon: sh4a: sh4a 17 arch_canon: xtensa: xtensa 18 arch_canon: aarch64: aarch64 19 arch_canon: mipsr6: mipsr6 20 arch_canon: mipsr6el: mipsr6el 20 arch_canon: mips64r6: mips64r6 21 arch_canon: mips64r6el: mips64r6el 21 arch_canon: riscv: riscv64 22 arch_canon: riscv64: riscv64 22 ############################################################# # Canonical OS names and numbers os_canon: Linux: Linux 1 os_canon: IRIX: Irix 2 # This is wrong os_canon: SunOS5: solaris 3 os_canon: SunOS4: SunOS 4 os_canon: AmigaOS: AmigaOS 5 os_canon: AIX: AIX 5 os_canon: HP-UX: hpux10 6 os_canon: OSF1: osf1 7 os_canon: osf4.0: osf1 7 os_canon: osf3.2: osf1 7 os_canon: FreeBSD: FreeBSD 8 os_canon: SCO_SV: SCO_SV3.2v5.0.2 9 os_canon: IRIX64: Irix64 10 os_canon: NEXTSTEP: NextStep 11 os_canon: BSD_OS: bsdi 12 os_canon: machten: machten 13 os_canon: CYGWIN32_NT: cygwin32 14 os_canon: CYGWIN32_95: cygwin32 15 os_canon: UNIX_SV: MP_RAS: 16 os_canon: MiNT: FreeMiNT 17 os_canon: OS/390: OS/390 18 os_canon: VM/ESA: VM/ESA 19 os_canon: Linux/390: OS/390 20 os_canon: Linux/ESA: VM/ESA 20 os_canon: Darwin: darwin 21 os_canon: MacOSX: macosx 21 ############################################################# # For a given uname().machine, the default build arch buildarchtranslate: osfmach3_i686: i386 buildarchtranslate: osfmach3_i586: i386 buildarchtranslate: osfmach3_i486: i386 buildarchtranslate: osfmach3_i386: i386 buildarchtranslate: athlon: i386 buildarchtranslate: geode: i386 buildarchtranslate: pentium4: i386 buildarchtranslate: pentium3: i386 buildarchtranslate: i686: i386 buildarchtranslate: i586: i386 buildarchtranslate: i486: i386 buildarchtranslate: i386: i386 buildarchtranslate: alphaev5: alpha buildarchtranslate: alphaev56: alpha buildarchtranslate: alphapca56: alpha buildarchtranslate: alphaev6: alpha buildarchtranslate: alphaev67: alpha buildarchtranslate: sun4c: sparc buildarchtranslate: sun4d: sparc buildarchtranslate: sun4m: sparc buildarchtranslate: sparcv8: sparc buildarchtranslate: sparcv9: sparc buildarchtranslate: sparcv9v: sparc buildarchtranslate: sun4u: sparc64 buildarchtranslate: sparc64v: sparc64 buildarchtranslate: osfmach3_ppc: ppc buildarchtranslate: powerpc: ppc buildarchtranslate: powerppc: ppc buildarchtranslate: ppc8260: ppc buildarchtranslate: ppc8560: ppc buildarchtranslate: ppc32dy4: ppc buildarchtranslate: ppciseries: ppc buildarchtranslate: ppcpseries: ppc buildarchtranslate: ppc64iseries: ppc64 buildarchtranslate: ppc64pseries: ppc64 buildarchtranslate: ppc64p7: ppc64 buildarchtranslate: ppc64le: ppc64le buildarchtranslate: armv3l: armv3l buildarchtranslate: armv4b: armv4b buildarchtranslate: armv4l: armv4l buildarchtranslate: armv4tl: armv4tl buildarchtranslate: armv5tl: armv5tl buildarchtranslate: armv5tel: armv5tel buildarchtranslate: armv5tejl: armv5tejl buildarchtranslate: armv6l: armv6l buildarchtranslate: armv6hl: armv6hl buildarchtranslate: armv7l: armv7l buildarchtranslate: armv7hl: armv7hl buildarchtranslate: armv7hnl: armv7hnl buildarchtranslate: armv8l: armv8l buildarchtranslate: armv8hl: armv8hnl buildarchtranslate: mips: mips buildarchtranslate: mipsel: mipsel buildarchtranslate: mips64: mips64 buildarchtranslate: mips64el: mips64el buildarchtranslate: mipsr6: mipsr6 buildarchtranslate: mipsr6el: mipsr6el buildarchtranslate: mips64r6: mips64r6 buildarchtranslate: mips64r6el: mips64r6el buildarchtranslate: m68k: m68k buildarchtranslate: atarist: m68kmint buildarchtranslate: atariste: m68kmint buildarchtranslate: ataritt: m68kmint buildarchtranslate: falcon: m68kmint buildarchtranslate: atariclone: m68kmint buildarchtranslate: milan: m68kmint buildarchtranslate: hades: m68kmint buildarchtranslate: s390: s390 buildarchtranslate: s390x: s390x buildarchtranslate: ia64: ia64 buildarchtranslate: x86_64: x86_64 buildarchtranslate: amd64: x86_64 buildarchtranslate: ia32e: x86_64 buildarchtranslate: sh3: sh3 buildarchtranslate: sh4: sh4 buildarchtranslate: sh4a: sh4 buildarchtranslate: aarch64: aarch64 buildarchtranslate: riscv: riscv64 buildarchtranslate: riscv64: riscv64 ############################################################# # Architecture compatibility arch_compat: alphaev67: alphaev6 arch_compat: alphaev6: alphapca56 arch_compat: alphapca56: alphaev56 arch_compat: alphaev56: alphaev5 arch_compat: alphaev5: alpha arch_compat: alpha: axp noarch arch_compat: athlon: i686 arch_compat: geode: i686 arch_compat: pentium4: pentium3 arch_compat: pentium3: i686 arch_compat: i686: i586 arch_compat: i586: i486 arch_compat: i486: i386 arch_compat: i386: noarch fat arch_compat: osfmach3_i686: i686 osfmach3_i586 arch_compat: osfmach3_i586: i586 osfmach3_i486 arch_compat: osfmach3_i486: i486 osfmach3_i386 arch_compat: osfmach3_i386: i486 arch_compat: osfmach3_ppc: ppc arch_compat: powerpc: ppc arch_compat: powerppc: ppc arch_compat: ppc8260: ppc arch_compat: ppc8560: ppc arch_compat: ppc32dy4: ppc arch_compat: ppciseries: ppc arch_compat: ppcpseries: ppc arch_compat: ppc64: ppc arch_compat: ppc: rs6000 arch_compat: rs6000: noarch fat arch_compat: ppc64pseries: ppc64 arch_compat: ppc64iseries: ppc64 arch_compat: ppc64p7: ppc64 arch_compat: ppc64le: noarch fat arch_compat: sun4c: sparc arch_compat: sun4d: sparc arch_compat: sun4m: sparc arch_compat: sun4u: sparc64 arch_compat: sparc64v: sparc64 arch_compat: sparc64: sparcv9 arch_compat: sparcv9v: sparcv9 arch_compat: sparcv9: sparcv8 arch_compat: sparcv8: sparc arch_compat: sparc: noarch arch_compat: mips: noarch arch_compat: mipsel: noarch arch_compat: mips64: mips arch_compat: mips64el: mipsel arch_compat: mipsr6: noarch arch_compat: mipsr6el: noarch arch_compat: mips64r6: mipsr6 arch_compat: mips64r6el: mipsr6el arch_compat: hppa2.0: hppa1.2 arch_compat: hppa1.2: hppa1.1 arch_compat: hppa1.1: hppa1.0 arch_compat: hppa1.0: parisc arch_compat: parisc: noarch arch_compat: armv4b: noarch arch_compat: armv8l: armv7l arch_compat: armv7l: armv6l arch_compat: armv6l: armv5tejl arch_compat: armv5tejl: armv5tel arch_compat: armv5tel: armv5tl arch_compat: armv5tl: armv4tl arch_compat: armv4tl: armv4l arch_compat: armv4l: armv3l arch_compat: armv3l: noarch arch_compat: armv8hl: armv7hl arch_compat: armv7hnl: armv7hl arch_compat: armv7hl: armv6hl arch_compat: armv6hl: noarch arch_compat: m68k: noarch arch_compat: atarist: m68kmint noarch arch_compat: atariste: m68kmint noarch arch_compat: ataritt: m68kmint noarch arch_compat: falcon: m68kmint noarch arch_compat: atariclone: m68kmint noarch arch_compat: milan: m68kmint noarch arch_compat: hades: m68kmint noarch arch_compat: i370: noarch arch_compat: s390: noarch arch_compat: s390x: s390 noarch arch_compat: ia64: noarch arch_compat: x86_64: amd64 em64t athlon noarch arch_compat: amd64: x86_64 em64t athlon noarch arch_compat: ia32e: x86_64 em64t athlon noarch arch_compat: sh3: noarch arch_compat: sh4: noarch arch_compat: sh4a: sh4 arch_compat: aarch64: noarch arch_compat: riscv: noarch arch_compat: riscv64: noarch os_compat: IRIX64: IRIX os_compat: solaris2.7: solaris2.3 solaris2.4 solaris2.5 solaris2.6 os_compat: solaris2.6: solaris2.3 solaris2.4 solaris2.5 os_compat: solaris2.5: solaris2.3 solaris2.4 os_compat: solaris2.4: solaris2.3 os_compat: hpux11.00: hpux10.30 os_compat: hpux10.30: hpux10.20 os_compat: hpux10.20: hpux10.10 os_compat: hpux10.10: hpux10.01 os_compat: hpux10.01: hpux10.00 os_compat: hpux10.00: hpux9.07 os_compat: hpux9.07: hpux9.05 os_compat: hpux9.05: hpux9.04 os_compat: osf4.0: osf3.2 osf1 os_compat: ncr-sysv4.3: ncr-sysv4.2 os_compat: FreeMiNT: mint MiNT TOS os_compat: MiNT: FreeMiNT mint TOS os_compat: mint: FreeMiNT MiNT TOS os_compat: TOS: FreeMiNT MiNT mint os_compat: BSD_OS: bsdi os_compat: bsdi4.0: bsdi os_compat: Darwin: MacOSX buildarch_compat: ia64: noarch buildarch_compat: aarch64: noarch buildarch_compat: riscv: noarch buildarch_compat: riscv64: noarch buildarch_compat: athlon: i686 buildarch_compat: geode: i586 buildarch_compat: pentium4: pentium3 buildarch_compat: pentium3: i686 buildarch_compat: i686: i586 buildarch_compat: i586: i486 buildarch_compat: i486: i386 buildarch_compat: i386: noarch fat buildarch_compat: sun4c: noarch buildarch_compat: sun4d: noarch buildarch_compat: sun4m: noarch buildarch_compat: sun4u: noarch buildarch_compat: sparc64v: sparc64 buildarch_compat: sparc64: sparcv9v buildarch_compat: sparcv9v: sparcv9 buildarch_compat: sparcv9: sparcv8 buildarch_compat: sparcv8: sparc buildarch_compat: sparc: noarch buildarch_compat: alphaev67: alphaev6 buildarch_compat: alphaev6: alphapca56 buildarch_compat: alphapca56: alphaev56 buildarch_compat: alphaev56: alphaev5 buildarch_compat: alphaev5: alpha buildarch_compat: alpha: noarch buildarch_compat: m68k: noarch buildarch_compat: ppc8260: noarch buildarch_compat: ppc8560: noarch buildarch_compat: ppc32dy4: noarch buildarch_compat: ppciseries: noarch buildarch_compat: ppcpseries: noarch buildarch_compat: ppc: noarch fat buildarch_compat: ppc64: noarch fat buildarch_compat: ppc64le: noarch fat buildarch_compat: ppc64pseries: ppc64 buildarch_compat: ppc64iseries: ppc64 buildarch_compat: ppc64p7: ppc64 buildarch_compat: mips: noarch buildarch_compat: mipsel: noarch buildarch_compat: mips64: noarch buildarch_compat: mips64el: noarch buildarch_compat: mipsr6: noarch buildarch_compat: mipsr6el: noarch buildarch_compat: mips64r6: noarch buildarch_compat: mips64r6el: noarch buildarch_compat: armv4b: noarch buildarch_compat: armv8l: armv7l buildarch_compat: armv7l: armv6l buildarch_compat: armv6l: armv5tejl buildarch_compat: armv5tejl: armv5tel armv5tl buildarch_compat: armv5tel: armv4tl armv5tl buildarch_compat: armv5tl: armv4tl buildarch_compat: armv4tl: armv4l buildarch_compat: armv4l: armv3l buildarch_compat: armv3l: noarch buildarch_compat: armv8hcnl: armv8hnl buildarch_compat: armv8hnl: armv8hl buildarch_compat: armv8hnl: armv7hnl buildarch_compat: armv8hl: armv7hl buildarch_compat: armv7hnl: armv7hl buildarch_compat: armv7hl: armv6hl buildarch_compat: armv6hl: noarch buildarch_compat: hppa2.0: hppa1.2 buildarch_compat: hppa1.2: hppa1.1 buildarch_compat: hppa1.1: hppa1.0 buildarch_compat: hppa1.0: parisc buildarch_compat: parisc: noarch buildarch_compat: atarist: m68kmint noarch buildarch_compat: atariste: m68kmint noarch buildarch_compat: ataritt: m68kmint noarch buildarch_compat: falcon: m68kmint noarch buildarch_compat: atariclone: m68kmint noarch buildarch_compat: milan: m68kmint noarch buildarch_compat: hades: m68kmint noarch buildarch_compat: s390: noarch buildarch_compat: s390x: noarch buildarch_compat: ia64: noarch buildarch_compat: x86_64: noarch buildarch_compat: amd64: x86_64 buildarch_compat: ia32e: x86_64 buildarch_compat: sh3: noarch buildarch_compat: sh4: noarch buildarch_compat: sh4a: sh4 # \endverbatim #*/ gstreamer1.prov 0000755 00000001666 15043540723 0007545 0 ustar 00 #!/usr/bin/sh # # Script to install in: # /usr/lib/rpm/redhat/find-provides.d # # Transform GStreamer auto install info into RPM provides # # Author: Bastien Nocera <hadess@hadess.net> # Based on other provides scripts from RPM # filelist=`grep -e '^.*/gstreamer-1.0/lib.*.so$' | sed "s/['\"]/\\\&/g"` # --- Alpha does not mark 64bit dependencies• case `uname -m` in alpha*) mark64="" ;; *) mark64="()(64bit)" ;; esac solist=$(echo $filelist | \ xargs file -L 2>/dev/null | grep "ELF" | cut -d: -f1 ) function getmark() { lib64=`if file -L $1 2>/dev/null | \ grep "ELF 64-bit" >/dev/null; then echo -n "$mark64"; fi` } function libdir() { buildlibdir=`dirname $1` buildlibdir=`dirname $buildlibdir` } for so in $solist ; do getmark $so libdir $so LD_LIBRARY_PATH=$buildlibdir gst-inspect-1.0 --print-plugin-auto-install-info --rpm $so 2> /dev/null | while read line ; do echo -n "$line"; echo -n "$lib64" echo done done cmake.prov 0000755 00000005660 15043540723 0006551 0 ustar 00 #!/usr/bin/python3 # -*- coding:utf-8 -*- # # Copyright (C) 2015 Daniel Vrátil <dvratil@redhat.com> # Copyright (C) 2017 Daniel Vrátil <dvratil@fedoraproject.org> # # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Library General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU Library General Public # License along with this program; if not, write to the # Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # import sys import re import glob class CMakeParser: def __init__(self, filelist = None): if filelist == None: filelist = sys.stdin paths = map(lambda x: x.rstrip(), filelist.readlines()) for path in paths: modulePath, cmakeModule, lowercase = self.parseCmakeModuleConfig(path) if modulePath and cmakeModule: version = self.resolveCMakeModuleVersion(modulePath, cmakeModule, lowercase) if version: string = "cmake(" + cmakeModule + ") = " + version else: string = "cmake(" + cmakeModule + ")" if string == string.lower(): print(string) else: # Temporarily print both variants to satisfy requires # by the old version of this generator which made mistakes print(string) print(string.lower()) def parseCmakeModuleConfig(self, configFile): paths = configFile.rsplit("/", 3) modulePath = "%s/cmake/%s" % (paths[0], paths[2]) cfgFile = paths[3] if cfgFile.endswith("Config.cmake"): return (modulePath, cfgFile[0:-len("Config.cmake")], False) elif cfgFile.endswith("-config.cmake"): return (modulePath, cfgFile[0:-len("-config.cmake")], True) else: return (None, None, False) def resolveCMakeModuleVersion(self, modulePath, cmakeModule, lowercase): versionFile = ("%s/%s-config-version.cmake" if lowercase else "%s/%sConfigVersion.cmake") % (modulePath, cmakeModule) try: f = open(versionFile, 'r') except: return None for line in f: line = line.strip() # set(PACKAGE_VERSION <version>) version = re.match(r"^set[\ ]*\([\ ]*PACKAGE_VERSION[\ ]+[\"]*([0-9\.]+)[\"]*[\ ]*[.]*\)", line) if version: return version.groups(1)[0] return None if __name__ == "__main__": parser = CMakeParser() tgpg 0000755 00000001651 15043540723 0005441 0 ustar 00 #!/usr/bin/sh for pkg in $* do if [ "$pkg" = "" ] || [ ! -e "$pkg" ]; then echo "no package supplied" 1>&2 exit 1 fi plaintext=`mktemp ${TMPDIR:-/tmp}/tgpg-$$.XXXXXX` detached=`mktemp ${TMPDIR:-/tmp}/tgpg-$$.XXXXXX` # --- Extract detached signature rpm -qp -vv --qf '%{siggpg:armor}' $pkg > $detached # --- Figger the offset of header+payload in the package leadsize=96 o=`expr $leadsize + 8` set `od -j $o -N 8 -t u1 $pkg` il=`expr 256 \* \( 256 \* \( 256 \* $2 + $3 \) + $4 \) + $5` dl=`expr 256 \* \( 256 \* \( 256 \* $6 + $7 \) + $8 \) + $9` sigsize=`expr 8 + 16 \* $il + $dl` o=`expr $o + $sigsize + \( 8 - \( $sigsize \% 8 \) \) \% 8` # --- Extract header+payload dd if=$pkg ibs=$o skip=1 2>/dev/null > $plaintext # --- Verify DSA signature using gpg gpg --batch -vv --debug 0xfc02 --verify $detached $plaintext # --- Clean up rm -f $detached $plaintext done sysusers.prov 0000755 00000001135 15043540723 0007362 0 ustar 00 #!/usr/bin/bash parse() { while read line; do [ "${line:0:1}" = '#' -o "${line:0:1}" = ';' ] && continue line="${line## *}" [ -z "$line" ] && continue set -- $line case "$1" in ('u') echo "user($2)" echo "group($2)" # TODO: user:group support ;; ('g') echo "group($2)" ;; ('m') echo "user($2)" echo "group($3)" ;; esac done } while read fn; do parse < "$fn" done rpmdb_load 0000755 00000000051 15043540723 0006574 0 ustar 00 #!/usr/bin/sh /usr/bin/rpmdb --importdb cmake.req 0000755 00000004454 15043540723 0006352 0 ustar 00 #!/usr/bin/python3 # -*- coding:utf-8 -*- # # Copyright (C) 2017 Björn Esser <besser82@fedoraproject.org> # # based on cmake.prov, which is # Copyright (C) 2015 Daniel Vrátil <dvratil@redhat.com> # Copyright (C) 2017 Daniel Vrátil <dvratil@fedoraproject.org> # # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Library General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU Library General Public # License along with this program; if not, write to the # Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # import sys import re import subprocess class CMakeParser: def __init__(self, filelist = None): if filelist == None: filelist = sys.stdin has_module = False is_arched = False isa_suf = subprocess.check_output(["/usr/bin/rpm", "-E %{?_isa}"]).decode().strip() paths = map(lambda x: x.rstrip(), filelist.readlines()) for path in paths: modulePath, cmakeModule, lowercase = self.parseCmakeModuleConfig(path) if modulePath and cmakeModule: has_module = True if re.match(".*/usr/lib(64)?/cmake/.*", modulePath): is_arched = True if has_module: if is_arched: print("cmake-filesystem%s" % isa_suf) else: print("cmake-filesystem") def parseCmakeModuleConfig(self, configFile): paths = configFile.rsplit("/", 3) modulePath = "%s/cmake/%s" % (paths[0], paths[2]) cfgFile = paths[3] if cfgFile.endswith("Config.cmake"): return (modulePath, cfgFile[0:-len("Config.cmake")], False) elif cfgFile.endswith("-config.cmake"): return (modulePath, cfgFile[0:-len("-config.cmake")], True) else: return (None, None, False) if __name__ == "__main__": parser = CMakeParser() rpmdb_dump 0000755 00000000051 15043540723 0006622 0 ustar 00 #!/usr/bin/sh /usr/bin/rpmdb --exportdb sysusers.generate-pre.sh 0000755 00000004336 15043540723 0011371 0 ustar 00 #!/usr/bin/bash # -*- mode: shell-script; indent-tabs-mode: true; tab-width: 4; -*- # This script turns sysuser.d files into scriptlets mandated by Fedora # packaging guidelines. The general idea is to define users using the # declarative syntax but to turn this into traditional scriptlets. user() { user="$1" uid="$2" desc="$3" group="$4" home="$5" shell="$6" [ "$desc" = '-' ] && desc= { [ "$home" = '-' ] || [ "$home" = '' ]; } && home=/ { [ "$shell" = '-' ] || [ "$shell" = '' ]; } && shell=/usr/sbin/nologin if [ "$uid" = '-' ] || [ "$uid" = '' ]; then cat <<-EOF getent passwd '$user' >/dev/null || \\ useradd -r -g ${group@Q} -d ${home@Q} -s ${shell@Q} -c ${desc@Q} ${user@Q} || : EOF else cat <<-EOF if ! getent passwd ${user@Q} >/dev/null; then if ! getent passwd ${uid@Q} >/dev/null; then useradd -r -u ${uid@Q} -g ${group@Q} -d ${home@Q} -s ${shell@Q} -c ${desc@Q} ${user@Q} || : else useradd -r -g ${group@Q} -d ${home@Q} -s ${shell@Q} -c ${desc@Q} ${user@Q} || : fi fi EOF fi } group() { group="$1" gid="$2" if [ "$gid" = '-' ]; then cat <<-EOF getent group ${group@Q} >/dev/null || groupadd -r ${group@Q} || : EOF else cat <<-EOF getent group ${group@Q} >/dev/null || groupadd -f -g ${gid@Q} -r ${group@Q} || : EOF fi } usermod() { user="$1" group="$2" cat <<-EOF if getent group ${group@Q} >/dev/null; then usermod -a -G ${group@Q} '$user' || : fi EOF } parse() { while read -r line || [ -n "$line" ] ; do { [ "${line:0:1}" = '#' ] || [ "${line:0:1}" = ';' ]; } && continue line="${line## *}" [ -z "$line" ] && continue eval "arr=( $line )" case "${arr[0]}" in ('u') if [[ "${arr[2]}" == *":"* ]]; then user "${arr[1]}" "${arr[2]%:*}" "${arr[3]}" "${arr[2]#*:}" "${arr[4]}" "${arr[5]}" else group "${arr[1]}" "${arr[2]}" user "${arr[1]}" "${arr[2]}" "${arr[3]}" "${arr[1]}" "${arr[4]}" "${arr[5]}" fi ;; ('g') group "${arr[1]}" "${arr[2]}" ;; ('m') group "${arr[2]}" "-" user "${arr[1]}" "-" "" "${arr[1]}" "" "" usermod "${arr[1]}" "${arr[2]}" ;; esac done } for fn in "$@"; do [ -e "$fn" ] || continue echo "# generated from $(basename "$fn")" parse <"$fn" done rpm.supp 0000644 00000001260 15043540723 0006255 0 ustar 00 # This is a valgrind suppression file for rpm. # Rpm now processes /proc/self/auxv on Linux, but valgrind does not # like that (see https://bugs.kde.org/show_bug.cgi?id=253519). To # avoid the related false positives from valgrind, use this with # 'valgrind --suppressions=rpm.supp [...]' when using it on rpm. { defaultMachine_strdup Memcheck:Addr1 ... fun:strdup ... fun:defaultMachine } { defaultMachine_memcpy1 Memcheck:Addr1 fun:*memcpy ... fun:defaultMachine } { defaultMachine_memcpy2 Memcheck:Addr2 fun:*memcpy ... fun:defaultMachine } { defaultMachine_memcpy4 Memcheck:Addr4 fun:*memcpy ... fun:defaultMachine } redhat/macros 0000644 00000040020 15043540723 0007221 0 ustar 00 # Per-platform rpm configuration file. #============================================================================== # ---- per-platform macros. # %_vendor redhat %_os linux %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os}%{?_gnu} #============================================================================== # ---- configure macros. note that most of these are inherited # from the defaults. # %_localstatedir /var %_pkgdocdir %{_docdir}/%{name} %_docdir_fmt %%{NAME} %_fmoddir %{_libdir}/gfortran/modules %source_date_epoch_from_changelog 1 %_enable_debug_packages 1 %_include_minidebuginfo 1 %_include_gdb_index 1 %_debugsource_packages 1 %_debuginfo_subpackages 1 # GCC toolchain %__cc_gcc gcc %__cxx_gcc g++ %__cpp_gcc gcc -E # Clang toolchain %__cc_clang clang %__cxx_clang clang++ %__cpp_clang clang-cpp # Default to the GCC toolchain %toolchain gcc %__cc %{expand:%%{__cc_%{toolchain}}} %__cxx %{expand:%%{__cxx_%{toolchain}}} %__cpp %{expand:%%{__cpp_%{toolchain}}} #============================================================================== # ---- compiler flags. # C compiler flags. This is traditionally called CFLAGS in makefiles. # Historically also available as %%{optflags}, and %%build sets the # environment variable RPM_OPT_FLAGS to this value. %build_cflags %{optflags} # C++ compiler flags. This is traditionally called CXXFLAGS in makefiles. %build_cxxflags %{optflags} # Fortran compiler flags. Makefiles use both FFLAGS and FCFLAGS as # the corresponding variable names. %build_fflags %{optflags} -I%{_fmoddir} # Link editor flags. This is usually called LDFLAGS in makefiles. # (Some makefiles use LFLAGS instead.) The default value assumes that # the flags, while intended for ld, are still passed through the gcc # compiler driver. At the beginning of %%build, the environment # variable RPM_LD_FLAGS to this value. # When clang is used as a linker driver, it does not auto-detect the LTO # bytecode and neither does bfd, so we need to explicitly pass the -flto # flag when linking. %build_ldflags -Wl,-z,relro %{_ld_as_needed_flags} %{_ld_symbols_flags} %{_hardened_ldflags} %{_annotation_ldflags} %[ "%{toolchain}" == "clang" ? "%{?_lto_cflags}" : "" ] # Expands to shell code to set the compiler/linker environment # variables CFLAGS, CXXFLAGS, FFLAGS, FCFLAGS, LDFLAGS if they have # not been set already. RPM_OPT_FLAGS and RPM_LD_FLAGS have already # been set implicitly at the start of the %%build section. # LT_SYS_LIBRARY_PATH is used by libtool script. %set_build_flags \ CFLAGS="${CFLAGS:-%{build_cflags}}" ; export CFLAGS ; \ CXXFLAGS="${CXXFLAGS:-%{build_cxxflags}}" ; export CXXFLAGS ; \ FFLAGS="${FFLAGS:-%{build_fflags}}" ; export FFLAGS ; \ FCFLAGS="${FCFLAGS:-%{build_fflags}}" ; export FCFLAGS ; \ LDFLAGS="${LDFLAGS:-%{build_ldflags}}" ; export LDFLAGS ; \ LT_SYS_LIBRARY_PATH="${LT_SYS_LIBRARY_PATH:-%_libdir:}" ; export LT_SYS_LIBRARY_PATH ; \ CC="${CC:-%{__cc}}" ; export CC ; \ CXX="${CXX:-%{__cxx}}" ; export CXX # Internal-only. Do not use. Expand a variable and strip the flags # not suitable to extension builders. %__extension_strip_flags() %{lua: local name = rpm.expand("%{1}") local value = " " .. rpm.expand("%{build_" .. name .. "}") local specs_pattern = "%s+-specs=[^%s]+" local lto_flags_pattern = rpm.expand("%{?_lto_cflags}"):gsub("[%-%.]", "%%%1") local result = value:gsub(specs_pattern, " "):gsub(lto_flags_pattern, "") print(result) } # Variants of CFLAGS, CXXFLAGS, FFLAGS, LDFLAGS for use within # extension builders. %extension_cflags %{__extension_strip_flags cflags} %extension_cxxflags %{__extension_strip_flags cxxflags} %extension_fflags %{__extension_strip_flags fflags} %extension_ldflags %{__extension_strip_flags ldflags} # Deprecated names. For backwards compatibility only. %__global_cflags %{build_cflags} %__global_cxxflags %{build_cxxflags} %__global_fflags %{build_fflags} %__global_fcflags %{build_fflags} %__global_ldflags %{build_ldflags} # Architecture-specific support. Internal. Do not use directly. %__cflags_arch_x86_64 %[0%{?rhel} >= 9 ? "-march=x86-64-v2" : ""] # Also used for s390. %__cflags_arch_s390x %[0%{?rhel} >= 9 ? "-march=z14 -mtune=z15" : "-march=zEC12 -mtune=z13"] # Also used for ppc64le. %__cflags_arch_ppc64le %[0%{?rhel} >= 9 ? "-mcpu=power9 -mtune=power9" : "-mcpu=power8 -mtune=power8"] #============================================================================== # ---- configure and makeinstall. # %_configure_gnuconfig_hack 1 %_configure_libtool_hardening_hack 1 # If defined, _configure_disable_silent_rules will cause --disable-silent-rules # to be added to the list of options passed to the configure script. # Eventually we'll want to turn this on by default, but this gives packagers a # way to turn it back off. # %_configure_disable_silent_rules 1 # This fixes various easy resolved configure tests that are compromised by LTO. # # We use this within the standard %configure macro, but also make it available # for packages which don't use %configure # # The first three are common ways to test for the existence of a function, so # we ensure the reference to the function is preserved # # The fourth are constants used to then try to generate NaNs and other key # floating point numbers. We then use those special FP numbers to try and # raise a SIGFPE. By declaring x & y volatile we prevent the optimizers # from removing the computation # # The fifth (and worst) addresses problems with autoconf/libtool's approach # to extracting symbols from .o files and generating C code. In an LTO world # types matter much more closely and you can't have an object in one context # that is a function definition and a simple scalar variable in another. # Thankfully HP-UX has always had that restriction and is supported by # autoconf/libtool. The insane sed script replaces the "generic" code with # the HP-UX version. # # If we do not make changes, we put the original file back. This avoids # unnecessary rebuilds of things that may have dependencies on the configure # files. # %_fix_broken_configure_for_lto \ for file in $(find . -type f -name configure -print); do \ %{__sed} -r --in-place=.backup 's/^char \\(\\*f\\) \\(\\) = /__attribute__ ((used)) char (*f) () = /g' $file; \ diff -u $file.backup $file && mv $file.backup $file \ %{__sed} -r --in-place=.backup 's/^char \\(\\*f\\) \\(\\);/__attribute__ ((used)) char (*f) ();/g' $file; \ diff -u $file.backup $file && mv $file.backup $file \ %{__sed} -r --in-place=.backup 's/^char \\$2 \\(\\);/__attribute__ ((used)) char \\$2 ();/g' $file; \ diff -u $file.backup $file && mv $file.backup $file \ %{__sed} --in-place=.backup '1{$!N;$!N};$!N;s/int x = 1;\\nint y = 0;\\nint z;\\nint nan;/volatile int x = 1; volatile int y = 0; volatile int z, nan;/;P;D' $file; \ diff -u $file.backup $file && mv $file.backup $file \ %{__sed} --in-place=.backup 's#^lt_cv_sys_global_symbol_to_cdecl=.*#lt_cv_sys_global_symbol_to_cdecl="sed -n -e '"'"'s/^T .* \\\\(.*\\\\)$/extern int \\\\1();/p'"'"' -e '"'"'s/^$symcode* .* \\\\(.*\\\\)$/extern char \\\\1;/p'"'"'"#' $file; \ diff -u $file.backup $file && mv $file.backup $file \ done %configure \ %{set_build_flags}; \ [ "%{_lto_cflags}"x != x ] && %{_fix_broken_configure_for_lto}; \ [ "%_configure_gnuconfig_hack" = 1 ] && for i in $(find $(dirname %{_configure}) -name config.guess -o -name config.sub) ; do \ [ -f /usr/lib/rpm/redhat/$(basename $i) ] && %{__rm} -f $i && %{__cp} -fv /usr/lib/rpm/redhat/$(basename $i) $i ; \ done ; \ [ "%_configure_libtool_hardening_hack" = 1 ] && [ x != "x%{_hardened_ldflags}" ] && \ for i in $(find . -name ltmain.sh) ; do \ %{__sed} -i.backup -e 's~compiler_flags=$~compiler_flags="%{_hardened_ldflags}"~' $i \ done ; \ %{_configure} --build=%{_build} --host=%{_host} \\\ --program-prefix=%{?_program_prefix} \\\ --disable-dependency-tracking \\\ %{?_configure_disable_silent_rules:--disable-silent-rules} \\\ --prefix=%{_prefix} \\\ --exec-prefix=%{_exec_prefix} \\\ --bindir=%{_bindir} \\\ --sbindir=%{_sbindir} \\\ --sysconfdir=%{_sysconfdir} \\\ --datadir=%{_datadir} \\\ --includedir=%{_includedir} \\\ --libdir=%{_libdir} \\\ --libexecdir=%{_libexecdir} \\\ --localstatedir=%{_localstatedir} \\\ --sharedstatedir=%{_sharedstatedir} \\\ --mandir=%{_mandir} \\\ --infodir=%{_infodir} #============================================================================== # ---- Build policy macros. # # #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "${RPM_BUILD_ROOT}"\ mkdir -p `dirname "$RPM_BUILD_ROOT"`\ mkdir "$RPM_BUILD_ROOT"\ %{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. # %__arch_install_post /usr/lib/rpm/check-buildroot # Build root policy macros. Standard naming: # convert all '-' in basename to '_', add two leading underscores. %__brp_ldconfig /usr/lib/rpm/redhat/brp-ldconfig %__brp_compress /usr/lib/rpm/brp-compress %__brp_strip /usr/lib/rpm/brp-strip %{__strip} %__brp_strip_lto /usr/lib/rpm/redhat/brp-strip-lto %{__strip} %__brp_strip_comment_note /usr/lib/rpm/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_static_archive /usr/lib/rpm/brp-strip-static-archive %{__strip} %__brp_python_bytecompile /usr/lib/rpm/redhat/brp-python-bytecompile "" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" %__brp_fix_pyc_reproducibility /usr/lib/rpm/redhat/brp-fix-pyc-reproducibility %__brp_python_hardlink /usr/lib/rpm/brp-python-hardlink # __brp_mangle_shebangs_exclude - shebangs to exclude # __brp_mangle_shebangs_exclude_file - file from which to get shebangs to exclude # __brp_mangle_shebangs_exclude_from - files to ignore # __brp_mangle_shebangs_exclude_from_file - file from which to get files to ignore %__brp_mangle_shebangs /usr/lib/rpm/redhat/brp-mangle-shebangs %{?__brp_mangle_shebangs_exclude:--shebangs "%{?__brp_mangle_shebangs_exclude}"} %{?__brp_mangle_shebangs_exclude_file:--shebangs-from "%{__brp_mangle_shebangs_exclude_file}"} %{?__brp_mangle_shebangs_exclude_from:--files "%{?__brp_mangle_shebangs_exclude_from}"} %{?__brp_mangle_shebangs_exclude_from_file:--files-from "%{__brp_mangle_shebangs_exclude_from_file}"} %__brp_llvm_compile_lto_elf /usr/lib/rpm/redhat/brp-llvm-compile-lto-elf %{build_cflags} %{build_ldflags} %__os_install_post \ %{?__brp_ldconfig} \ %{?__brp_compress} \ %{!?__debug_package:\ %{?__brp_strip} \ %{?__brp_strip_comment_note} \ } \ %{?__brp_strip_lto} \ %{?__brp_strip_static_archive} \ %{?py_auto_byte_compile:%{?__brp_python_bytecompile}} \ %{?py_reproducible_pyc_path:%{?__brp_fix_pyc_reproducibility} "%{py_reproducible_pyc_path}"} \ %{?__brp_python_hardlink} \ %{?__brp_mangle_shebangs} \ %{nil} %__spec_install_post\ %[ "%{toolchain}" == "clang" ? "%{?__brp_llvm_compile_lto_elf}" : "%{nil}" ] \ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post}\ %{nil} %install %{?_enable_debug_packages:%{?buildsubdir:%{debug_package}}}\ %%install\ %{nil} # # Should missing buildids terminate a build? %_missing_build_ids_terminate_build 1 # ## Automatically compile python files %py_auto_byte_compile 1 # ## Should python bytecompilation errors terminate a build? %_python_bytecompile_errors_terminate_build 1 ## Should python bytecompilation compile outisde python specific directories? %_python_bytecompile_extra 0 # Use SHA-256 for FILEDIGESTS instead of default MD5 %_source_filedigest_algorithm 8 %_binary_filedigest_algorithm 8 # Use Zstandard compression for binary payloads %_binary_payload w19.zstdio %_hardening_gcc_cflags -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 %_hardening_clang_cflags --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg %_hardening_cflags %{expand:%%{_hardening_%{toolchain}_cflags}} -fstack-protector-strong # we don't escape symbols '~', '"', etc. so be careful when changing this %_hardening_ldflags -Wl,-z,now %[ "%{toolchain}" == "gcc" ? "-specs=/usr/lib/rpm/redhat/redhat-hardened-ld" : "" ] # Harden packages by default for Fedora 23+: # https://fedorahosted.org/fesco/ticket/1384 (accepted on 2014-02-11) # Use "%undefine _hardened_build" to disable. %_hardened_build 1 %_hardened_cflags %{?_hardened_build:%{_hardening_cflags}} %_hardened_ldflags %{?_hardened_build:%{_hardening_ldflags}} # Add extra information to binary objects created by the compiler: # https://pagure.io/fesco/issue/1780 (accepted on 2017-10-30) # Use "%undefine _annotated_build" to disable. %_annotated_build 1 %_annobin_gcc_plugin -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 # The annobin plugin is not built for clang yet %_annobin_clang_plugin %dnl-fplugin=/usr/lib64/clang/`clang -dumpversion`/lib/annobin.so %_annotation_cflags %{?_annotated_build:%{expand:%%{_annobin_%{toolchain}_plugin}}} %_annotation_ldflags %{?_lto_cflags:%{_annotation_cflags}} # Use the remove-section option to force the find-debuginfo script # to move the annobin notes into the separate debuginfo file. %_find_debuginfo_vendor_opts %{?_annotated_build:--remove-section .gnu.build.attributes} # Fail linking if there are undefined symbols. Required for proper # ELF symbol versioning support. Disabled by default. # Use "%define _ld_strict_symbol_defs 1" to enable. #%_ld_strict_symbol_defs 1 %_ld_symbols_flags %{?_ld_strict_symbol_defs:-Wl,-z,defs} # https://fedoraproject.org/wiki/Changes/RemoveExcessiveLinking # use "%undefine _ld_as_needed" to disable. %_ld_as_needed 1 %_ld_as_needed_flags %{?_ld_as_needed:-Wl,--as-needed} # LTO is the default in Fedora. # "%define _lto_cflags %{nil}" to opt out # # We currently have -ffat-lto-objects turned on out of an abundance of # caution. To remove it we need to do a check of the installed .o/.a files # to verify they have real sections/symbols after LTO stripping. That # way we can detect installing an unusable .o/.a file. This is on the TODO # list for F34. %_gcc_lto_cflags -flto=auto -ffat-lto-objects %_clang_lto_cflags -flto=thin %_lto_cflags %{expand:%%{_%{toolchain}_lto_cflags}} %_general_options -O2 %{?_lto_cflags} -fexceptions -g -grecord-gcc-switches -pipe %_warning_options -Wall -Werror=format-security %_preprocessor_defines -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS # Common variables are no longer generated by default by gcc and clang # If they are needed then add "%define _legacy_common_support 1" to the spec file. %_legacy_options %{?_legacy_common_support: -fcommon} %__global_compiler_flags %{_general_options} %{_warning_options} %{_preprocessor_defines} %{_hardened_cflags} %{_annotation_cflags} %{_legacy_options} # Automatically trim changelog entries after 2 years %_changelog_trimtime %{lua:print(os.time() - 2 * 365 * 86400)} #============================================================================== # ---- Generic auto req/prov filtering macros # # http://fedoraproject.org/wiki/PackagingDrafts/AutoProvidesAndRequiresFiltering # prevent anything matching from being scanned for provides %filter_provides_in(P) %{expand: \ %global __filter_prov_cmd %{?__filter_prov_cmd} %{__grep} -v %{-P} '%*' | \ } # prevent anything matching from being scanned for requires %filter_requires_in(P) %{expand: \ %global __filter_req_cmd %{?__filter_req_cmd} %{__grep} -v %{-P} '%*' | \ } # filter anything matching out of the provides stream %filter_from_provides() %{expand: \ %global __filter_from_prov %{?__filter_from_prov} | %{__sed} -e '%*' \ } # filter anything matching out of the requires stream %filter_from_requires() %{expand: \ %global __filter_from_req %{?__filter_from_req} | %{__sed} -e '%*' \ } # actually set up the filtering bits %filter_setup %{expand: \ %global _use_internal_dependency_generator 0 \ %global __deploop() while read FILE; do echo "${FILE}" | /usr/lib/rpm/rpmdeps -%{1}; done | /bin/sort -u \ %global __find_provides /bin/sh -c "%{?__filter_prov_cmd} %{__deploop P} %{?__filter_from_prov}" \ %global __find_requires /bin/sh -c "%{?__filter_req_cmd} %{__deploop R} %{?__filter_from_req}" \ } redhat/redhat-annobin-select-gcc-built-plugin 0000444 00000000135 15043540723 0015247 0 ustar 00 *cc1_options: + %{!-fno-use-annobin:%{!iplugindir*:%:find-plugindir()} -fplugin=gcc-annobin} redhat/compileall2.py 0000644 00000053137 15043540723 0010604 0 ustar 00 """Module/script to byte-compile all .py files to .pyc files. When called as a script with arguments, this compiles the directories given as arguments recursively; the -l option prevents it from recursing into directories. Without arguments, if compiles all modules on sys.path, without recursing into subdirectories. (Even though it should do so for packages -- for now, you'll have to deal with packages separately.) See module py_compile for details of the actual byte-compilation. License: Compileall2 is an enhanced copy of Python's compileall module and it follows Python licensing. For more info see: https://www.python.org/psf/license/ """ import os import sys import importlib.util import py_compile import struct import filecmp from functools import partial from pathlib import Path # Python 3.7 and higher PY37 = sys.version_info[0:2] >= (3, 7) # Python 3.6 and higher PY36 = sys.version_info[0:2] >= (3, 6) # Python 3.5 and higher PY35 = sys.version_info[0:2] >= (3, 5) # Python 3.7 and above has a different structure and length # of pyc files header. Also, multiple ways how to invalidate pyc file was # introduced in Python 3.7. These cases are covered by variables here or by PY37 # variable itself. if PY37: pyc_struct_format = '<4sll' pyc_header_lenght = 12 pyc_header_format = (pyc_struct_format, importlib.util.MAGIC_NUMBER, 0) else: pyc_struct_format = '<4sl' pyc_header_lenght = 8 pyc_header_format = (pyc_struct_format, importlib.util.MAGIC_NUMBER) __all__ = ["compile_dir","compile_file","compile_path"] def optimization_kwarg(opt): """Returns opt as a dictionary {optimization: opt} for use as **kwarg for Python >= 3.5 and empty dictionary for Python 3.4""" if PY35: return dict(optimization=opt) else: # `debug_override` is a way how to enable optimized byte-compiled files # (.pyo) in Python <= 3.4 if opt: return dict(debug_override=False) else: return dict() def _walk_dir(dir, maxlevels, quiet=0): if PY36 and quiet < 2 and isinstance(dir, os.PathLike): dir = os.fspath(dir) else: dir = str(dir) if not quiet: print('Listing {!r}...'.format(dir)) try: names = os.listdir(dir) except OSError: if quiet < 2: print("Can't list {!r}".format(dir)) names = [] names.sort() for name in names: if name == '__pycache__': continue fullname = os.path.join(dir, name) if not os.path.isdir(fullname): yield fullname elif (maxlevels > 0 and name != os.curdir and name != os.pardir and os.path.isdir(fullname) and not os.path.islink(fullname)): yield from _walk_dir(fullname, maxlevels=maxlevels - 1, quiet=quiet) def compile_dir(dir, maxlevels=None, ddir=None, force=False, rx=None, quiet=0, legacy=False, optimize=-1, workers=1, invalidation_mode=None, stripdir=None, prependdir=None, limit_sl_dest=None, hardlink_dupes=False): """Byte-compile all modules in the given directory tree. Arguments (only dir is required): dir: the directory to byte-compile maxlevels: maximum recursion level (default `sys.getrecursionlimit()`) ddir: the directory that will be prepended to the path to the file as it is compiled into each byte-code file. force: if True, force compilation, even if timestamps are up-to-date quiet: full output with False or 0, errors only with 1, no output with 2 legacy: if True, produce legacy pyc paths instead of PEP 3147 paths optimize: int or list of optimization levels or -1 for level of the interpreter. Multiple levels leads to multiple compiled files each with one optimization level. workers: maximum number of parallel workers invalidation_mode: how the up-to-dateness of the pyc will be checked stripdir: part of path to left-strip from source file path prependdir: path to prepend to beggining of original file path, applied after stripdir limit_sl_dest: ignore symlinks if they are pointing outside of the defined path hardlink_dupes: hardlink duplicated pyc files """ ProcessPoolExecutor = None if ddir is not None and (stripdir is not None or prependdir is not None): raise ValueError(("Destination dir (ddir) cannot be used " "in combination with stripdir or prependdir")) if ddir is not None: stripdir = dir prependdir = ddir ddir = None if workers is not None: if workers < 0: raise ValueError('workers must be greater or equal to 0') elif workers != 1: try: # Only import when needed, as low resource platforms may # fail to import it from concurrent.futures import ProcessPoolExecutor except ImportError: workers = 1 if maxlevels is None: maxlevels = sys.getrecursionlimit() files = _walk_dir(dir, quiet=quiet, maxlevels=maxlevels) success = True if workers is not None and workers != 1 and ProcessPoolExecutor is not None: workers = workers or None with ProcessPoolExecutor(max_workers=workers) as executor: results = executor.map(partial(compile_file, ddir=ddir, force=force, rx=rx, quiet=quiet, legacy=legacy, optimize=optimize, invalidation_mode=invalidation_mode, stripdir=stripdir, prependdir=prependdir, limit_sl_dest=limit_sl_dest), files) success = min(results, default=True) else: for file in files: if not compile_file(file, ddir, force, rx, quiet, legacy, optimize, invalidation_mode, stripdir=stripdir, prependdir=prependdir, limit_sl_dest=limit_sl_dest, hardlink_dupes=hardlink_dupes): success = False return success def compile_file(fullname, ddir=None, force=False, rx=None, quiet=0, legacy=False, optimize=-1, invalidation_mode=None, stripdir=None, prependdir=None, limit_sl_dest=None, hardlink_dupes=False): """Byte-compile one file. Arguments (only fullname is required): fullname: the file to byte-compile ddir: if given, the directory name compiled in to the byte-code file. force: if True, force compilation, even if timestamps are up-to-date quiet: full output with False or 0, errors only with 1, no output with 2 legacy: if True, produce legacy pyc paths instead of PEP 3147 paths optimize: int or list of optimization levels or -1 for level of the interpreter. Multiple levels leads to multiple compiled files each with one optimization level. invalidation_mode: how the up-to-dateness of the pyc will be checked stripdir: part of path to left-strip from source file path prependdir: path to prepend to beggining of original file path, applied after stripdir limit_sl_dest: ignore symlinks if they are pointing outside of the defined path. hardlink_dupes: hardlink duplicated pyc files """ if ddir is not None and (stripdir is not None or prependdir is not None): raise ValueError(("Destination dir (ddir) cannot be used " "in combination with stripdir or prependdir")) success = True if PY36 and quiet < 2 and isinstance(fullname, os.PathLike): fullname = os.fspath(fullname) else: fullname = str(fullname) name = os.path.basename(fullname) dfile = None if ddir is not None: if not PY36: ddir = str(ddir) dfile = os.path.join(ddir, name) if stripdir is not None: fullname_parts = fullname.split(os.path.sep) stripdir_parts = stripdir.split(os.path.sep) ddir_parts = list(fullname_parts) for spart, opart in zip(stripdir_parts, fullname_parts): if spart == opart: ddir_parts.remove(spart) dfile = os.path.join(*ddir_parts) if prependdir is not None: if dfile is None: dfile = os.path.join(prependdir, fullname) else: dfile = os.path.join(prependdir, dfile) if isinstance(optimize, int): optimize = [optimize] if hardlink_dupes: raise ValueError(("Hardlinking of duplicated bytecode makes sense " "only for more than one optimization level.")) if rx is not None: mo = rx.search(fullname) if mo: return success if limit_sl_dest is not None and os.path.islink(fullname): if Path(limit_sl_dest).resolve() not in Path(fullname).resolve().parents: return success opt_cfiles = {} if os.path.isfile(fullname): for opt_level in optimize: if legacy: opt_cfiles[opt_level] = fullname + 'c' else: if opt_level >= 0: opt = opt_level if opt_level >= 1 else '' opt_kwarg = optimization_kwarg(opt) cfile = (importlib.util.cache_from_source( fullname, **opt_kwarg)) opt_cfiles[opt_level] = cfile else: cfile = importlib.util.cache_from_source(fullname) opt_cfiles[opt_level] = cfile head, tail = name[:-3], name[-3:] if tail == '.py': if not force: try: mtime = int(os.stat(fullname).st_mtime) expect = struct.pack(*(pyc_header_format + (mtime,))) for cfile in opt_cfiles.values(): with open(cfile, 'rb') as chandle: actual = chandle.read(pyc_header_lenght) if expect != actual: break else: return success except OSError: pass if not quiet: print('Compiling {!r}...'.format(fullname)) try: for index, opt_level in enumerate(sorted(optimize)): cfile = opt_cfiles[opt_level] if PY37: ok = py_compile.compile(fullname, cfile, dfile, True, optimize=opt_level, invalidation_mode=invalidation_mode) else: ok = py_compile.compile(fullname, cfile, dfile, True, optimize=opt_level) if index > 0 and hardlink_dupes: previous_cfile = opt_cfiles[optimize[index - 1]] if previous_cfile == cfile and optimize[0] not in (1, 2): # Python 3.4 has only one .pyo file for -O and -OO so # we hardlink it only if there is a .pyc file # with the same content previous_cfile = opt_cfiles[optimize[0]] if previous_cfile != cfile and filecmp.cmp(cfile, previous_cfile, shallow=False): os.unlink(cfile) os.link(previous_cfile, cfile) except py_compile.PyCompileError as err: success = False if quiet >= 2: return success elif quiet: print('*** Error compiling {!r}...'.format(fullname)) else: print('*** ', end='') # escape non-printable characters in msg msg = err.msg.encode(sys.stdout.encoding, errors='backslashreplace') msg = msg.decode(sys.stdout.encoding) print(msg) except (SyntaxError, UnicodeError, OSError) as e: success = False if quiet >= 2: return success elif quiet: print('*** Error compiling {!r}...'.format(fullname)) else: print('*** ', end='') print(e.__class__.__name__ + ':', e) else: if ok == 0: success = False return success def compile_path(skip_curdir=1, maxlevels=0, force=False, quiet=0, legacy=False, optimize=-1, invalidation_mode=None): """Byte-compile all module on sys.path. Arguments (all optional): skip_curdir: if true, skip current directory (default True) maxlevels: max recursion level (default 0) force: as for compile_dir() (default False) quiet: as for compile_dir() (default 0) legacy: as for compile_dir() (default False) optimize: as for compile_dir() (default -1) invalidation_mode: as for compiler_dir() """ success = True for dir in sys.path: if (not dir or dir == os.curdir) and skip_curdir: if quiet < 2: print('Skipping current directory') else: success = success and compile_dir( dir, maxlevels, None, force, quiet=quiet, legacy=legacy, optimize=optimize, invalidation_mode=invalidation_mode, ) return success def main(): """Script main program.""" import argparse parser = argparse.ArgumentParser( description='Utilities to support installing Python libraries.') parser.add_argument('-l', action='store_const', const=0, default=None, dest='maxlevels', help="don't recurse into subdirectories") parser.add_argument('-r', type=int, dest='recursion', help=('control the maximum recursion level. ' 'if `-l` and `-r` options are specified, ' 'then `-r` takes precedence.')) parser.add_argument('-f', action='store_true', dest='force', help='force rebuild even if timestamps are up to date') parser.add_argument('-q', action='count', dest='quiet', default=0, help='output only error messages; -qq will suppress ' 'the error messages as well.') parser.add_argument('-b', action='store_true', dest='legacy', help='use legacy (pre-PEP3147) compiled file locations') parser.add_argument('-d', metavar='DESTDIR', dest='ddir', default=None, help=('directory to prepend to file paths for use in ' 'compile-time tracebacks and in runtime ' 'tracebacks in cases where the source file is ' 'unavailable')) parser.add_argument('-s', metavar='STRIPDIR', dest='stripdir', default=None, help=('part of path to left-strip from path ' 'to source file - for example buildroot. ' '`-d` and `-s` options cannot be ' 'specified together.')) parser.add_argument('-p', metavar='PREPENDDIR', dest='prependdir', default=None, help=('path to add as prefix to path ' 'to source file - for example / to make ' 'it absolute when some part is removed ' 'by `-s` option. ' '`-d` and `-p` options cannot be ' 'specified together.')) parser.add_argument('-x', metavar='REGEXP', dest='rx', default=None, help=('skip files matching the regular expression; ' 'the regexp is searched for in the full path ' 'of each file considered for compilation')) parser.add_argument('-i', metavar='FILE', dest='flist', help=('add all the files and directories listed in ' 'FILE to the list considered for compilation; ' 'if "-", names are read from stdin')) parser.add_argument('compile_dest', metavar='FILE|DIR', nargs='*', help=('zero or more file and directory names ' 'to compile; if no arguments given, defaults ' 'to the equivalent of -l sys.path')) parser.add_argument('-j', '--workers', default=1, type=int, help='Run compileall concurrently') parser.add_argument('-o', action='append', type=int, dest='opt_levels', help=('Optimization levels to run compilation with. ' 'Default is -1 which uses optimization level of ' 'Python interpreter itself (specified by -O).')) parser.add_argument('-e', metavar='DIR', dest='limit_sl_dest', help='Ignore symlinks pointing outsite of the DIR') parser.add_argument('--hardlink-dupes', action='store_true', dest='hardlink_dupes', help='Hardlink duplicated pyc files') if PY37: invalidation_modes = [mode.name.lower().replace('_', '-') for mode in py_compile.PycInvalidationMode] parser.add_argument('--invalidation-mode', choices=sorted(invalidation_modes), help=('set .pyc invalidation mode; defaults to ' '"checked-hash" if the SOURCE_DATE_EPOCH ' 'environment variable is set, and ' '"timestamp" otherwise.')) args = parser.parse_args() compile_dests = args.compile_dest if args.rx: import re args.rx = re.compile(args.rx) if args.limit_sl_dest == "": args.limit_sl_dest = None if args.recursion is not None: maxlevels = args.recursion else: maxlevels = args.maxlevels if args.opt_levels is None: args.opt_levels = [-1] if len(args.opt_levels) == 1 and args.hardlink_dupes: parser.error(("Hardlinking of duplicated bytecode makes sense " "only for more than one optimization level.")) if args.ddir is not None and ( args.stripdir is not None or args.prependdir is not None ): parser.error("-d cannot be used in combination with -s or -p") # if flist is provided then load it if args.flist: try: with (sys.stdin if args.flist=='-' else open(args.flist)) as f: for line in f: compile_dests.append(line.strip()) except OSError: if args.quiet < 2: print("Error reading file list {}".format(args.flist)) return False if args.workers is not None: args.workers = args.workers or None if PY37 and args.invalidation_mode: ivl_mode = args.invalidation_mode.replace('-', '_').upper() invalidation_mode = py_compile.PycInvalidationMode[ivl_mode] else: invalidation_mode = None success = True try: if compile_dests: for dest in compile_dests: if os.path.isfile(dest): if not compile_file(dest, args.ddir, args.force, args.rx, args.quiet, args.legacy, invalidation_mode=invalidation_mode, stripdir=args.stripdir, prependdir=args.prependdir, optimize=args.opt_levels, limit_sl_dest=args.limit_sl_dest, hardlink_dupes=args.hardlink_dupes): success = False else: if not compile_dir(dest, maxlevels, args.ddir, args.force, args.rx, args.quiet, args.legacy, workers=args.workers, invalidation_mode=invalidation_mode, stripdir=args.stripdir, prependdir=args.prependdir, optimize=args.opt_levels, limit_sl_dest=args.limit_sl_dest, hardlink_dupes=args.hardlink_dupes): success = False return success else: return compile_path(legacy=args.legacy, force=args.force, quiet=args.quiet, invalidation_mode=invalidation_mode) except KeyboardInterrupt: if args.quiet < 2: print("\n[interrupted]") return False return True if __name__ == '__main__': exit_status = int(not main()) sys.exit(exit_status) redhat/brp-mangle-shebangs 0000755 00000010645 15043540723 0011566 0 ustar 00 #!/usr/bin/bash -eu # If using normal root, avoid changing anything. if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then exit 0 fi exclude_files="" exclude_files_from="" exclude_shebangs="" exclude_shebangs_from="" usage() { local verbose=$1 && shift local outfile=$1 && shift local status=$1 && shift ( echo 'usage: brp-mangle-shebangs [--files <regexp>] [--files-from <file>] [--shebangs <regexp>] [--shebangs-from <file>]' if [ "${verbose}" == "yes" ]; then echo ' --files: extended regexp of files to ignore' echo ' --files-from: file containing a list of extended regexps of files to ignore' echo ' --shebangs: extended regexp of shebangs to ignore' echo ' --shebangs-from: file containing a list of extended regexps of shebangs to ignore' fi ) >>${outfile} exit ${status} } while [ $# -gt 0 ] ; do case "$1" in --files) exclude_files="${2}" shift ;; --files=*) exclude_files="${1##--files=}" ;; --files-from) exclude_files_from="${2}" shift ;; --files-from=*) exclude_files_from="${1##--files-from=}" ;; --shebangs) exclude_shebangs="${2}" shift ;; --shebangs=*) exclude_shebangs="${1##--shebangs=}" ;; --shebangs-from) exclude_shebangs_from="${2}" shift ;; --shebangs-from=*) exclude_shebangs_from="${1##--shebangs-from=}" ;; --help|--usage|"-?"|-h) usage yes /dev/stdout 0 ;; *) echo "Unknown option \"${1}\"" 1>&2 usage no /dev/stderr 1 ;; esac shift done cd "$RPM_BUILD_ROOT" # Large packages such as kernel can have thousands of executable files. # We take care to not fork/exec thousands of "file"s and "grep"s, # but run just two of them. # (Take care to exclude filenames which would mangle "file" output). find -executable -type f ! -path '*:*' ! -path $'*\n*' \ | file -N --mime-type -f - \ | grep -P ".+(?=: (text/|application/javascript))" \ | { fail=0 while IFS= read -r line; do f=${line%%:*} # Remove the dot path="${f#.}" if [ -n "$exclude_files" ]; then echo "$path" | grep -q -E "$exclude_files" && continue fi if [ -n "$exclude_files_from" ]; then echo "$path" | grep -q -E -f "$exclude_files_from" && continue fi if ! read shebang_line < "$f"; then echo >&2 "*** WARNING: Cannot read the first line from $f, removing executable bit" ts=$(stat -c %y "$f") chmod -x "$f" touch -d "$ts" "$f" continue fi orig_shebang="${shebang_line#\#!}" if [ "$orig_shebang" = "$shebang_line" ]; then echo >&2 "*** WARNING: $f is executable but has no shebang, removing executable bit" ts=$(stat -c %y "$f") chmod -x "$f" touch -d "$ts" "$f" continue fi # Trim spaces while shebang="${orig_shebang// / }"; [ "$shebang" != "$orig_shebang" ]; do orig_shebang="$shebang" done # Treat "#! /path/to " as "#!/path/to" orig_shebang="${orig_shebang# }" shebang="$orig_shebang" if [ -z "$shebang" ]; then echo >&2 "*** WARNING: $f is executable but has empty shebang, removing executable bit" ts=$(stat -c %y "$f") chmod -x "$f" touch -d "$ts" "$f" continue fi if [ -n "${shebang##/*}" ]; then echo >&2 "*** ERROR: $f has shebang which doesn't start with '/' ($shebang)" fail=1 continue fi if ! { echo "$shebang" | grep -q -P "^/(?:usr/)?(?:bin|sbin)/"; }; then continue fi # Replace "special" env shebang: # /whatsoever/env -whatever /whatever/foo → /whatever/foo shebang=$(echo "$shebang" | sed -r -e 's@^(.+)/env( -[^ ]+)* /(.+)$@/\3@') # /whatsoever/env -whatever foo → /whatsoever/foo shebang=$(echo "$shebang" | sed -r -e 's@^(.+/)env( -[^ ]+)* (.+)$@\1\3@') # If the shebang now starts with /bin, change it to /usr/bin # https://bugzilla.redhat.com/show_bug.cgi?id=1581757 shebang=$(echo "$shebang" | sed -r -e 's@^/bin/@/usr/bin/@') # Replace ambiguous python with python2 py_shebang=$(echo "$shebang" | sed -r -e 's@/usr/bin/python(\s|$)@/usr/bin/python2\1@') if [ "$shebang" != "$py_shebang" ]; then echo >&2 "*** ERROR: ambiguous python shebang in $path: #!$orig_shebang. Change it to python3 (or python2) explicitly." fail=1 elif [ "#!$shebang" != "#!$orig_shebang" ]; then echo "mangling shebang in $path from $orig_shebang to #!$shebang" ts=$(stat -c %y "$f") sed -i -e "1c #!$shebang" "$f" touch -d "$ts" "$f" fi done exit $fail } redhat/rpmrc 0000644 00000013025 15043540723 0007065 0 ustar 00 include: /usr/lib/rpm/rpmrc optflags: i386 %{__global_compiler_flags} -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection optflags: i486 %{__global_compiler_flags} -m32 -march=i486 -fasynchronous-unwind-tables -fstack-clash-protection optflags: i586 %{__global_compiler_flags} -m32 -march=i586 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection optflags: i686 %{__global_compiler_flags} -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection optflags: athlon %{__global_compiler_flags} -m32 -march=athlon -fasynchronous-unwind-tables -fstack-clash-protection optflags: ia64 %{__global_compiler_flags} optflags: x86_64 %{__global_compiler_flags} -m64 %{__cflags_arch_x86_64} -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection optflags: alpha %{__global_compiler_flags} -mieee optflags: alphaev5 %{__global_compiler_flags} -mieee -mcpu=ev5 optflags: alphaev56 %{__global_compiler_flags} -mieee -mcpu=ev56 optflags: alphapca56 %{__global_compiler_flags} -mieee -mcpu=pca56 optflags: alphaev6 %{__global_compiler_flags} -mieee -mcpu=ev6 optflags: alphaev67 %{__global_compiler_flags} -mieee -mcpu=ev67 optflags: sparc %{__global_compiler_flags} -m32 -mcpu=v7 -mtune=ultrasparc optflags: sparcv8 %{__global_compiler_flags} -m32 -mcpu=v8 optflags: sparcv9 %{__global_compiler_flags} -m32 -mcpu=ultrasparc optflags: sparcv9v %{__global_compiler_flags} -m32 -mcpu=niagara optflags: sparc64 %{__global_compiler_flags} -m64 -mcpu=ultrasparc optflags: sparc64v %{__global_compiler_flags} -m64 -mcpu=niagara optflags: m68k %{__global_compiler_flags} optflags: ppc %{__global_compiler_flags} -m32 -fasynchronous-unwind-tables optflags: ppciseries %{__global_compiler_flags} -m32 optflags: ppcpseries %{__global_compiler_flags} -m32 optflags: ppc64 %{__global_compiler_flags} -m64 -fasynchronous-unwind-tables -fstack-clash-protection optflags: ppc64p7 %{__global_compiler_flags} -m64 -O3 -mcpu=power7 -mtune=power7 -fasynchronous-unwind-tables -fstack-clash-protection optflags: ppc64le %{__global_compiler_flags} -m64 %{__cflags_arch_ppc64le} -fasynchronous-unwind-tables -fstack-clash-protection optflags: ppc64iseries %{__global_compiler_flags} -m64 optflags: ppc64pseries %{__global_compiler_flags} -m64 optflags: ppc8260 %{__global_compiler_flags} -m32 optflags: ppc8560 %{__global_compiler_flags} -m32 optflags: parisc %{__global_compiler_flags} -mpa-risc-1-0 optflags: hppa1.0 %{__global_compiler_flags} -mpa-risc-1-0 optflags: hppa1.1 %{__global_compiler_flags} -mpa-risc-1-0 optflags: hppa1.2 %{__global_compiler_flags} -mpa-risc-1-0 optflags: hppa2.0 %{__global_compiler_flags} -mpa-risc-1-0 optflags: mips %{__global_compiler_flags} -march=mips32r2 -mfpxx optflags: mipsel %{__global_compiler_flags} -march=mips32r2 -mfpxx optflags: mips64 %{__global_compiler_flags} -march=mips64r2 -mabi=64 optflags: mips64el %{__global_compiler_flags} -march=mips64r2 -mabi=64 optflags: mipsr6 %{__global_compiler_flags} -march=mips32r6 optflags: mipsr6el %{__global_compiler_flags} -march=mips32r6 optflags: mips64r6 %{__global_compiler_flags} -march=mips64r6 optflags: mips64r6el %{__global_compiler_flags} -march=mips64r6 optflags: armv3l %{__global_compiler_flags} -fsigned-char -march=armv3 optflags: armv4b %{__global_compiler_flags} -fsigned-char -march=armv4 optflags: armv4l %{__global_compiler_flags} -fsigned-char -march=armv4 optflags: armv4tl %{__global_compiler_flags} -march=armv4t optflags: armv5tel %{__global_compiler_flags} -march=armv5te -mfloat-abi=soft optflags: armv5tejl %{__global_compiler_flags} -march=armv5te -mfloat-abi=soft optflags: armv6l %{__global_compiler_flags} -march=armv6 -mfloat-abi=soft optflags: armv6hl %{__global_compiler_flags} -march=armv6 -mfpu=vfp -mfloat-abi=hard optflags: armv6hnl %{__global_compiler_flags} -march=armv6 -mfpu=neon -mfloat-abi=hard optflags: armv7l %{__global_compiler_flags} -march=armv7-a -mfloat-abi=soft optflags: armv7hl %{__global_compiler_flags} -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard optflags: armv7hnl %{__global_compiler_flags} -march=armv7-a -mfpu=neon -mfloat-abi=hard optflags: atarist %{__global_compiler_flags} optflags: atariste %{__global_compiler_flags} optflags: ataritt %{__global_compiler_flags} optflags: falcon %{__global_compiler_flags} optflags: atariclone %{__global_compiler_flags} optflags: milan %{__global_compiler_flags} optflags: hades %{__global_compiler_flags} optflags: s390 %{__global_compiler_flags} -m31 %{__cflags_arch_s390x} -fasynchronous-unwind-tables optflags: s390x %{__global_compiler_flags} -m64 %{__cflags_arch_s390x} -fasynchronous-unwind-tables -fstack-clash-protection optflags: aarch64 %{__global_compiler_flags} -fasynchronous-unwind-tables %[ "%{toolchain}" == "gcc" ? "-fstack-clash-protection" : "" ] optflags: riscv64 %{__global_compiler_flags} -fasynchronous-unwind-tables %[ "%{toolchain}" == "gcc" ? "-fstack-clash-protection" : "" ] # set build arch to fedora buildarches on hardware capable of running it # saves having to do rpmbuild --target= buildarchtranslate: athlon: i686 buildarchtranslate: geode: i686 buildarchtranslate: pentium4: i686 buildarchtranslate: pentium3: i686 buildarchtranslate: i686: i686 buildarchtranslate: i586: i586 buildarchtranslate: sparcv9: sparcv9 buildarchtranslate: sparcv9v: sparcv9 buildarchtranslate: armv5tejl: armv5tel buildarchtranslate: armv6l: armv5tel buildarchtranslate: armv7l: armv5tel buildarchtranslate: armv7hl: armv7hl buildarchtranslate: armv7hnl: armv7hl redhat/config.sub 0000755 00000106726 15043540723 0010015 0 ustar 00 #!/usr/bin/sh # Configuration validation subroutine script. # Copyright 1992-2016 Free Software Foundation, Inc. timestamp='2016-09-05' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see <http://www.gnu.org/licenses/>. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # Please send patches to <config-patches@gnu.org>. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to <config-patches@gnu.org>." version="\ GNU config.sub ($timestamp) Copyright 1992-2016 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo $1 exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \ kopensolaris*-gnu* | cloudabi*-eabi* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; android-linux) os=-linux-android basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis | -knuth | -cray | -microblaze*) os= basic_machine=$1 ;; -bluegene*) os=-cnk ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*178) os=-lynxos178 ;; -lynx*5) os=-lynxos5 ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ | aarch64 | aarch64_be \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ | arc | arceb \ | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ | avr | avr32 \ | ba \ | be32 | be64 \ | bfin \ | c4x | c8051 | clipper \ | d10v | d30v | dlx | dsp16xx \ | e2k | epiphany \ | fido | fr30 | frv | ft32 \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | hexagon \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | k1om \ | le32 | le64 \ | lm32 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64octeon | mips64octeonel \ | mips64orion | mips64orionel \ | mips64r5900 | mips64r5900el \ | mips64vr | mips64vrel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa32r6 | mipsisa32r6el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64r6 | mipsisa64r6el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipsr5900 | mipsr5900el \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | moxie \ | mt \ | msp430 \ | nds32 | nds32le | nds32be \ | nios | nios2 | nios2eb | nios2el \ | ns16k | ns32k \ | open8 | or1k | or1knd | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle \ | pyramid \ | riscv32 | riscv64 \ | rl78 | rx \ | score \ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu \ | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ | ubicom32 \ | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ | visium \ | we32k \ | x86 | xc16x | xstormy16 | xtensa \ | z8k | z80) basic_machine=$basic_machine-unknown ;; c54x) basic_machine=tic54x-unknown ;; c55x) basic_machine=tic55x-unknown ;; c6x) basic_machine=tic6x-unknown ;; leon|leon[3-9]) basic_machine=sparc-$basic_machine ;; m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip) basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; ms1) basic_machine=mt-unknown ;; strongarm | thumb | xscale) basic_machine=arm-unknown ;; xgate) basic_machine=$basic_machine-unknown os=-none ;; xscaleeb) basic_machine=armeb-unknown ;; xscaleel) basic_machine=armel-unknown ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | aarch64-* | aarch64_be-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | ba-* \ | be32-* | be64-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* \ | c8051-* | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | e2k-* | elxsi-* \ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | hexagon-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | k1om-* \ | le32-* | le64-* \ | lm32-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ | microblaze-* | microblazeel-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64octeon-* | mips64octeonel-* \ | mips64orion-* | mips64orionel-* \ | mips64r5900-* | mips64r5900el-* \ | mips64vr-* | mips64vrel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa32r6-* | mipsisa32r6el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64r6-* | mipsisa64r6el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipsr5900-* | mipsr5900el-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nds32-* | nds32le-* | nds32be-* \ | nios-* | nios2-* | nios2eb-* | nios2el-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | open8-* \ | or1k*-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ | pyramid-* \ | riscv32-* | riscv64-* \ | rl78-* | romp-* | rs6000-* | rx-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \ | tahoe-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tile*-* \ | tron-* \ | ubicom32-* \ | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ | vax-* \ | visium-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* \ | xstormy16-* | xtensa*-* \ | ymp-* \ | z8k-* | z80-*) ;; # Recognize the basic CPU types without company name, with glob match. xtensa*) basic_machine=$basic_machine-unknown ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) basic_machine=i386-unknown os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; abacus) basic_machine=abacus-unknown ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aros) basic_machine=i386-pc os=-aros ;; asmjs) basic_machine=asmjs-unknown ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; blackfin) basic_machine=bfin-unknown os=-linux ;; blackfin-*) basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; bluegene*) basic_machine=powerpc-ibm os=-cnk ;; c54x-*) basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c55x-*) basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c6x-*) basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c90) basic_machine=c90-cray os=-unicos ;; cegcc) basic_machine=arm-unknown os=-cegcc ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16 | cr16-*) basic_machine=cr16-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; dicos) basic_machine=i686-pc os=-dicos ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; e500v[12]) basic_machine=powerpc-unknown os=$os"spe" ;; e500v[12]-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` os=$os"spe" ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; leon-*|leon[3-9]-*) basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'` ;; m68knommu) basic_machine=m68k-unknown os=-linux ;; m68knommu-*) basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; microblaze*) basic_machine=microblaze-xilinx ;; mingw64) basic_machine=x86_64-pc os=-mingw64 ;; mingw32) basic_machine=i686-pc os=-mingw32 ;; mingw32ce) basic_machine=arm-unknown os=-mingw32ce ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; moxiebox) basic_machine=moxie-unknown os=-moxiebox ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; msys) basic_machine=i686-pc os=-msys ;; mvs) basic_machine=i370-ibm os=-mvs ;; nacl) basic_machine=le32-unknown os=-nacl ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; neo-tandem) basic_machine=neo-tandem ;; nse-tandem) basic_machine=nse-tandem ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; parisc) basic_machine=hppa-unknown os=-linux ;; parisc-*) basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc | ppcbe) basic_machine=powerpc-unknown ;; ppc-* | ppcbe-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rdos | rdos64) basic_machine=x86_64-pc os=-rdos ;; rdos32) basic_machine=i386-pc os=-rdos ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sde) basic_machine=mipsisa32-sde os=-elf ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh5el) basic_machine=sh5le-unknown ;; sh64) basic_machine=sh64-unknown ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; strongarm-* | thumb-*) basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tile*) basic_machine=$basic_machine-unknown os=-linux-gnu ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; v810 | necv810) basic_machine=v810-nec os=-none ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; w65*) basic_machine=w65-wdc os=-none ;; w89k-*) basic_machine=hppa1.1-winbond os=-proelf ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; xscale-* | xscalee[bl]-*) basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; z80-*-coff) basic_machine=z80-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; mmix) basic_machine=mmix-knuth ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -auroraux) os=-auroraux ;; -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ | -sym* | -kopensolaris* | -plan9* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* | -aros* | -cloudabi* | -sortix* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* | -cegcc* \ | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ | -linux-newlib* | -linux-musl* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \ | -onefs* | -tirtos* | -phoenix*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -zvmoe) os=-zvmoe ;; -dicos*) os=-dicos ;; -nacl*) ;; -ios) ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in score-*) os=-elf ;; spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; c8051-*) os=-elf ;; hexagon-*) os=-elf ;; tic54x-*) os=-coff ;; tic55x-*) os=-coff ;; tic6x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 ;; m68*-cisco) os=-aout ;; mep-*) os=-elf ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -cnk*|-aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: redhat/redhat-annobin-plugin-select.sh 0000755 00000014066 15043540723 0014026 0 ustar 00 #!/usr/bin/sh # This is a script to select which GCC spec file fragment # should be the destination of the redhat-annobin-cc1 symlink. # Author: Nick Clifton <nickc@redhat.com> # Copyright (c) 2021-2022 Red Hat. # # This is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published # by the Free Software Foundation; either version 2, or (at your # option) any later version. # It is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # Usage: # redhat-annobin-plugin-select [script-dir] # # If script-dir is not provided then /usr/lib/rpm/redhat is used # as the location where all of the annobin plugin selection files # can be found. if test "x$1" = "x" ; then rrcdir=/usr/lib/rpm/redhat else rrcdir=$1 fi # Set this variable to non-zero to enable the generation of debugging # messages. debug=0 # Decide which version of the annobin plugin for gcc should be used. # There are two possible versions, one created by the annobin package and one # created by the gcc package. The logic selects the gcc version unless both # have been built by the same version of the compiler. In that case the # annobin version is selected instead. # # The point of all this is that the annobin plugin is very sensitive to # mismatches with the version of gcc that built it. If the plugin is built # by version A of gcc, but then run on version B of gcc, it is possible for # the plugin to misbehave, which then causes problems if gating tests examine # the plugin's output. (This has happened more than once in RHEL...). # # So the plugin is built both by gcc and by the annobin package. This means # that whenever gcc is updated a fresh plugin is built, and the logic below # will select that version. But in order to allow annobin development to # proceed independtently of gcc, the annobin package can also update its # version of the plugin, and the logic will select this new version. # This is where the annobin package stores the information on the version # of gcc that built the annobin plugin. aver=`gcc --print-file-name=plugin`/annobin-plugin-version-info # This is where the gcc package stores its version information. gver=`gcc --print-file-name=rpmver` aplugin=`gcc --print-file-name=plugin`/annobin.so.0.0.0 gplugin=`gcc --print-file-name=plugin`/gcc-annobin.so.0.0.0 # This is the file that needs to be updated when either of those version # files changes. rac1=redhat-annobin-cc1 # This is the GCC spec file fragment that selects the gcc-built version of # the annobin plugin select_gcc=redhat-annobin-select-gcc-built-plugin # This is the GCC spec file fragment that selects the annobin-built version # of the annobin plugin select_annobin=redhat-annobin-select-annobin-built-plugin install_annobin_version=0 install_gcc_version=0 if [ -f $aplugin ] then if [ -f $gplugin ] then if [ $debug -eq 1 ] then echo " redhat-rpm-config: Both plugins exist, checking version information" fi if [ -f $gver ] then if [ -f $aver ] then if [ $debug -eq 1 ] then echo " redhat-rpm-config: Both plugin version files exist - comparing..." fi # Get the first line from the version info files. This is just in # vase there are extra lines in the files. avers=`head --lines=1 $aver` gvers=`head --lines=1 $gver` if [ $debug -eq 1 ] then echo " redhat-rpm-config: Annobin plugin built by gcc $avers" echo " redhat-rpm-config: GCC plugin built by gcc $gvers" fi # If both plugins were built by the same version of gcc then select # the one from the annobin package (in case it is built from newer # sources). If the plugin builder versions differ, select the gcc # built version instead. This assumes that the gcc built version # always matches the installed gcc, which should be true. if [ $avers = $gvers ] then if [ $debug -eq 1 ] then echo " redhat-rpm-config: Both plugins built by the same compiler - using annobin-built plugin" fi install_annobin_version=1 else if [ $debug -eq 1 ] then echo " redhat-rpm-config: Versions differ - using gcc-built plugin" fi install_gcc_version=1 fi else if [ $debug -eq 1 ] then echo " redhat-rpm-config: Annobin version file does not exist, using gcc-built plugin" fi install_gcc_version=1 fi else if [ -f $aver ] then # FIXME: This is suspicious. If the installed GCC does not supports plugins # then enabling the annobin plugin will not work. if [ $debug -eq 1 ] then echo " redhat-rpm-config: GCC plugin version file does not exist, using annobin-built plugin" fi install_annobin_version=1 else if [ $debug -eq 1 ] then echo " redhat-rpm-config: Neither version file exists - playing safe and using gcc-built plugin" echo " redhat-rpm-config: Note: expected to find $aver and/or $gver" fi install_gcc_version=1 fi fi else if [ $debug -eq 1 ] then echo " redhat-rpm-config: Only the annobin plugin exists - using that" fi install_annobin_version=1 fi else if [ -f $gplugin ] then if [ $debug -eq 1 ] then echo " redhat-rpm-config: Only the gcc plugin exists - using that" fi else if [ $debug -eq 1 ] then echo " redhat-rpm-config: Neither plugin exists - playing safe and using gcc-built plugin" echo " redhat-rpm-config: Note: expected to find $aplugin and/or $gplugin" fi fi install_gcc_version=1 fi if [ $install_annobin_version -eq 1 ] then if [ $debug -eq 1 ] then echo " redhat-rpm-config: Installing annobin version of $rac1" fi pushd $rrcdir > /dev/null rm -f $rac1 ln -s $select_annobin "$rac1" popd > /dev/null else if [ $install_gcc_version -eq 1 ] then if [ $debug -eq 1 ] then echo " redhat-rpm-config: Installing gcc version of $rac1" fi pushd $rrcdir > /dev/null rm -f $rac1 ln -s $select_gcc $rac1 popd > /dev/null fi fi redhat/redhat-hardened-clang.cfg 0000444 00000000006 15043540723 0012572 0 ustar 00 -fPIE redhat/rpmsort 0000755 00000004164 15043540723 0007457 0 ustar 00 #! /usr/bin/perl -w # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, # MA 02110-1301 USA. use Getopt::Long qw(:config gnu_getopt); sub rpm_cmp_versions { my ($evr1, $evr2) = @_; sub _rpm_cmp { my ($s1, $s2) = @_; return defined $s1 <=> defined $s2 unless defined $s1 && defined $s2; my ($r, $x1, $x2); do { $s1 =~ s/^[^a-zA-Z0-9]+//; $s2 =~ s/^[^a-zA-Z0-9]+//; if ($s1 =~ /^\d/ || $s2 =~ /^\d/) { $s1 =~ s/^0*(\d*)//; $x1 = $1; $s2 =~ s/^0*(\d*)//; $x2 = $1; $r = length $x1 <=> length $x2 || $x1 cmp $x2; } else { $s1 =~ s/^([a-zA-Z]*)//; $x1 = $1; $s2 =~ s/^([a-zA-Z]*)//; $x2 = $1; return 0 if $x1 eq '' && $x2 eq ''; $r = $x1 cmp $x2; } } until $r; return $r; } my ($e1, $v1, $r1) = $evr1 =~ /^(?:(\d*):)?(.*?)(?:-([^-]*))?$/; my ($e2, $v2, $r2) = $evr2 =~ /^(?:(\d*):)?(.*?)(?:-([^-]*))?$/; my $r = _rpm_cmp($e1 || 0, $e2 || 0); $r = _rpm_cmp($v1, $v2) unless $r; $r = _rpm_cmp($r1, $r2) unless $r; return $r; } my $reorder = sub { return @_ }; my $key = 0; GetOptions ("r|reverse" => sub { $reorder = sub { return reverse @_ } }, "k|key=i" => \$key) or do { print STDERR "Usage\n"; exit 1; }; if ($key == 0) { # Sort by entire lines map { print } &$reorder(sort { rpm_cmp_versions($a, $b) } <>); } else { # Sort by field $key my @data = map { [(split)[$key-1], $_] } <>; map { print } &$reorder(map { $_->[1] } sort { rpm_cmp_versions($a->[0], $b->[0]) } @data); } redhat/brp-llvm-compile-lto-elf 0000755 00000003603 15043540723 0012467 0 ustar 00 #!/usr/bin/bash -eu if [ -z "$RPM_BUILD_ROOT" ] || [ "$RPM_BUILD_ROOT" = "/" ]; then exit 0 fi CLANG_FLAGS=$@ NCPUS=${RPM_BUILD_NCPUS:-1} check_convert_bitcode () { local file_name=$(realpath ${1}) local file_type=$(file ${file_name}) shift CLANG_FLAGS="$@" if [[ "${file_type}" == *"LLVM IR bitcode"* ]]; then # Check the output of llvm-strings for the command line, which is in the LLVM bitcode because # we pass -frecord-gcc-switches. # Check for a line that has "-flto" after (or without) "-fno-lto". llvm-strings ${file_name} | while read line ; do flto=$(echo $line | grep -o -b -e -flto | tail -n 1 | cut -d : -f 1) fnolto=$(echo $line | grep -o -b -e -fno-lto | tail -n 1 | cut -d : -f 1) if test -n "$flto" && { test -z "$fnolto" || test "$flto" -gt "$fnolto"; } ; then echo "Compiling LLVM bitcode file ${file_name}." clang ${CLANG_FLAGS} -fno-lto -Wno-unused-command-line-argument \ -x ir ${file_name} -c -o ${file_name} break fi done elif [[ "${file_type}" == *"current ar archive"* ]]; then echo "Unpacking ar archive ${file_name} to check for LLVM bitcode components." # create archive stage for objects local archive_stage=$(mktemp -d) local archive=${file_name} pushd ${archive_stage} ar x ${archive} for archived_file in $(find -not -type d); do check_convert_bitcode ${archived_file} ${CLANG_FLAGS} echo "Repacking ${archived_file} into ${archive}." ar r ${archive} ${archived_file} done popd fi } echo "Checking for LLVM bitcode artifacts" export -f check_convert_bitcode # Deduplicate by device:inode to avoid processing hardlinks in parallel. find "$RPM_BUILD_ROOT" -type f -name "*.[ao]" -printf "%D:%i %p\n" | \ awk '!seen[$1]++' | cut -d" " -f2- | \ xargs -d"\n" -r -n1 -P$NCPUS sh -c "check_convert_bitcode \$@ $CLANG_FLAGS" ARG0 redhat/brp-python-bytecompile 0000755 00000013222 15043540723 0012360 0 ustar 00 #!/usr/bin/bash errors_terminate=$2 # Usage of %_python_bytecompile_extra is not allowed anymore # See: https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_3 # Therefore $1 ($default_python) is not needed and is invoked with "" by default. # $default_python stays in the arguments for backward compatibility and $extra for the following check: extra=$3 if [ 0$extra -eq 1 ]; then echo -e "%_python_bytecompile_extra is discontinued, use %py_byte_compile instead.\nSee: https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_3" >/dev/stderr exit 1 fi # If using normal root, avoid changing anything. if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then exit 0 fi # Figure out how deep we need to descend. We could pick an insanely high # number and hope it's enough, but somewhere, somebody's sure to run into it. depth=`(find "$RPM_BUILD_ROOT" -type f -name "*.py" -print0 ; echo /) | \ xargs -0 -n 1 dirname | sed 's,[^/],,g' | sort -u | tail -n 1 | wc -c` if [ -z "$depth" -o "$depth" -le "1" ]; then exit 0 fi # This function now implements Python byte-compilation in three different ways: # Python >= 3.4 and < 3.9 uses a new module compileall2 - https://github.com/fedora-python/compileall2 # Python < 3.4 (inc. Python 2) uses compileall module from stdlib with some hacks # When we drop support for Python 2, we'd be able to use all compileall2 features like: # - -s and -p options to manipulate with a path baked into pyc files instead of $real_libdir # - -o 0 -o 1 to produce multiple files in one run - each with a different optimization level - instead of $options # - removed useless $depth - both compileall and compileall2 are limited by sys.getrecursionlimit() # These changes will make this script much simpler # In Python >= 3.9, compileall2 was merged back to standard library (compileall) so we can use it directly again. function python_bytecompile() { local options=$1 local python_binary=$2 local exclude=$3 local python_libdir=$4 local depth=$5 # Not used for Python >= 3.4 local real_libdir=$6 # Not used for Python >= 3.4 python_version=$($python_binary -c "import sys; sys.stdout.write('{0.major}{0.minor}'.format(sys.version_info))") # # Python 3.9 and higher # if [ "$python_version" -ge 39 ]; then [ ! -z $exclude ] && exclude="-x '$exclude'" # -q disables verbose output # -f forces the process to overwrite existing compiled files # -x excludes paths defined by regex # -e excludes symbolic links pointing outside the build root # -x and -e together implements the same functionality as the Filter class below # -s strips $RPM_BUILD_ROOT from the path # -p prepends the leading slash to the path to make it absolute $python_binary -B $options -m compileall -q -f $exclude -s $RPM_BUILD_ROOT -p / -e $RPM_BUILD_ROOT --invalidation-mode=timestamp $python_libdir # # Python 3.4 and higher # elif [ "$python_version" -ge 34 ]; then [ ! -z $exclude ] && exclude="-x '$exclude'" # /usr/lib/rpm/redhat/ contains compileall2 Python module # -q disables verbose output # -f forces the process to overwrite existing compiled files # -x excludes paths defined by regex # -e excludes symbolic links pointing outside the build root # -x and -e together implements the same functionality as the Filter class below # -s strips $RPM_BUILD_ROOT from the path # -p prepends the leading slash to the path to make it absolute PYTHONPATH=/usr/lib/rpm/redhat/ $python_binary -B $options -m compileall2 -q -f $exclude -s $RPM_BUILD_ROOT -p / -e $RPM_BUILD_ROOT $python_libdir else # # Python 3.3 and lower (incl. Python 2) # cat << EOF | $python_binary $options import compileall, sys, os, re python_libdir = "$python_libdir" depth = $depth real_libdir = "$real_libdir" build_root = "$RPM_BUILD_ROOT" exclude = r"$exclude" class Filter: def search(self, path): ret = not os.path.realpath(path).startswith(build_root) if exclude: ret = ret or re.search(exclude, path) return ret sys.exit(not compileall.compile_dir(python_libdir, depth, real_libdir, force=1, rx=Filter(), quiet=1)) EOF fi } # .pyc/.pyo files embed a "magic" value, identifying the ABI version of Python # bytecode that they are for. # # The files below RPM_BUILD_ROOT could be targeting multiple versions of # python (e.g. a single build that emits several subpackages e.g. a # python26-foo subpackage, a python31-foo subpackage etc) # # Support this by assuming that below each /usr/lib/python$VERSION/, all # .pyc/.pyo files are to be compiled for /usr/bin/python$VERSION. # # For example, below /usr/lib/python2.6/, we're targeting /usr/bin/python2.6 # and below /usr/lib/python3.1/, we're targeting /usr/bin/python3.1 # Disable Python hash seed randomization # This should help with byte-compilation reproducibility: https://bugzilla.redhat.com/show_bug.cgi?id=1686078 export PYTHONHASHSEED=0 shopt -s nullglob for python_libdir in `find "$RPM_BUILD_ROOT" -type d|grep -E "/(usr|app)/lib(64)?/python[0-9]\.[0-9]+$"`; do python_binary=$(basename $python_libdir) real_libdir=${python_libdir/$RPM_BUILD_ROOT/} echo "Bytecompiling .py files below $python_libdir using $python_binary" # Generate normal (.pyc) byte-compiled files. python_bytecompile "" "$python_binary" "" "$python_libdir" "$depth" "$real_libdir" if [ $? -ne 0 -a 0$errors_terminate -ne 0 ]; then # One or more of the files had a syntax error exit 1 fi # Generate optimized (.pyo) byte-compiled files. python_bytecompile "-O" "$python_binary" "" "$python_libdir" "$depth" "$real_libdir" if [ $? -ne 0 -a 0$errors_terminate -ne 0 ]; then # One or more of the files had a syntax error exit 1 fi done redhat/brp-fix-pyc-reproducibility 0000755 00000001060 15043540723 0013310 0 ustar 00 #!/usr/bin/bash -e # If using normal root, avoid changing anything. if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then exit 0 fi # Defined as %py_reproducible_pyc_path macro and passed here as # the first command-line argument path_to_fix=$1 # First, check that the parser is available: if [ ! -x /usr/bin/marshalparser ]; then echo "ERROR: If %py_reproducible_pyc_path is defined, you have to also BuildRequire: /usr/bin/marshalparser !" exit 1 fi find "$path_to_fix" -type f -name "*.pyc" | xargs /usr/bin/marshalparser --fix --overwrite redhat/find-requires 0000755 00000001765 15043540723 0010532 0 ustar 00 #!/usr/bin/bash # # Auto-generate requirements for executables (both ELF and a.out) and library # sonames, script interpreters, and perl modules. # ulimit -c 0 filelist=`sed "s/[]['\"*?{}]/\\\\\&/g"` [ -x /usr/lib/rpm/rpmdeps -a -n "$filelist" ] && \ echo $filelist | tr '[:blank:]' \\n | /usr/lib/rpm/rpmdeps --requires # # --- Kernel module imported symbols # # Since we don't (yet) get passed the name of the package being built, we # cheat a little here by looking first for a kernel, then for a kmod. # unset is_kmod for f in $filelist; do if [ $(echo "$f" | sed -r -ne 's:^.*/lib/modules/(.*)/(.*)\.ko(\.gz|\.bz2|\.xz)?$:\2:p') ] then is_kmod=1; elif [ $(echo "$f" | sed -r -ne 's:^.*/boot/(.*):\1:p') ] then unset is_kmod; break; fi done # Disabling for now while the Fedora kernel doesn't produce kABI deps. #[ -x /usr/lib/rpm/redhat/find-requires.ksyms ] && [ "$is_kmod" ] && # printf "%s\n" "${filelist[@]}" | /usr/lib/rpm/redhat/find-requires.ksyms exit 0 redhat/brp-strip-lto 0000755 00000001056 15043540723 0010464 0 ustar 00 #!/usr/bin/sh # If using normal root, avoid changing anything. if [ -z "$RPM_BUILD_ROOT" ] || [ "$RPM_BUILD_ROOT" = "/" ]; then exit 0 fi STRIP=${1:-strip} NCPUS=${RPM_BUILD_NCPUS:-1} case `uname -a` in Darwin*) exit 0 ;; *) ;; esac # Strip ELF binaries find "$RPM_BUILD_ROOT" -type f -name '*.[ao]' \! -regex "$RPM_BUILD_ROOT/*usr/lib/debug.*" -print0 | \ eu-elfclassify --not-program --not-library --not-linux-kernel-module --stdin0 --print0 | xargs -0 -r -P$NCPUS -n32 sh -c "$STRIP -p -R .gnu.lto_* -R .gnu.debuglto_* -N __gnu_lto_v1 \"\$@\"" ARG0 redhat/config.guess 0000755 00000125647 15043540723 0010355 0 ustar 00 #!/usr/bin/sh # Attempt to guess a canonical system name. # Copyright 1992-2016 Free Software Foundation, Inc. timestamp='2016-10-02' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see <http://www.gnu.org/licenses/>. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. # # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess # # Please send patches to <config-patches@gnu.org>. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to <config-patches@gnu.org>." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright 1992-2016 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown case "${UNAME_SYSTEM}" in Linux|GNU|GNU/*) # If the system lacks a compiler, then just pick glibc. # We could probably try harder. LIBC=gnu eval $set_cc_for_build cat <<-EOF > $dummy.c #include <features.h> #if defined(__UCLIBC__) LIBC=uclibc #elif defined(__dietlibc__) LIBC=dietlibc #else LIBC=gnu #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` ;; esac # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ /sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || \ echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; earmv*) arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'` endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'` machine=${arch}${endian}-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently (or will in the future) and ABI. case "${UNAME_MACHINE_ARCH}" in earm*) os=netbsdelf ;; arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ELF__ then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # Determine ABI tags. case "${UNAME_MACHINE_ARCH}" in earm*) expr='s/^earmv[0-9]/-eabi/;s/eb$//' abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"` ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}${abi}" exit ;; *:Bitrig:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:LibertyBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` echo ${UNAME_MACHINE_ARCH}-unknown-libertybsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; *:Sortix:*:*) echo ${UNAME_MACHINE}-unknown-sortix exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE=alpha ;; "EV4.5 (21064)") UNAME_MACHINE=alpha ;; "LCA4 (21066/21068)") UNAME_MACHINE=alpha ;; "EV5 (21164)") UNAME_MACHINE=alphaev5 ;; "EV5.6 (21164A)") UNAME_MACHINE=alphaev56 ;; "EV5.6 (21164PC)") UNAME_MACHINE=alphapca56 ;; "EV5.7 (21164PC)") UNAME_MACHINE=alphapca57 ;; "EV6 (21264)") UNAME_MACHINE=alphaev6 ;; "EV6.7 (21264A)") UNAME_MACHINE=alphaev67 ;; "EV6.8CB (21264C)") UNAME_MACHINE=alphaev68 ;; "EV6.8AL (21264B)") UNAME_MACHINE=alphaev68 ;; "EV6.8CX (21264D)") UNAME_MACHINE=alphaev68 ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE=alphaev69 ;; "EV7 (21364)") UNAME_MACHINE=alphaev7 ;; "EV7.9 (21364A)") UNAME_MACHINE=alphaev79 ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` # Reset EXIT trap before exiting to avoid spurious non-zero exit code. exitcode=$? trap '' 0 exit $exitcode ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm*:riscos:*:*|arm*:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; s390x:SunOS:*:*) echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) echo i386-pc-auroraux${UNAME_RELEASE} exit ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) eval $set_cc_for_build SUN_ARCH=i386 # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. if [ "$CC_FOR_BUILD" != no_compiler_found ]; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH=x86_64 fi fi echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include <stdio.h> /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ [ ${TARGET_BINARY_INTERFACE}x = x ] then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include <sys/systemcfg.h> main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit ;; *:AIX:*:[4567]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/lslpp ] ; then IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH=hppa2.0n ;; 64) HP_ARCH=hppa2.0w ;; '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 esac ;; esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include <stdlib.h> #include <unistd.h> int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS="" $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = hppa2.0w ] then eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | grep -q __LP64__ then HP_ARCH=hppa2.0w else HP_ARCH=hppa64 fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include <unistd.h> int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) UNAME_PROCESSOR=`/usr/bin/uname -p` case ${UNAME_PROCESSOR} in amd64) echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; *:MINGW64*:*) echo ${UNAME_MACHINE}-pc-mingw64 exit ;; *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; *:MSYS*:*) echo ${UNAME_MACHINE}-pc-msys exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; *:Interix*:*) case ${UNAME_MACHINE} in x86) echo i586-pc-interix${UNAME_RELEASE} exit ;; authenticamd | genuineintel | EM64T) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; IA64) echo ia64-unknown-interix${UNAME_RELEASE} exit ;; esac ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; 8664:Windows_NT:*) echo x86_64-pc-mks exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; aarch64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; aarch64_be:Linux:*:*) UNAME_MACHINE=aarch64_be echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep -q ld.so.1 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; arc:Linux:*:* | arceb:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; arm*:Linux:*:*) eval $set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then echo ${UNAME_MACHINE}-unknown-linux-${LIBC} else if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi else echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf fi fi exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; cris:Linux:*:*) echo ${UNAME_MACHINE}-axis-linux-${LIBC} exit ;; crisv32:Linux:*:*) echo ${UNAME_MACHINE}-axis-linux-${LIBC} exit ;; e2k:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; frv:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; hexagon:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; i*86:Linux:*:*) echo ${UNAME_MACHINE}-pc-linux-${LIBC} exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; k1om:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; mips:Linux:*:* | mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef ${UNAME_MACHINE} #undef ${UNAME_MACHINE}el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=${UNAME_MACHINE}el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=${UNAME_MACHINE} #else CPU= #endif #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } ;; mips64el:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; openrisc*:Linux:*:*) echo or1k-unknown-linux-${LIBC} exit ;; or32:Linux:*:* | or1k*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; padre:Linux:*:*) echo sparc-unknown-linux-${LIBC} exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-${LIBC} exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; *) echo hppa-unknown-linux-${LIBC} ;; esac exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-${LIBC} exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-${LIBC} exit ;; ppc64le:Linux:*:*) echo powerpc64le-unknown-linux-${LIBC} exit ;; ppcle:Linux:*:*) echo powerpcle-unknown-linux-${LIBC} exit ;; riscv32:Linux:*:* | riscv64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux-${LIBC} exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; tile*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-${LIBC} exit ;; x86_64:Linux:*:*) echo ${UNAME_MACHINE}-pc-linux-${LIBC} exit ;; xtensa*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 exit ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` echo ${UNAME_MACHINE}-pc-isc$UNAME_REL elif /bin/uname -X 2>/dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i586. # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configure will decide that # this is a cross-build. echo i586-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says <Richard.M.Bartel@ccMail.Census.GOV> echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes <hewes@openmarket.com>. # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; BePC:Haiku:*:*) # Haiku running on Intel PC compatible. echo i586-pc-haiku exit ;; x86_64:Haiku:*:*) echo x86_64-unknown-haiku exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; SX-7:SUPER-UX:*:*) echo sx7-nec-superux${UNAME_RELEASE} exit ;; SX-8:SUPER-UX:*:*) echo sx8-nec-superux${UNAME_RELEASE} exit ;; SX-8R:SUPER-UX:*:*) echo sx8r-nec-superux${UNAME_RELEASE} exit ;; SX-ACE:SUPER-UX:*:*) echo sxace-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown eval $set_cc_for_build if test "$UNAME_PROCESSOR" = unknown ; then UNAME_PROCESSOR=powerpc fi if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then if [ "$CC_FOR_BUILD" != no_compiler_found ]; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then case $UNAME_PROCESSOR in i386) UNAME_PROCESSOR=x86_64 ;; powerpc) UNAME_PROCESSOR=powerpc64 ;; esac fi fi elif test "$UNAME_PROCESSOR" = i386 ; then # Avoid executing cc on OS X 10.9, as it ships with a stub # that puts up a graphical alert prompting to install # developer tools. Any system running Mac OS X 10.7 or # later (Darwin 11 and later) is required to have a 64-bit # processor. This is not true of the ARM version of Darwin # that Apple uses in portable devices. UNAME_PROCESSOR=x86_64 fi echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = x86; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NEO-?:NONSTOP_KERNEL:*:*) echo neo-tandem-nsk${UNAME_RELEASE} exit ;; NSE-*:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = 386; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'` exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; i*86:AROS:*:*) echo ${UNAME_MACHINE}-pc-aros exit ;; x86_64:VMkernel:*:*) echo ${UNAME_MACHINE}-unknown-esx exit ;; amd64:Isilon\ OneFS:*:*) echo x86_64-unknown-onefs exit ;; esac cat >&2 <<EOF $0: unable to guess system type This script (version $timestamp), has failed to recognize the operating system you are using. If your script is old, overwrite config.guess and config.sub with the latest versions from: http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess and http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub If $0 has already been updated, send the following data and any information you think might be pertinent to config-patches@gnu.org to provide the necessary information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: redhat/find-provides 0000755 00000002304 15043540723 0010514 0 ustar 00 #!/usr/bin/bash # This script reads filenames from STDIN and outputs any relevant provides # information that needs to be included in the package. if [ "$1" ] then package_name="$1" fi filelist=`sed "s/['\"]/\\\&/g"` [ -x /usr/lib/rpm/rpmdeps -a -n "$filelist" ] && echo $filelist | tr '[:blank:]' \\n | /usr/lib/rpm/rpmdeps --provides # # --- any other extra find-provides scripts for i in /usr/lib/rpm/redhat/find-provides.d/*.prov do [ -x $i ] && (echo $filelist | tr '[:blank:]' \\n | $i | sort -u) done # # --- Kernel module imported symbols # # Since we don't (yet) get passed the name of the package being built, we # cheat a little here by looking first for a kernel, then for a kmod. # is_kmod=1 for f in $filelist; do if [ $(echo "$f" | sed -r -ne 's:^.*/lib/modules/(.*)/(.*)\.ko(\.gz|\.bz2|\.xz)?$:\2:p') ] then is_kernel=1; fi if [ $(echo "$f" | sed -r -ne 's:^.*/boot/(.*):\1:p') ] then unset is_kmod; fi done if [ ! "$is_kernel" ] || [ "$package_name" == "kernel" ] then unset is_kmod fi [ -x /usr/lib/rpm/redhat/find-provides.ksyms ] && [ "$is_kmod" ] && printf "%s\n" "${filelist[@]}" | /usr/lib/rpm/redhat/find-provides.ksyms exit 0 redhat/kmodtool 0000755 00000022037 15043540723 0007600 0 ustar 00 #!/usr/bin/bash # kmodtool - Helper script for building kernel module RPMs # An original version appeared in Fedora. This version is # generally called only by the %kernel_module_package RPM macro # during the process of building Driver Update Packages (which # are also known as "kmods" in the Fedora community). # # Copyright (c) 2003-2010 Ville Skyttä <ville.skytta@iki.fi>, # Thorsten Leemhuis <fedora@leemhuis.info> # Jon Masters <jcm@redhat.com> # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, # distribute, sublicense, and/or sell copies of the Software, and to # permit persons to whom the Software is furnished to do so, subject to # the following conditions: # # The above copyright notice and this permission notice shall be # included in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # Changelog: # # 2010/07/28 - Add fixes for filelists in line with LF standard # - Remove now defunct "framepointer" kernel variant # - Change version to "rhel6-rh2" as a consequence. # # 2010/01/10 - Simplified for RHEL6. We are working on upstream # moving to a newer format and in any case do not # need to retain support for really old systems. shopt -s extglob myprog="kmodtool" myver="0.10.10_rhel9" knownvariants=@(debug|kdump|zfcpdump) kmod_name= kver= verrel= variant= get_verrel () { verrel=${1:-$(uname -r)} verrel=${verrel/%[.+]$knownvariants/} } print_verrel () { get_verrel "$@" echo "${verrel}" } get_variant () { get_verrel "$@" variant=${1:-$(uname -r)} variant=${variant/#$verrel?(.+)/} variant=${variant:-'""'} } print_variant () { get_variant $@ echo "${variant}" } # Detect flavor separator character. We have to do that due to # a systemd-tailored patch for kernel spec[1][2] introduced in Fedora and then # imported in RHEL 8 that broke all OOT kmod infrastructure for the flavored # kernels. # # [1] https://lists.fedoraproject.org/pipermail/kernel/2013-June/004262.html # [2] https://src.fedoraproject.org/rpms/kernel/c/faf25207dc86666a611c45ae3ffaf385c170bd2a # # $1 - kver # $2 - variant get_variant_char () { variant="$2" [ "$variant" != "default" ] || variant="" get_verrel "$1" variant_char="" [ -n "$variant" ] || return 0 # We expect that the flavored kernel is already installed in the buildroot variant_char="+" [ -e "/usr/src/kernels/${verrel}+${variant}" ] && return 0 variant_char="." } print_variant_char () { get_variant_char "$@" echo "${variant_char}" } print_kernel_source () { get_variant_char "$@" echo "/usr/src/kernels/${verrel}${variant_char}${variant}" } get_filelist() { local IFS=$'\n' filelist=($(cat)) if [ ${#filelist[@]} -gt 0 ]; then for ((n = 0; n < ${#filelist[@]}; n++)); do line="${filelist[n]}" line=$(echo "$line" \ | sed -e "s/%verrel/$verrel/g" \ | sed -e "s/%variant/$variant/g" \ | sed -e "s/%dashvariant/$dashvariant/g" \ | sed -e "s/%dotvariant/$dotvariant/g" \ | sed -e "s/\+%1/$dotvariant/g" \ | sed -e "s/\.%1/$dotvariant/g" \ | sed -e "s/\-%1/$dotvariant/g" \ | sed -e "s/%2/$verrel/g") echo "$line" done else echo "%defattr(644,root,root,755)" echo "/lib/modules/${verrel}${dotvariant}" fi } get_rpmtemplate () { local variant="${1}" get_variant_char "${verrel}" "${variant}" local dashvariant="${variant:+-${variant}}" local dotvariant="${variant:+${variant_char}${variant}}" echo "%package -n kmod-${kmod_name}${dashvariant}" if [ -z "$kmod_provides_summary" ]; then echo "Summary: ${kmod_name} kernel module(s)" fi if [ -z "$kmod_provides_group" ]; then echo "Group: System Environment/Kernel" fi if [ ! -z "$kmod_version" ]; then echo "Version: %{kmod_version}" fi if [ ! -z "$kmod_release" ]; then echo "Release: %{kmod_release}" fi cat <<EOF Provides: kernel-modules >= ${verrel}${dotvariant} Provides: kernel${dashvariant}-modules >= ${verrel} Provides: ${kmod_name}-kmod = %{?epoch:%{epoch}:}%{version}-%{release} Requires(post): /usr/sbin/depmod Requires(postun): /usr/sbin/depmod Requires(post): /usr/sbin/weak-modules Requires(postun): /usr/sbin/weak-modules EOF if [ "yes" != "$nobuildreqs" ] then cat <<EOF BuildRequires: kernel${dashvariant}-devel BuildRequires: kernel-abi-stablelists BuildRequires: redhat-rpm-config kernel-rpm-macros BuildRequires: elfutils-libelf-devel kmod EOF fi if [ "" != "$override_preamble" ] then cat "$override_preamble" fi cat <<EOF %description -n kmod-${kmod_name}${dashvariant} This package provides the ${kmod_name} kernel modules built for the Linux kernel ${verrel}${dotvariant} for the %{_target_cpu} family of processors. EOF ############################################################################## ## The following are not part of this script directly, they are scripts ## ## that will be executed by RPM during various stages of package processing ## ############################################################################## cat <<EOF %post -n kmod-${kmod_name}${dashvariant} if [ -e "/boot/System.map-${verrel}${dotvariant}" ]; then /usr/sbin/depmod -aeF "/boot/System.map-${verrel}${dotvariant}" "${verrel}${dotvariant}" > /dev/null || : fi modules=( \$(find /lib/modules/${verrel}${dotvariant}/extra/${kmod_name} | grep -E '\.ko(\.gz|\.bz2|\.xz|\.zst)?$') ) if [ -x "/usr/sbin/weak-modules" ]; then printf '%s\n' "\${modules[@]}" \ | /usr/sbin/weak-modules --add-modules fi EOF cat <<EOF %preun -n kmod-${kmod_name}${dashvariant} rpm -ql kmod-${kmod_name}${dashvariant}-%{kmod_version}-%{kmod_release}.$(arch) | grep -E '\.ko(\.gz|\.bz2|\.xz|\.zst)?$' > /var/run/rpm-kmod-${kmod_name}${dashvariant}-modules EOF cat <<EOF %postun -n kmod-${kmod_name}${dashvariant} if [ -e "/boot/System.map-${verrel}${dotvariant}" ]; then /usr/sbin/depmod -aeF "/boot/System.map-${verrel}${dotvariant}" "${verrel}${dotvariant}" > /dev/null || : fi modules=( \$(cat /var/run/rpm-kmod-${kmod_name}${dashvariant}-modules) ) rm /var/run/rpm-kmod-${kmod_name}${dashvariant}-modules if [ -x "/usr/sbin/weak-modules" ]; then printf '%s\n' "\${modules[@]}" \ | /usr/sbin/weak-modules --remove-modules fi EOF echo "%files -n kmod-${kmod_name}${dashvariant}" if [ "" == "$override_filelist" ]; then echo "%defattr(644,root,root,755)" echo "/lib/modules/${verrel}${dotvariant}" else cat "$override_filelist" | get_filelist fi } print_rpmtemplate () { kmod_name="${1}" shift kver="${1}" get_verrel "${1}" shift if [ -z "${kmod_name}" ] ; then echo "Please provide the kmodule-name as first parameter." >&2 exit 2 elif [ -z "${kver}" ] ; then echo "Please provide the kver as second parameter." >&2 exit 2 elif [ -z "${verrel}" ] ; then echo "Couldn't find out the verrel." >&2 exit 2 fi for variant in "$@" ; do if [ "default" == "$variant" ]; then get_rpmtemplate "" else get_rpmtemplate "${variant}" fi done } usage () { cat <<EOF You called: ${invocation} Usage: ${myprog} <command> <option>+ Commands: verrel <uname> - Get "base" version-release. variant <uname> - Get variant from uname. variant_char <uname> <variant> - Get kernel variant separator character. kernel_source <uname> <variant> - Get path to kernel source directory. rpmtemplate <mainpgkname> <uname> <variants> - Return a template for use in a source RPM version - Output version number and exit. EOF } invocation="$(basename ${0}) $@" while [ "${1}" ] ; do case "${1}" in verrel) shift print_verrel "$@" exit $? ;; variant) shift print_variant "$@" exit $? ;; variant_char) shift print_variant_char "$@" exit $? ;; kernel_source) shift print_kernel_source "$@" exit $? ;; rpmtemplate) shift print_rpmtemplate "$@" exit $? ;; version) echo "${myprog} ${myver}" exit 0 ;; *) echo "Error: Unknown option '${1}'." >&2 usage >&2 exit 2 ;; esac done # Local variables: # mode: sh # sh-indentation: 2 # indent-tabs-mode: nil # End: # ex: ts=2 sw=2 et redhat/dist.sh 0000755 00000003701 15043540723 0007321 0 ustar 00 #!/usr/bin/bash # dist.sh # Author: Tom "spot" Callaway <tcallawa@redhat.com> # License: GPL # This is a script to output the value for the %{dist} # tag. The dist tag takes the following format: .$type$num # Where $type is one of: el, fc, rh # (for RHEL, Fedora Core, and RHL, respectively) # And $num is the version number of the distribution. # NOTE: We can't detect Rawhide or Fedora Test builds properly. # If we successfully detect the version number, we output the # dist tag. Otherwise, we exit with no output. RELEASEFILE=/etc/redhat-release function check_num { MAINVER=`cut -d "(" -f 1 < $RELEASEFILE | \ sed -e "s/[^0-9.]//g" -e "s/$//g" | cut -d "." -f 1` echo $MAINVER | grep -q '[0-9]' && echo $MAINVER } function check_rhl { grep -q "Red Hat Linux" $RELEASEFILE && ! grep -q "Advanced" $RELEASEFILE && echo $DISTNUM } function check_rhel { egrep -q "(Enterprise|Advanced|CentOS|CloudLinux)" $RELEASEFILE && echo $DISTNUM } function check_fedora { grep -q Fedora $RELEASEFILE && echo $DISTNUM } DISTNUM=`check_num` DISTFC=`check_fedora` DISTRHL=`check_rhl` DISTRHEL=`check_rhel` if [ -n "$DISTNUM" ]; then if [ -n "$DISTFC" ]; then DISTTYPE=fc elif [ -n "$DISTRHEL" ]; then DISTTYPE=el elif [ -n "$DISTRHL" ]; then DISTTYPE=rhl fi fi [ -n "$DISTTYPE" -a -n "$DISTNUM" ] && DISTTAG=".${DISTTYPE}${DISTNUM}" case "$1" in --el) echo -n "$DISTRHEL" ;; --fc) echo -n "$DISTFC" ;; --rhl) echo -n "$DISTRHL" ;; --distnum) echo -n "$DISTNUM" ;; --disttype) echo -n "$DISTTYPE" ;; --help) printf "Usage: $0 [OPTIONS]\n" printf " Default mode is --dist. Possible options:\n" printf " --el\t\tfor RHEL version (if RHEL)\n" printf " --fc\t\tfor Fedora version (if Fedora)\n" printf " --rhl\t\tfor RHL version (if RHL)\n" printf " --dist\t\tfor distribution tag\n" printf " --distnum\tfor distribution number (major)\n" printf " --disttype\tfor distribution type\n" ;; *) echo -n "$DISTTAG" ;; esac redhat/gpgverify 0000755 00000007052 15043540723 0007752 0 ustar 00 #!/usr/bin/bash # Copyright 2018 B. Persson, Bjorn@Rombobeorn.se # # This material is provided as is, with absolutely no warranty expressed # or implied. Any use is at your own risk. # # Permission is hereby granted to use or copy this shellscript # for any purpose, provided the above notices are retained on all copies. # Permission to modify the code and to distribute modified code is granted, # provided the above notices are retained, and a notice that the code was # modified is included with the above copyright notice. function print_help { cat <<'EOF' Usage: gpgverify --keyring=<pathname> --signature=<pathname> --data=<pathname> gpgverify is a wrapper around gpgv designed for easy and safe scripting. It verifies a file against a detached OpenPGP signature and a keyring. The keyring shall contain all the keys that are trusted to certify the authenticity of the file, and must not contain any untrusted keys. The differences, compared to invoking gpgv directly, are that gpgverify accepts the keyring in either ASCII-armored or unarmored form, and that it will not accidentally use a default keyring in addition to the specified one. Parameters: --keyring=<pathname> keyring with all the trusted keys and no others --signature=<pathname> detached signature to verify --data=<pathname> file to verify against the signature EOF } fatal_error() { message="$1" # an error message status=$2 # a number to use as the exit code echo "gpgverify: $message" >&2 exit $status } require_parameter() { term="$1" # a term for a required parameter value="$2" # Complain and terminate if this value is empty. if test -z "${value}" ; then fatal_error "No ${term} was provided." 2 fi } check_status() { action="$1" # a string that describes the action that was attempted status=$2 # the exit code of the command if test $status -ne 0 ; then fatal_error "$action failed." $status fi } # Parse the command line. keyring= signature= data= for parameter in "$@" ; do case "${parameter}" in (--help) print_help exit ;; (--keyring=*) keyring="${parameter#*=}" ;; (--signature=*) signature="${parameter#*=}" ;; (--data=*) data="${parameter#*=}" ;; (*) fatal_error "Unknown parameter: \"${parameter}\"" 2 ;; esac done require_parameter 'keyring' "${keyring}" require_parameter 'signature' "${signature}" require_parameter 'data file' "${data}" # Make a temporary working directory. workdir="$(mktemp --directory)" check_status 'Making a temporary directory' $? workring="${workdir}/keyring.gpg" # Decode any ASCII armor on the keyring. This is harmless if the keyring isn't # ASCII-armored. gpg2 --homedir="${workdir}" --yes --output="${workring}" --dearmor "${keyring}" check_status 'Decoding the keyring' $? # Verify the signature using the decoded keyring. gpgv2 --homedir="${workdir}" --keyring="${workring}" "${signature}" "${data}" check_status 'Signature verification' $? # (--homedir isn't actually necessary. --dearmor processes only the input file, # and if --keyring is used and contains a slash, then gpgv2 uses only that # keyring. Thus neither command will look for a default keyring, but --homedir # makes extra double sure that no default keyring will be touched in case # another version of GPG works differently.) # Clean up. (This is not done in case of an error that may need inspection.) rm --recursive --force ${workdir} redhat/redhat-annobin-select-annobin-built-plugin 0000444 00000000131 15043540723 0016133 0 ustar 00 *cc1_options: + %{!-fno-use-annobin:%{!iplugindir*:%:find-plugindir()} -fplugin=annobin} redhat/redhat-hardened-cc1 0000444 00000000231 15043540723 0011416 0 ustar 00 *cc1_options: + %{!r:%{!fpie:%{!fPIE:%{!fpic:%{!fPIC:%{!fno-pic:-fPIE}}}}}} *cpp_options: + %{!r:%{!fpie:%{!fPIE:%{!fpic:%{!fPIC:%{!fno-pic:-fPIE}}}}}} redhat/redhat-hardened-ld 0000444 00000000057 15043540723 0011355 0 ustar 00 *self_spec: + %{!static:%{!shared:%{!r:-pie}}} redhat/brp-ldconfig 0000755 00000000641 15043540723 0010313 0 ustar 00 #!/usr/bin/sh -efu # Force creating of DSO symlinks. # If using normal root, avoid changing anything. if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then exit 0 fi # Create an empty config file for ldconfig to shut up a warning config=$(mktemp -p "$RPM_BUILD_ROOT") /sbin/ldconfig -f $(basename "$config") -N -r "$RPM_BUILD_ROOT" rm -f "$config" # TODO: warn if it created new symlinks and guide people. rpmpopt-4.16.1.3 0000644 00000027520 15043540723 0007067 0 ustar 00 #/*! \page config_rpmpopt Default configuration: /usr/lib/rpm/rpmpopt-4.16.1.3 # \verbatim # # This file *should not be modified*. Local customizations # belong in /etc/popt, not here. This file will be replaced # whenever a new version of RPM is installed. # # Note: Not all popt aliases are documented. This is a decision on my # part as to which are the more important aliases. Feel free to clip # a copy of the alias/exec here and place in /etc/popt or ~/.popt with # your own words added. It's easier than arguing about how many options # fit on the head of an executable :-) # rpm alias --scripts --qf '\ %|PRETRANS?{pretrans scriptlet\ %|PRETRANSPROG?{ (using[ %{PRETRANSPROG}])}|:\n%{PRETRANS}\n}:\ {%|PRETRANSPROG?{pretrans program:[ %{PRETRANSPROG}]\n}|}|\ \ %|PREIN?{preinstall scriptlet\ %|PREINPROG?{ (using[ %{PREINPROG}])}|:\n%{PREIN}\n}:\ {%|PREINPROG?{preinstall program:[ %{PREINPROG}]\n}|}|\ \ %|POSTIN?{postinstall scriptlet\ %|POSTINPROG?{ (using[ %{POSTINPROG}])}|:\n%{POSTIN}\n}:\ {%|POSTINPROG?{postinstall program:[ %{POSTINPROG}]\n}|}|\ \ %|PREUN?{preuninstall scriptlet\ %|PREUNPROG?{ (using[ %{PREUNPROG}])}|:\n%{PREUN}\n}:\ {%|PREUNPROG?{preuninstall program:[ %{PREUNPROG}]\n}|}|\ \ %|POSTUN?{postuninstall scriptlet\ %|POSTUNPROG?{ (using[ %{POSTUNPROG}])}|:\n%{POSTUN}\n}:\ {%|POSTUNPROG?{postuninstall program:[ %{POSTUNPROG}]\n}|}|\ \ %|POSTTRANS?{posttrans scriptlet\ %|POSTTRANSPROG?{ (using[ %{POSTTRANSPROG}])}|:\n%{POSTTRANS}\n}:\ {%|POSTTRANSPROG?{posttrans program:[ %{POSTTRANSPROG}]\n}|}|\ \ %|VERIFYSCRIPT?{verify scriptlet\ %|VERIFYSCRIPTPROG?{ (using[ %{VERIFYSCRIPTPROG}])}|:\n%{VERIFYSCRIPT}\n}:\ {%|VERIFYSCRIPTPROG?{verify program:[ %{VERIFYSCRIPTPROG}]\n}|}|\ ' \ --POPTdesc=$"list install/erase scriptlets from package(s)" rpm alias --setperms -q --qf '[\[ -L %{FILENAMES:shescape} \] || \ \[ -n %{FILELINKTOS:shescape} \] || \ ( \[ $((%{FILEFLAGS} & 2#1001000)) != 0 \] && \[ ! -e %{FILENAMES:shescape} \] ) || \ chmod %7{FILEMODES:octal} %{FILENAMES:shescape}\n]' \ --pipe "grep -v \(none\) | grep '^. -L ' | sed 's/chmod .../chmod /' | sh" \ --POPTdesc=$"set permissions of files in a package" rpm alias --setugids -q --qf \ '[ch %{FILEUSERNAME:shescape} %{FILEGROUPNAME:shescape} %{FILENAMES:shescape} %{FILEFLAGS}\n]' \ --pipe "(echo 'ch() { ( \[ $(($4 & 2#1001000)) != 0 \] && \[ ! -e \"$3\" \] ) || \ (chown -h -- \"$1\" \"$3\";chgrp -h -- \"$2\" \"$3\";) }'; \ grep '^ch '|grep -v \(none\))|sh" \ --POPTdesc=$"set user/group ownership of files in a package" rpm alias --setcaps -q --qf \ "[if \[ -f %{FILENAMES:shescape} -a ! -L %{FILENAMES:shescape} \]; then\n\ %|FILECAPS?{ if \[ -n %{FILECAPS:shescape} \]; then\n\ setcap %{FILECAPS:shescape} %{FILENAMES:shescape}\n\ el}:{ }|if \[ -n \"\$(getcap %{FILENAMES:shescape})\" \]; then\n\ setcap -r %{FILENAMES:shescape}\n\ fi\n\ fi\n]" \ --pipe "sh" \ --POPTdesc=$"set capabilities of files in a package" rpm alias --restore -q --qf \ '[ rpm --setugids %{NAME:shescape}; \ rpm --setperms %{NAME:shescape}; \ rpm --setcaps %{NAME:shescape}; \n]' --pipe "sh" \ --POPTdesc=$"restore file/directory permissions" rpm alias --conflicts --qf \ "[%|VERBOSE?{%{CONFLICTFLAGS:deptype}: }:{}|%{CONFLICTNEVRS}\n]" \ --POPTdesc=$"list capabilities this package conflicts with" rpm alias --obsoletes --qf \ "[%|VERBOSE?{%{OBSOLETEFLAGS:deptype}: }:{}|%{OBSOLETENEVRS}\n]" \ --POPTdesc=$"list other packages removed by installing this package" rpm alias --provides --qf \ "[%|VERBOSE?{%{PROVIDEFLAGS:deptype}: }:{}|%{PROVIDENEVRS}\n]" \ --POPTdesc=$"list capabilities that this package provides" rpm alias -P --provides rpm alias --requires --qf \ "[%|VERBOSE?{%{REQUIREFLAGS:deptype}: }:{}|%{REQUIRENEVRS}\n]" \ --POPTdesc=$"list capabilities required by package(s)" rpm alias -R --requires rpm alias --recommends --qf \ "[%|VERBOSE?{%{RECOMMENDFLAGS:deptype}: }:{}|%{RECOMMENDNEVRS}\n]" \ --POPTdesc=$"list capabilities recommended by package(s)" rpm alias --suggests --qf \ "[%|VERBOSE?{%{SUGGESTFLAGS:deptype}: }:{}|%{SUGGESTNEVRS}\n]" \ --POPTdesc=$"list capabilities suggested by package(s)" rpm alias --supplements --qf \ "[%|VERBOSE?{%{SUPPLEMENTFLAGS:deptype}: }:{}|%{SUPPLEMENTNEVRS}\n]" \ --POPTdesc=$"list capabilities supplemented by package(s)" rpm alias --enhances --qf \ "[%|VERBOSE?{%{ENHANCEFLAGS:deptype}: }:{}|%{ENHANCENEVRS}\n]" \ --POPTdesc=$"list capabilities enhanced by package(s)" rpm alias --info --qf '\ Name : %{NAME}\n\ %|EPOCH?{Epoch : %{EPOCH}\n}|\ Version : %{VERSION}\n\ Release : %{RELEASE}\n\ %|DISTTAG?{DistTag : %{DISTTAG}\n}|\ Architecture: %{ARCH}\n\ Install Date: %|INSTALLTIME?{%{INSTALLTIME:date}}:{(not installed)}|\n\ Group : %{GROUP}\n\ Size : %{LONGSIZE}\n\ %|LICENSE?{License : %{LICENSE}}|\n\ Signature : %|DSAHEADER?{%{DSAHEADER:pgpsig}}:{%|RSAHEADER?{%{RSAHEADER:pgpsig}}:{%|SIGGPG?{%{SIGGPG:pgpsig}}:{%|SIGPGP?{%{SIGPGP:pgpsig}}:{(none)}|}|}|}|\n\ Source RPM : %{SOURCERPM}\n\ Build Date : %{BUILDTIME:date}\n\ Build Host : %{BUILDHOST}\n\ %|PREFIXES?{Relocations : [%{PREFIXES} ]\n}|\ %|PACKAGER?{Packager : %{PACKAGER}\n}|\ %|VENDOR?{Vendor : %{VENDOR}\n}|\ %|URL?{URL : %{URL}\n}|\ %|BUGURL?{Bug URL : %{BUGURL}\n}|\ Summary : %{SUMMARY}\n\ Description :\n%{DESCRIPTION}\n' \ --POPTdesc=$"list descriptive information from package(s)" rpm alias --changelog --qf '[* %{CHANGELOGTIME:day} %{CHANGELOGNAME}\n%{CHANGELOGTEXT}\n\n]' \ --POPTdesc=$"list change logs for this package" rpm alias --changes --qf '[* %{CHANGELOGTIME:date} %{CHANGELOGNAME}\n%{CHANGELOGTEXT}\n\n]' \ --POPTdesc=$"list changes for this package with full time stamps" rpm alias --xml --qf '[%{*:xml}\n]' \ --POPTdesc=$"list metadata in xml" rpm alias --triggerscripts --qf '\ [trigger%{TRIGGERTYPE} scriptlet (using %{TRIGGERSCRIPTPROG}) -- %{TRIGGERCONDS}\n\ %{TRIGGERSCRIPTS}\n]' rpm alias --triggers --triggerscripts \ --POPTdesc=$"list trigger scriptlets from package(s)" rpm alias --filetriggerscripts --qf '\ [filetrigger%{FILETRIGGERTYPE} scriptlet (using %{FILETRIGGERSCRIPTPROG}) -- \ %{FILETRIGGERCONDS}\n%{FILETRIGGERSCRIPTS}\n]\ [transfiletrigger%{TRANSFILETRIGGERTYPE} scriptlet (using %{TRANSFILETRIGGERSCRIPTPROG}) -- \ %{TRANSFILETRIGGERCONDS}\n%{TRANSFILETRIGGERSCRIPTS}\n]' rpm alias --filetriggers --filetriggerscripts \ --POPTdesc=$"list filetrigger scriptlets from package(s)" rpm alias --last --qf '%|INSTALLTIME?{%{INSTALLTIME}}:{000000000}| %{NVRA} %|INSTALLTIME?{%{INSTALLTIME:date}}:{(not installed)}|\n' \ --pipe "LC_NUMERIC=C sort -r -n | sed 's,^[0-9]\+ ,,' | awk '{printf(\"%-45s %-s\n\", $1, substr($0,length($1)+2))}' " \ --POPTdesc=$"list package(s) by install time, most recent first" rpm alias --dupes --qf '%|SOURCERPM?{%{name}.%{arch}}:{%|ARCH?{%{name}}:{%{name}-%{version}}|}|\n' --pipe "sort | uniq -d" \ --POPTdesc=$"list duplicated packages" rpm alias --filesbypkg --qf '[%-25{=NAME} %{FILENAMES}\n]' \ --POPTdesc=$"list all files from each package" rpm alias --fileclass --qf '[%{FILENAMES}\t%{FILECLASS}\n]' \ --POPTdesc=$"list file names with their classes" rpm alias --filecolor --qf '[%{FILENAMES}\t%{FILECOLORS}\n]' \ --POPTdesc=$"list file names with their colors" rpm alias --fileprovide --qf '[%{FILENAMES}\t%{FILEPROVIDE}\n]' \ --POPTdesc=$"list file names with their provides" rpm alias --filerequire --qf '[%{FILENAMES}\t%{FILEREQUIRE}\n]' \ --POPTdesc=$"list file names with requires" rpm alias --filecaps --qf '[%{FILENAMES}\t%|FILECAPS?{%{FILECAPS}}|\n]' \ --POPTdesc=$"list file names with their POSIX1.e capabilities" # colon separated i18n domains to use as PO catalogue lookaside for # retrieving header group/description/summary. rpm alias --i18ndomains --define '_i18ndomains !#:+' rpm alias --color --define '_color_output !#:+' #============================================================================== # [--httpport <port>] "port number of http proxy" rpm alias --httpport --define '_httpport !#:+' # [--httpproxy <host>] "hostname or IP of http proxy" rpm alias --httpproxy --define '_httpproxy !#:+' # [--trace] "trace macro expansion" rpm alias --trace --eval '%trace' # Minimally preserve commonly used switches from cli split-up rpm exec --addsign rpmsign --addsign rpm exec --delsign rpmsign --delsign rpm exec --resign rpmsign --resign #rpm exec --signfiles rpmsign --signfiles rpm exec --checksig rpmkeys --checksig rpm exec -K rpmkeys --checksig rpm exec --import rpmkeys --import rpm exec --initdb rpmdb --initdb rpm exec --rebuilddb rpmdb --rebuilddb rpm exec --verifydb rpmdb --verifydb rpm exec --specfile rpmspec -q #============================================================================== rpmbuild alias --httpport --define '_httpport !#:+' rpmbuild alias --httpproxy --define '_httpproxy !#:+' rpmbuild alias --with --define "_with_!#:+ --with-!#:+" \ --POPTdesc=$"enable configure <option> for build" \ --POPTargs=$"<option>" rpmbuild alias --without --define "_without_!#:+ --without-!#:+" \ --POPTdesc=$"disable configure <option> for build" \ --POPTargs=$"<option>" rpmbuild alias --scm --define '__scm !#:+' \ --POPTdesc=$"shortcut for '--define=\"__scm <scm>\"'" \ --POPTargs=$"<scm>" # Build policies enabled from command line. Last policy applies. rpmbuild alias --buildpolicy --define '__os_install_post %{_rpmconfigdir}/brp-!#:+' \ --POPTdesc=$"set buildroot <policy> (e.g. compress man pages)" \ --POPTargs=$"<policy>" # Print error on rpmbuild --sign rpmbuild alias --sign --eval "%{error:rpmbuild --sign is no longer supported. Use the rpmsign command instead!}" --POPTdesc=$"Obsolete, use command rpmsign instead!" rpmbuild alias --trace --eval '%trace' \ --POPTdesc=$"trace macro expansion" rpmbuild alias --nodebuginfo --define 'debug_package %{nil}' \ --POPTdesc=$"do not generate debuginfo for this package" rpmsign alias --key-id --define '_gpg_name !#:+' \ --POPTdesc=$"key id/name to sign with" \ --POPTargs=$"<id>" rpmsign alias --digest-algo --define '_gpg_digest_algo !#:+' \ --POPTdesc=$"override default digest algorithm (eg sha1/sha256)" \ --POPTargs=$"<algorithm>" rpmspec alias --conflicts --qf \ "[%|VERBOSE?{%{CONFLICTFLAGS:deptype}: }:{}|%{CONFLICTNEVRS}\n]" \ --POPTdesc=$"list capabilities this package conflicts with" rpmspec alias --obsoletes --qf \ "[%|VERBOSE?{%{OBSOLETEFLAGS:deptype}: }:{}|%{OBSOLETENEVRS}\n]" \ --POPTdesc=$"list other packages removed by installing this package" rpmspec alias --provides --qf \ "[%|VERBOSE?{%{PROVIDEFLAGS:deptype}: }:{}|%{PROVIDENEVRS}\n]" \ --POPTdesc=$"list capabilities that this package provides" rpmspec alias --requires --qf \ "[%|VERBOSE?{%{REQUIREFLAGS:deptype}: }:{}|%{REQUIRENEVRS}\n]" \ --POPTdesc=$"list capabilities required by package(s)" rpmspec alias --buildconflicts --srpm --conflicts \ --POPTdesc=$"list capabilities conflicting with build of this package" rpmspec alias --buildrequires --srpm --requires \ --POPTdesc=$"list capabilities required to build this package" rpmspec alias --httpport --define '_httpport !#:+' rpmspec alias --httpproxy --define '_httpproxy !#:+' rpmspec alias --with --define "_with_!#:+ --with-!#:+" \ --POPTdesc=$"enable configure <option> for build" \ --POPTargs=$"<option>" rpmspec alias --without --define "_without_!#:+ --without-!#:+" \ --POPTdesc=$"disable configure <option> for build" \ --POPTargs=$"<option>" rpmspec alias --scm --define '__scm !#:+' \ --POPTdesc=$"shortcut for '--define=\"__scm <scm>\"'" \ --POPTargs=$"<scm>" # Build policies enabled from command line. Last policy applies. rpmspec alias --buildpolicy --define '__os_install_post %{_rpmconfigdir}/brp-!#:+' \ --POPTdesc=$"set buildroot <policy> (e.g. compress man pages)" \ --POPTargs=$"<policy>" rpmspec alias --trace --eval '%trace' \ --POPTdesc=$"trace macro expansion" rpmspec alias --nodebuginfo --define 'debug_package %{nil}' \ --POPTdesc=$"do not generate debuginfo for this package" # \endverbatim #*/ rpm.log 0000644 00000000075 15043540723 0006052 0 ustar 00 /var/log/rpmpkgs { weekly notifempty missingok }
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Generation time: 0.03 |
proxy
|
phpinfo
|
Settings