public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/package-notes] f44: Version 0.15
@ 2026-06-02 16:28
0 siblings, 0 replies; only message in thread
From: @ 2026-06-02 16:28 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/package-notes
Branch : f44
Commit : f4fbd5af66904fcd191aba881f35db49db8be63b
Author : Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Date : 2026-02-06T10:44:37+01:00
Stats : +51/-16 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/package-notes/c/f4fbd5af66904fcd191aba881f35db49db8be63b?branch=f44
Log:
Version 0.15
- This is a major version update that adds dlopen-notes parser
---
diff --git a/.gitignore b/.gitignore
index 2e1918a..9415524 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
/package-notes-0.4.tar.gz
/redhat-package-notes
+/package-notes-0.15.tar.gz
diff --git a/0001-rpm-use-a-r-.-guard-around-package-notes-LDFLAGS.patch b/0001-rpm-use-a-r-.-guard-around-package-notes-LDFLAGS.patch
new file mode 100644
index 0000000..6fca390
--- /dev/null
+++ b/0001-rpm-use-a-r-.-guard-around-package-notes-LDFLAGS.patch
@@ -0,0 +1,19 @@
+From e52dfeba8ba36fc765fbe0ff0d4c93ed9aac493b Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20B=C3=A9rat?= <fberat@redhat.com>
+Date: Tue, 27 Jan 2026 11:31:16 +0100
+Subject: [PATCH] rpm: use a '%{!r: ... }' guard around package notes LDFLAGS
+
+...to prevent double inclusion when performing a relocatable link ('-r').
+Relates to https://bugzilla.redhat.com/show_bug.cgi?id=2362272.
+---
+ rpm/redhat-package-notes.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/rpm/redhat-package-notes.in b/rpm/redhat-package-notes.in
+index 3a19b1be8a..1297ae5261 100644
+--- a/rpm/redhat-package-notes.in
++++ b/rpm/redhat-package-notes.in
+@@ -1,2 +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@\"}))))
+++ %{!r:--package-metadata={\"type\":\"rpm\",\"name\":\"%:getenv(RPM_PACKAGE_NAME \",\"version\":\"%:getenv(RPM_PACKAGE_VERSION -%:getenv(RPM_PACKAGE_RELEASE \",\"architecture\":\"%:getenv(RPM_ARCH \",\"osCpe\":\"@OSCPE@\"}))))}
diff --git a/package-notes.spec b/package-notes.spec
index dd0b59d..cf1b715 100644
--- a/package-notes.spec
+++ b/package-notes.spec
@@ -1,22 +1,34 @@
Name: package-notes
-Version: 0.5
+Version: 0.15
Release: %autorelease
-Summary: Generate LDFLAGS to insert .note.package section
+Summary: ELF Package and Dlopen Notes
License: 0BSD
URL: https://github.com/systemd/package-notes
-
-Source0: redhat-package-notes.in
-Source1: macros.package-notes-srpm
+Source: https://github.com/systemd/package-notes/archive/v%{version_no_tilde}/%{name}-%{version_no_tilde}.tar.gz
BuildArch: noarch
+Requires: python3dist(pyelftools)
+
+Patch: 0001-rpm-use-a-r-.-guard-around-package-notes-LDFLAGS.patch
%description
-This package provides a generator of linker scripts that insert a section with
-an ELF note with a JSON payload that describes the package the binary was built
-for.
+This package provides rpm macros to generate an '.note.package' ELF note in
+compiled binaries (programs and shared libraries) to provide metadata about
+the package for which the code was compiled.
+
+See https://systemd.io/ELF_PACKAGE_METADATA/ for the overview and details.
+
+It also provides scripts to extract and display '.note.dlopen' ELF notes that
+are used to describe libraries loaded via dlopen(3).
+
+See https://systemd.io/ELF_DLOPEN_METADATA/ for the overview and details.
+
+%files
+%{_bindir}/dlopen-notes
+%{_mandir}/man1/dlopen-notes.1*
%package srpm-macros
-Summary: %{summary}
+Summary: RPM macros to add .note.package ELF note
Obsoletes: package-notes < 0.5
# Those are minimum versions that implement --package-metadata
Conflicts: binutils < 2.37-34
@@ -24,23 +36,25 @@ Conflicts: binutils-gold < 2.37-34
Conflicts: mold < 1.3.0
Conflicts: lld < 14.0.5-4
+%files srpm-macros
+%{_rpmconfigdir}/redhat/redhat-package-notes
+%{_rpmmacrodir}/macros.package-notes-srpm
+
%description srpm-macros
RPM macros to insert a section with an ELF note with a JSON payload that
describes the package the binary was built for via a compiler spec file.
%prep
-# nothing to do
+%autosetup -p1
%build
-sed "s|@OSCPE@|$(cat /usr/lib/system-release-cpe)|" %{SOURCE0} >redhat-package-notes
+sed "s|@OSCPE@|$(cat /usr/lib/system-release-cpe)|" rpm/redhat-package-notes.in >rpm/redhat-package-notes
%install
-install -Dt %{buildroot}%{_rpmconfigdir}/redhat/ redhat-package-notes
-install -m0644 -Dt %{buildroot}%{_rpmmacrodir}/ %{SOURCE1}
+%make_install
-%files srpm-macros
-%{_rpmconfigdir}/redhat/redhat-package-notes
-%{_rpmmacrodir}/macros.package-notes-srpm
+install -Dt %{buildroot}%{_rpmconfigdir}/redhat/ rpm/redhat-package-notes
+install -m0644 -Dt %{buildroot}%{_rpmmacrodir}/ rpm/macros.package-notes-srpm
%changelog
%autochangelog
diff --git a/sources b/sources
index e69de29..49a1b61 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (package-notes-0.15.tar.gz) = 8abc4d22047b9cf9afde363c3957f74d84272b2b7a1c360ef27a2ad2e3c030132e071d80ae7624d6f4c8fe31648e8cb3e68db02c1a7dda3b8b5f1ef6389fde05
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-02 16:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-02 16:28 [rpms/package-notes] f44: Version 0.15
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox