public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Antonio Trande <sagitter@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/petsc] f45: Fix PETSc64 pkgconfig files
Date: Fri, 11 Sep 2026 13:42:40 GMT	[thread overview]
Message-ID: <178913416022.1.13577828107507088998.rpms-petsc-680dea4e9359@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/petsc
Branch : f45
Commit : 680dea4e9359529a6fac3a07facb9402d3affd4b
Author : Antonio Trande <sagitter@fedoraproject.org>
Date   : 2026-09-11T15:13:37+02:00
Stats  : +7/-0 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/petsc/c/680dea4e9359529a6fac3a07facb9402d3affd4b?branch=f45

Log:
Fix PETSc64 pkgconfig files

---
diff --git a/petsc.spec b/petsc.spec
index e5c7877..076f587 100644
--- a/petsc.spec
+++ b/petsc.spec
@@ -614,6 +614,8 @@ cp -a %{name}-%{version} build64
 pushd build64
 %if %{with metis64}
 %patch -P 4 -p1 -b .metis64
+# Set include/petsc directory, need to be fixed during installation
+%patch -P 6 -p1 -b .backup
 %endif
 popd
 %endif
@@ -850,6 +852,11 @@ cp -p %{_arch}/lib/pkgconfig/PETSc.pc %{buildroot}%{_libdir}/pkgconfig/PETSc64.p
 cp -p %{_arch}/lib/pkgconfig/PETSc.pc %{buildroot}%{_libdir}/pkgconfig/petsc64.pc
 sed -e 's|${prefix}/lib|${prefix}/%{_lib}|g' -i %{buildroot}%{_libdir}/pkgconfig/PETSc64.pc
 sed -e 's|${prefix}/lib|${prefix}/%{_lib}|g' -i %{buildroot}%{_libdir}/pkgconfig/petsc64.pc
+sed -e 's|-lpetsc|-lpetsc64|g' -i %{buildroot}%{_libdir}/pkgconfig/PETSc64.pc
+sed -e 's|-lpetsc|-lpetsc64|g' -i %{buildroot}%{_libdir}/pkgconfig/petsc64.pc
+# Set include/petsc64 directory
+sed -e 's|-I${includedir}/petsc|-I${includedir}/petsc64|g' -i %{buildroot}%{_libdir}/pkgconfig/PETSc64.pc
+sed -e 's|-I${includedir}/petsc|-I${includedir}/petsc64|g' -i %{buildroot}%{_libdir}/pkgconfig/petsc64.pc
 
 install -pm 644 %{_arch}/lib/petsc/conf/petscrules %{buildroot}%{_libdir}/%{name}64/conf/
 install -pm 644 %{_arch}/lib/petsc/conf/petscvariables %{buildroot}%{_libdir}/%{name}64/conf/

                 reply	other threads:[~2026-09-11 13:42 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=178913416022.1.13577828107507088998.rpms-petsc-680dea4e9359@fedoraproject.org \
    --to=sagitter@fedoraproject.org \
    --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