?????????? ????????? - ??????????????? - /home/agenciai/public_html/cd38d8/macros.d.zip
???????
PK n<�[�4 �W W macros.sysusersnu �[��� # 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} PK n<�[�� macros.valgrind-srpmnu �[��� # valgrind_arches lists what arches Valgrind works on %valgrind_arches %{ix86} x86_64 ppc ppc64 ppc64le s390x armv7hl aarch64 PK n<�[x�(o( ( macros.vimnu �[��� %vimfiles_root %{_datadir}/vim/vimfiles PK n<�[i�o�� � macros.systemtapnu �[��� # -*- Mode: rpm-spec; indent-tabs-mode: nil -*- */ # # RPM macros for packages installing systemtap tapset files %_systemtap_tapsetdir /usr/share/systemtap/tapset %_systemtap_datadir /usr/share/systemtap PK n<�[X���a a macros.rust-srpmnu �[��� %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} PK n<�[f��� macros.lua-srpmnu �[��� %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} PK n<�[�H�,� � macros.vpathnu �[��� # ---- 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 PK n<�[C��=� � macros.fedora-misc-srpmnu �[��� # 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) } PK n<�[+�y'� � macros.distnu �[��� # dist macros. %__bootstrap ~bootstrap %almalinux_ver 9 %almalinux 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 %dist_vendor AlmaLinux OS Foundation %dist_name AlmaLinux %dist_home_url https://almalinux.org/ %dist_bug_report_url https://bugs.almalinux.org/ PK n<�[���� � macros.forgenu �[��� # 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")) } PK n<�[G�� � macros.firewalldnu �[��� # 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} PK n<�[]���h h macros.openblas-srpmnu �[��� # Architectures that OpenBLAS supports %openblas_arches x86_64 %{ix86} armv7hl %{power64} aarch64 s390x PK n<�[>�D D macros.nodejs-srpmnu �[��� # 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 PK n<�[��* macros.dwznu �[��� # 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} PK n<�[`ڔ macros.perlnu �[��� # Sensible Perl-specific RPM build macros. # # Note that these depend on the generic filtering system being in place in # rpm core; but won't cause a build to fail if they're not present. # # Chris Weyl <cweyl@alumni.drew.edu> 2009 # Marcela Mašláňová <mmaslano@redhat.com> 2011 # This macro unsets several common vars used to control how Makefile.PL (et # al) build and install packages. We also set a couple to help some of the # common systems be less interactive. This was blatantly stolen from # cpanminus, and helps building rpms locally when one makes extensive use of # local::lib, etc. # # Usage, in %build, before "%{__perl} Makefile.PL ..." # # %{?perl_ext_env_unset} %perl_ext_env_unset %{expand: unset PERL_MM_OPT MODULEBUILDRC PERL5INC export PERL_AUTOINSTALL="--defaultdeps" export PERL_MM_USE_DEFAULT=1 } ############################################################################# # Perl specific macros, no longer part of rpm >= 4.15 %perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch) %perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib) %perl_archlib %(eval "`%{__perl} -V:installarchlib`"; echo $installarchlib) %perl_privlib %(eval "`%{__perl} -V:installprivlib`"; echo $installprivlib) ############################################################################# # Filtering macro incantations # keep track of what "revision" of the filtering we're at. Each time we # change the filter we should increment this. %perl_default_filter_revision 3 # By default, for perl packages we want to filter all files in _docdir from # req/prov scanning. # Filtering out any provides caused by private libs in vendorarch/archlib # (vendor/core) is done by rpmbuild since Fedora 20 # <https://fedorahosted.org/fpc/ticket/353>. # # Note that this must be invoked in the spec file, preferably as # "%{?perl_default_filter}", before any %description block. %perl_default_filter %{expand: \ %global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_docdir} %global __requires_exclude_from %{?__requires_exclude_from:%__requires_exclude_from|}^%{_docdir} %global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\\\(VMS|^perl\\\\(Win32|^perl\\\\(DB\\\\)|^perl\\\\(UNIVERSAL\\\\) %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\\\(VMS|^perl\\\\(Win32 } ############################################################################# # Macros to assist with generating a "-tests" subpackage in a semi-automatic # manner. # # The following macros are still in a highly experimental stage and users # should be aware that the interface and behaviour may change. # # PLEASE, PLEASE CONDITIONALIZE THESE MACROS IF YOU USE THEM. # # See http://gist.github.com/284409 # These macros should be invoked as above, right before the first %description # section, and conditionalized. e.g., for the common case where all our tests # are located under t/, the correct usage is: # # %{?perl_default_subpackage_tests} # # If custom files/directories need to be specified, this can be done as such: # # %{?perl_subpackage_tests:%perl_subpackage_tests t/ one/ three.sql} # # etc, etc. %perl_version %(eval "`%{__perl} -V:version`"; echo $version) %perl_testdir %{_libexecdir}/perl5-tests %cpan_dist_name %(eval echo %{name} | %{__sed} -e 's/^perl-//') # easily mark something as required by -tests and BR to the main package %tests_req() %{expand:\ BuildRequires: %*\ %%tests_subpackage_requires %*\ } # fixup (and create if needed) the shbang lines in tests, so they work and # rpmlint doesn't (correctly) have a fit %fix_shbang_line() \ TMPHEAD=`mktemp`\ TMPBODY=`mktemp`\ for file in %* ; do \ head -1 $file > $TMPHEAD\ tail -n +2 $file > $TMPBODY\ %{__perl} -pi -e '$f = /^#!/ ? "" : "#!%{__perl}$/"; $_="$f$_"' $TMPHEAD\ cat $TMPHEAD $TMPBODY > $file\ done\ %{__perl} -MExtUtils::MakeMaker -e "ExtUtils::MM_Unix->fixin(qw{%*})"\ %{__rm} $TMPHEAD $TMPBODY\ %{nil} # additional -tests subpackage requires, if any %tests_subpackage_requires() %{expand: \ %global __tests_spkg_req %{?__tests_spkg_req} %* \ } # additional -tests subpackage provides, if any %tests_subpackage_provides() %{expand: \ %global __tests_spkg_prov %{?__tests_spkg_prov} %* \ } # # Runs after the body of %check completes. # %__perl_check_pre %{expand: \ %{?__spec_check_pre} \ pushd %{buildsubdir} \ %define perl_br_testdir %{buildroot}%{perl_testdir}/%{cpan_dist_name} \ %{__mkdir_p} %{perl_br_testdir} \ %{__tar} -cf - %{__perl_test_dirs} | ( cd %{perl_br_testdir} && %{__tar} -xf - ) \ find . -maxdepth 1 -type f -name '*META*' -exec %{__cp} -vp {} %{perl_br_testdir} ';' \ find %{perl_br_testdir} -type f -exec %{__chmod} -c -x {} ';' \ T_FILES=`find %{perl_br_testdir} -type f -name '*.t'` \ %fix_shbang_line $T_FILES \ %{__chmod} +x $T_FILES \ %{_fixperms} %{perl_br_testdir} \ popd \ } # # The actual invoked macro # %perl_subpackage_tests() %{expand: \ %global __perl_package 1\ %global __perl_test_dirs %* \ %global __spec_check_pre %{expand:%{__perl_check_pre}} \ %package tests\ Summary: Test suite for package %{name}\ Group: Development/Debug\ Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}\ Requires: /usr/bin/prove \ %{?__tests_spkg_req:Requires: %__tests_spkg_req}\ %{?__tests_spkg_prov:Provides: %__tests_spkg_prov}\ AutoReqProv: 0 \ %description tests\ This package provides the test suite for package %{name}.\ %files tests\ %defattr(-,root,root,-)\ %{perl_testdir}\ } # shortcut sugar %perl_default_subpackage_tests %perl_subpackage_tests t/ PK n<�[���Xo o macros.aaa-pyproject-srpmnu �[��� # 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(rRxtNwpe:g:C:) echo 'pyproject-rpm-macros' && exit 0 # Declarative buildsystem, requires RPM 4.20+ to work # https://rpm-software-management.github.io/rpm/manual/buildsystem.html # This is the minimal implementation to be in the srpm package, # as required even before the BuildRequires are installed %buildsystem_pyproject_conf() %nil %buildsystem_pyproject_generate_buildrequires() %pyproject_buildrequires %* %buildsystem_pyproject_build() %nil %buildsystem_pyproject_install() %nil PK n<�[%vg�� � macros.fonts-srpmnu �[��� # 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) } PK n<�[�+�i� � macros.efi-srpmnu �[��� # # 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 PK n<�[�̶�F F macros.ldc-srpmnu �[��� # arches that ldc builds on %ldc_arches %{ix86} x86_64 %{arm} aarch64 PK n<�[*+��� � macros.fedora-miscnu �[��� # 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 } PK n<�[1�F� � macros.mono-srpmnu �[��� # 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 PK n<�[�� �B'