public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/dSFMT] epel10: Fix flatpak build
@ 2026-11-05 9:22 Yaakov Selkowitz
0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-11-05 9:22 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/dSFMT
Branch : epel10
Commit : 0cdcc4a2c8ad7c3d19baf974068c4bdc1263194f
Author : Yaakov Selkowitz <yselkowi@redhat.com>
Date : 2024-06-27T22:44:14-04:00
Stats : +4/-6 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/dSFMT/c/0cdcc4a2c8ad7c3d19baf974068c4bdc1263194f?branch=epel10
Log:
Fix flatpak build
The Makefile requires that prefix, libdir, and includedir all be overridden
for installs in /app to work correctly.
---
diff --git a/dSFMT-2.2.3_pkgconfig.patch b/dSFMT-2.2.3_pkgconfig.patch
index fa5298e..7960549 100644
--- a/dSFMT-2.2.3_pkgconfig.patch
+++ b/dSFMT-2.2.3_pkgconfig.patch
@@ -1,9 +1,9 @@
--- /dev/null 2014-05-26 12:52:26.157396990 +0200
+++ dSFMT.pc 2014-06-05 17:18:04.357570200 +0200
@@ -0,0 +1,11 @@
-+prefix=/usr
++prefix=@prefix@
+exec_prefix=${prefix}
-+libdir=${prefix}/lib64
++libdir=@libdir@
+includedir=${prefix}/include
+
+Name: dSFMT
diff --git a/dSFMT-2.2.3_sharedlib.patch b/dSFMT-2.2.3_sharedlib.patch
index dfd0091..bf6e2bf 100644
--- a/dSFMT-2.2.3_sharedlib.patch
+++ b/dSFMT-2.2.3_sharedlib.patch
@@ -268,7 +268,7 @@
+ $(CHK_DIR_EXISTS) $(DESTDIR)$(includedir) || $(MKDIR) $(DESTDIR)$(includedir)
+ $(CHK_DIR_EXISTS) $(DESTDIR)$(libdir)/pkgconfig || $(MKDIR) $(DESTDIR)$(libdir)/pkgconfig
+ $(INSTALL_FILE) $(HEADERS) $(DESTDIR)$(includedir)
-+ @sed -e 's|libdir=%{prefix}/lib64|libdir=$(libdir)|g' -i $(TARGET).pc
++ @sed -e 's|prefix=@prefix@|prefix=$(prefix)|' -e 's|libdir=@libdir@|libdir=$(libdir)|g' -i $(TARGET).pc
+ $(INSTALL_FILE) $(TARGET).pc $(DESTDIR)$(libdir)/pkgconfig
clean:
diff --git a/dSFMT.spec b/dSFMT.spec
index a47cc79..2a9242f 100644
--- a/dSFMT.spec
+++ b/dSFMT.spec
@@ -58,9 +58,7 @@ make %{?_smp_mflags} \
%install
%make_install \
- DESTDIR=$RPM_BUILD_ROOT libdir=%{_libdir}
-
-install -pm644 %{name}.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig/
+ DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix} libdir=%{_libdir} includedir=%{_includedir}
%check
make std-check
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-05 9:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-05 9:22 [rpms/dSFMT] epel10: Fix flatpak build Yaakov Selkowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox