OXIESEC PANEL
- Current Dir:
/
/
lib
/
rpm
/
macros.d
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
π
..
-
02/08/2025 12:06:29 AM
rwxr-xr-x
π
macros.cmake
2.2 KB
04/05/2024 07:22:55 PM
rw-r--r--
π
macros.dwz
1.76 KB
05/15/2023 02:30:31 PM
rw-r--r--
π
macros.efi-srpm
3 KB
11/23/2021 10:32:36 PM
rw-r--r--
π
macros.environment-modules
75 bytes
07/30/2020 12:13:34 PM
rw-r--r--
π
macros.fedora-misc
2.76 KB
05/15/2023 02:30:31 PM
rw-r--r--
π
macros.fedora-misc-srpm
239 bytes
05/15/2023 02:30:31 PM
rw-r--r--
π
macros.firewalld
239 bytes
09/21/2023 10:00:56 AM
rw-r--r--
π
macros.forge
12.43 KB
05/15/2023 02:30:31 PM
rw-r--r--
π
macros.ghc-srpm
414 bytes
08/12/2018 10:37:49 AM
rw-r--r--
π
macros.go-srpm
7.17 KB
04/08/2021 02:45:20 PM
rw-r--r--
π
macros.info
390 bytes
04/18/2022 05:09:26 PM
rw-r--r--
π
macros.kernel-srpm
116 bytes
05/15/2023 02:30:31 PM
rw-r--r--
π
macros.ldc-srpm
73 bytes
05/15/2023 02:30:31 PM
rw-r--r--
π
macros.ldconfig
307 bytes
05/15/2023 02:30:31 PM
rw-r--r--
π
macros.lua
375 bytes
08/18/2021 01:25:50 PM
rw-r--r--
π
macros.mono-srpm
181 bytes
05/15/2023 02:30:31 PM
rw-r--r--
π
macros.nodejs-srpm
324 bytes
05/15/2023 02:30:31 PM
rw-r--r--
π
macros.ocaml-srpm
737 bytes
10/14/2019 08:31:03 AM
rw-r--r--
π
macros.openblas-srpm
104 bytes
10/16/2019 08:47:30 PM
rw-r--r--
π
macros.perl
5.06 KB
05/18/2023 09:20:52 PM
rw-r--r--
π
macros.perl-srpm
794 bytes
10/13/2019 02:18:38 PM
rw-r--r--
π
macros.pybytecompile
886 bytes
05/16/2023 12:55:39 PM
rw-r--r--
π
macros.python
3.36 KB
05/16/2023 12:55:39 PM
rw-r--r--
π
macros.python-srpm
5.95 KB
05/16/2023 12:55:39 PM
rw-r--r--
π
macros.python2
1.82 KB
04/21/2022 03:26:14 PM
rw-r--r--
π
macros.python3
3.63 KB
05/16/2023 12:55:39 PM
rw-r--r--
π
macros.qt5-qtbase
78 bytes
07/18/2024 05:55:35 PM
rw-r--r--
π
macros.rust-srpm
61 bytes
01/08/2018 07:15:07 PM
rw-r--r--
π
macros.selinux-policy
6.61 KB
12/17/2024 04:10:18 AM
rw-r--r--
π
macros.systemd
4.03 KB
12/17/2024 04:00:31 AM
rw-r--r--
π
macros.valgrind-srpm
127 bytes
05/15/2023 02:30:31 PM
rw-r--r--
π
macros.vim
40 bytes
08/02/2022 04:44:39 PM
rw-r--r--
π
macros.vpath
228 bytes
05/15/2023 02:30:31 PM
rw-r--r--
Editing: macros.fedora-misc
Close
# 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 }