XYZ File Manager
Current Path:
/lib/rpm/macros.d
lib
/
rpm
/
macros.d
/
π
..
π
macros.aaa-pyproject-srpm
(879 B)
π
macros.alt-python311
(2.03 KB)
π
macros.clang
(522 B)
π
macros.cmake
(2.28 KB)
π
macros.dist
(252 B)
π
macros.dwz
(1.76 KB)
π
macros.efi-srpm
(3.19 KB)
π
macros.environment-modules
(75 B)
π
macros.fedora-misc
(2.42 KB)
π
macros.fedora-misc-srpm
(1.68 KB)
π
macros.firewalld
(239 B)
π
macros.fonts-srpm
(5.17 KB)
π
macros.forge
(3.25 KB)
π
macros.ghc-srpm
(535 B)
π
macros.go-srpm
(9.81 KB)
π
macros.java-srpm
(94 B)
π
macros.kernel-srpm
(109 B)
π
macros.kmp
(4.35 KB)
π
macros.ldc-srpm
(70 B)
π
macros.ldconfig
(307 B)
π
macros.lua-srpm
(283 B)
π
macros.mono-srpm
(181 B)
π
macros.nodejs-srpm
(324 B)
π
macros.ocaml-srpm
(745 B)
π
macros.openblas-srpm
(104 B)
π
macros.perl-srpm
(862 B)
π
macros.pkgconf
(61 B)
π
macros.python-srpm
(11.13 KB)
π
macros.qt5-qtbase
(78 B)
π
macros.qt5-srpm
(492 B)
π
macros.rust-srpm
(1.34 KB)
π
macros.scl
(13.45 KB)
π
macros.selinux-policy
(6.9 KB)
π
macros.systemd
(6.92 KB)
π
macros.sysusers
(343 B)
π
macros.valgrind-srpm
(127 B)
π
macros.vim
(40 B)
π
macros.vpath
(241 B)
Editing: macros.fedora-misc
# 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 }
Upload File
Create Folder