/
usr
/
lib
/
rpm
/
macros.d
/
/usr/lib/rpm/macros.d
mkdir
upload
Name
Size
Mode
Actions
macros.aaa-pyproject-srpm
872
0644
edit
dl
rm
macros.dist
419
0644
edit
dl
rm
macros.dwz
1806
0644
edit
dl
rm
macros.efi-srpm
3270
0644
edit
dl
rm
macros.environment-modules
75
0644
edit
dl
rm
macros.fedora-misc
2482
0644
edit
dl
rm
macros.fedora-misc-srpm
1718
0644
edit
dl
rm
macros.firewalld
239
0644
edit
dl
rm
macros.fonts-srpm
5291
0644
edit
dl
rm
macros.forge
3326
0644
edit
dl
rm
macros.ghc-srpm
535
0644
edit
dl
rm
macros.go-srpm
10050
0644
edit
dl
rm
macros.java-srpm
94
0644
edit
dl
rm
macros.kernel-srpm
109
0644
edit
dl
rm
macros.kmp
4480
0644
edit
dl
rm
macros.ldc-srpm
70
0644
edit
dl
rm
macros.ldconfig
307
0644
edit
dl
rm
macros.lua-srpm
283
0644
edit
dl
rm
macros.mono-srpm
181
0644
edit
dl
rm
macros.nodejs-srpm
324
0644
edit
dl
rm
macros.ocaml-srpm
745
0644
edit
dl
rm
macros.openblas-srpm
104
0644
edit
dl
rm
macros.perl
5643
0644
edit
dl
rm
macros.perl-srpm
862
0644
edit
dl
rm
macros.pkgconf
61
0644
edit
dl
rm
macros.python-srpm
11401
0644
edit
dl
rm
macros.qt5-srpm
492
0644
edit
dl
rm
macros.rust-srpm
1377
0644
edit
dl
rm
macros.selinux-policy
7247
0644
edit
dl
rm
macros.systemd
7090
0644
edit
dl
rm
macros.systemtap
206
0644
edit
dl
rm
macros.sysusers
343
0644
edit
dl
rm
macros.valgrind-srpm
127
0644
edit
dl
rm
macros.vim
40
0644
edit
dl
rm
macros.vpath
241
0644
edit
dl
rm
Edit:
/usr/lib/rpm/macros.d/macros.fedora-misc
(2482B)
# 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 }
Save
cmd:
run