public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rpm] pmatilai-v6: Add compat links and Provides or building dnf and friends
@ 2026-11-23  9:34 Florian Festi
  0 siblings, 0 replies; only message in thread
From: Florian Festi @ 2026-11-23  9:34 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rpm
Branch : pmatilai-v6
Commit : 3aac3a0be990454cc27d6a5547c9a20a3ec09640
Author : Florian Festi <ffesti@redhat.com>
Date   : 2023-05-11T16:44:42+02:00
Stats  : +22/-1 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/rpm/c/3aac3a0be990454cc27d6a5547c9a20a3ec09640?branch=pmatilai-v6

Log:
Add compat links and Provides or building dnf and friends

---
diff --git a/rpm.spec b/rpm.spec
index f0b08d6..cf5091c 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -32,8 +32,9 @@
 
 %global rpmver 4.18.90
 #global snapver rc1
-%global baserelease 1
+%global baserelease 2
 %global sover 10
+%global oldsover 9
 
 %global srcver %{rpmver}%{?snapver:-%{snapver}}
 %global srcdir %{?snapver:testing}%{!?snapver:rpm-%(echo %{rpmver} | cut -d'.' -f1-2).x}
@@ -175,6 +176,17 @@ Requires(meta): %{name} = %{version}-%{release}
 Requires: rpm-sequoia%{_isa} >= 1.4.0
 %endif
 
+
+# XXX dirty temporary hack to "bootstrap" new .so version
+# XXX isa bits isn't quite right for multilib but suffices for this purpose
+%if %{__isa_bits} == 64
+Provides: librpmio.so.%{oldsover}()(64bit)
+Provides: librpm.so.%{oldsover}()(64bit)
+%else
+Provides: librpmio.so.%{oldsover}
+Provides: librpm.so.%{oldsover}
+%endif
+
 %description libs
 This package contains the RPM shared libraries.
 
@@ -395,6 +407,10 @@ cd _build
 # as it is currently in systemd-rpm-macros
 rm $RPM_BUILD_ROOT%{_rpmconfigdir}/fileattrs/sysusers.attr
 
+# XXX dirty temporary hack to "bootstrap" new .so version
+ln -s librpmio.so.%{sover} $RPM_BUILD_ROOT/%{_libdir}/librpmio.so.%{oldsover}
+ln -s librpm.so.%{sover} $RPM_BUILD_ROOT/%{_libdir}/librpm.so.%{oldsover}
+
 cd ..
 
 mkdir -p $RPM_BUILD_ROOT%{_unitdir}
@@ -526,6 +542,8 @@ fi
 %{_libdir}/librpm.so.%{sover}
 %{_libdir}/librpmio.so.%{sover}.*
 %{_libdir}/librpm.so.%{sover}.*
+%{_libdir}/librpmio.so.%{oldsover}
+%{_libdir}/librpm.so.%{oldsover}
 %if %{with plugins}
 %dir %{_libdir}/rpm-plugins
 
@@ -628,6 +646,9 @@ fi
 %doc %{_defaultdocdir}/rpm/API/
 
 %changelog
+* Thu May 11 2023 Florian Festi <ffesti@redhat.com> - 4.18.90-2
+- Add compat links for building dnf and friends
+
 * Thu May 04 2023 Florian Festi <ffesti@redhat.com> - 4.18.90-1
 - Update to 4.19 alpha
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-23  9:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23  9:34 [rpms/rpm] pmatilai-v6: Add compat links and Provides or building dnf and friends Florian Festi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox