X7ROOT File Manager
Current Path:
/lib/rpm/macros.d
lib
/
rpm
/
macros.d
/
ðŸ“
..
📄
macros.alt-python310
(2.01 KB)
📄
macros.alt-python311
(2.03 KB)
📄
macros.alt-python312
(2.01 KB)
📄
macros.alt-python313
(2.01 KB)
📄
macros.alt-python38
(1.97 KB)
📄
macros.alt-python39
(1.98 KB)
📄
macros.dwz
(1.76 KB)
📄
macros.efi-srpm
(3 KB)
📄
macros.environment-modules
(75 B)
📄
macros.fedora-misc
(2.76 KB)
📄
macros.fedora-misc-srpm
(239 B)
📄
macros.firewalld
(239 B)
📄
macros.forge
(12.43 KB)
📄
macros.ghc-srpm
(414 B)
📄
macros.go-srpm
(7.17 KB)
📄
macros.info
(390 B)
📄
macros.kernel-srpm
(116 B)
📄
macros.ldc-srpm
(73 B)
📄
macros.ldconfig
(307 B)
📄
macros.mono-srpm
(181 B)
📄
macros.nodejs-srpm
(324 B)
📄
macros.ocaml-srpm
(737 B)
📄
macros.openblas-srpm
(104 B)
📄
macros.perl
(5.06 KB)
📄
macros.perl-srpm
(794 B)
📄
macros.pybytecompile
(886 B)
📄
macros.python
(3.36 KB)
📄
macros.python-srpm
(5.95 KB)
📄
macros.python2
(1.82 KB)
📄
macros.python3
(3.63 KB)
📄
macros.qt5-qtbase
(78 B)
📄
macros.ruby
(1001 B)
📄
macros.rust-srpm
(61 B)
📄
macros.scl
(13.53 KB)
📄
macros.selinux-policy
(6.61 KB)
📄
macros.systemd
(4.03 KB)
📄
macros.systemtap
(206 B)
📄
macros.valgrind-srpm
(127 B)
📄
macros.vim
(40 B)
📄
macros.vpath
(228 B)
Editing: macros.fedora-misc
# Some miscellaneous Fedora-related macros # List files matching inclusion globs, excluding files matching exclusion blogs # Optional parameters: # – -i "<globs>" inclusion globs # – -x "<globs>" exclusion globs # Globs are space-separated lists of shell globs. Such lists require %{quote:} # use for safe rpm argument passing. # Alternatively, set the following rpm variables before calling the macro: # – “listfiles_include” inclusion globs # — “listfiles_exclude” 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 # Write the contents of a list of rpm variables to a macro file. # The target file must contain the 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 } # 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 }
Upload File
Create Folder