public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowi@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/dSFMT] epel10: Fix flatpak build
Date: Thu, 05 Nov 2026 09:22:15 GMT [thread overview]
Message-ID: <179387053525.1.18408575108878985564.rpms-dSFMT-0cdcc4a2c8ad@fedoraproject.org> (raw)
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
reply other threads:[~2026-11-05 9:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179387053525.1.18408575108878985564.rpms-dSFMT-0cdcc4a2c8ad@fedoraproject.org \
--to=yselkowi@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox