PATH: //lib/rpm/macros.d
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
π macros.aaa-pyproject-srpm
β
X
π macros.alt-python310
β
X
π macros.alt-python311
β
X
π macros.alt-python312
β
X
π macros.alt-python313
β
X
π macros.alt-python38
β
X
π macros.alt-python39
β
X
π macros.dist
β
X
π macros.dwz
β
X
π macros.efi-srpm
β
X
π macros.environment-modules
β
X
π macros.fedora-misc
β
X
π macros.fedora-misc-srpm
β
X
π macros.fonts-srpm
β
X
π macros.forge
β
X
π macros.ghc-srpm
β
X
π macros.go-srpm
β
X
π macros.java-srpm
β
X
π macros.kernel-srpm
β
X
π macros.kmp
β
X
π macros.ldc-srpm
β
X
π macros.ldconfig
β
X
π macros.lua-srpm
β
X
π macros.mono-srpm
β
X
π macros.nodejs-srpm
β
X
π macros.ocaml-srpm
β
X
π macros.openblas-srpm
β
X
π macros.perl
β
X
π macros.perl-srpm
β
X
π macros.pkgconf
β
X
π macros.python-srpm
β
X
π macros.qt5-srpm
β
X
π macros.ruby
β
X
π macros.rust-srpm
β
X
π macros.scl
β
X
π macros.selinux-policy
β
X
π macros.systemd
β
X
π macros.systemtap
β
X
π macros.sysusers
β
X
π macros.valgrind-srpm
β
X
π macros.vim
β
X
π macros.vpath
β
X
SAVING...
BERHASIL DIUBAH!
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 }
SIMPAN PERUBAHAN