diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 04:25:26 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 04:25:26 +0000 |
commit | 5ceacb82619304a784634ee5bb0ad0ea4e54ab3c (patch) | |
tree | 3b5e6fd489662166a27092ed563714d2a678576a /rpm | |
parent | Initial commit. (diff) | |
download | package-notes-5ceacb82619304a784634ee5bb0ad0ea4e54ab3c.tar.xz package-notes-5ceacb82619304a784634ee5bb0ad0ea4e54ab3c.zip |
Adding upstream version 0.10~exp.upstream/0.10_exp
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'rpm')
-rw-r--r-- | rpm/macros.package-notes-srpm | 30 | ||||
-rw-r--r-- | rpm/redhat-package-notes.in | 2 |
2 files changed, 32 insertions, 0 deletions
diff --git a/rpm/macros.package-notes-srpm b/rpm/macros.package-notes-srpm new file mode 100644 index 0000000..a15d98c --- /dev/null +++ b/rpm/macros.package-notes-srpm @@ -0,0 +1,30 @@ +# SPDX-License-Identifier: CC0-1.0 +# +# This file is part of the package-notes package. +# +# Add an ELF note with information about the package the code was compiled for. +# See https://fedoraproject.org/wiki/Changes/Package_information_on_ELF_objects +# for details. +# +# To opt out of the use of this feature completely, include this in the spec +# file: +# +# %undefine _package_note_flags +# +# Which linker will be used? This should be either "bfd", "gold", "mold", or "lld". +# +# (The default linker for clang on armv7hl is lld.) +%_package_note_linker %["%_target_cpu" == "armv7hl" && "%{toolchain}" == "clang" ? "lld" : "bfd"] + +# These are defined for backwards compatibility. Do not use. +%_package_note_file 1 +%_generate_package_note_file %{nil} + +# Overall status: 1 if looks like we can insert the note, 0 otherwise +# Unfortunately "clang" does not support specs files so the note insertion is disabled when using it. +%_package_note_status %[0%{?_package_note_file:1} && 0%{?name:1} && "%_target_cpu" != "noarch" && "%{toolchain}" != "clang" ? 1 : 0] + +# The linker flags to be passed to the compiler to insert the notes section will +# be created by the spec file, to avoid issues with quoting and escaping across +# different build systems and shells. +%_package_note_flags %[%_package_note_status ? "-specs=/usr/lib/rpm/redhat/redhat-package-notes" : ""] diff --git a/rpm/redhat-package-notes.in b/rpm/redhat-package-notes.in new file mode 100644 index 0000000..3a19b1b --- /dev/null +++ b/rpm/redhat-package-notes.in @@ -0,0 +1,2 @@ +*link: ++ --package-metadata={\"type\":\"rpm\",\"name\":\"%:getenv(RPM_PACKAGE_NAME \",\"version\":\"%:getenv(RPM_PACKAGE_VERSION -%:getenv(RPM_PACKAGE_RELEASE \",\"architecture\":\"%:getenv(RPM_ARCH \",\"osCpe\":\"@OSCPE@\"})))) |