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] f44: Add finclude directory (rhbz#2502195)
Date: Sun, 19 Jul 2026 20:12:53 GMT [thread overview]
Message-ID: <178449197384.1.12364185245881191151.rpms-petsc-03f564f0035d@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/petsc
Branch : f44
Commit : 03f564f0035db4e8abc9f84de316914db0a5d43c
Author : Antonio Trande <sagitter@fedoraproject.org>
Date : 2026-07-19T22:12:30+02:00
Stats : +16/-6 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/petsc/c/03f564f0035db4e8abc9f84de316914db0a5d43c?branch=f44
Log:
Add finclude directory (rhbz#2502195)
---
diff --git a/petsc.spec b/petsc.spec
index 4625ca4..fd3a918 100644
--- a/petsc.spec
+++ b/petsc.spec
@@ -791,8 +791,10 @@ ln -sf libpetsc.so.%{version} %{buildroot}%{_libdir}/libpetsc.so.%{releasever}
ln -sf libpetsc.so.%{version} %{buildroot}%{_libdir}/libpetsc.so.%{majorver}
install -pm 644 %{_arch}/include/*.h %{buildroot}%{_includedir}/%{name}/
+cp -a %{_arch}/include/petsc/finclude %{buildroot}%{_includedir}/%{name}/
install -pm 644 %{_arch}/include/*.mod %{buildroot}%{_fmoddir}/%{name}/
-cp -a include/* %{buildroot}%{_includedir}/%{name}/
+install -pm 644 include/*.h %{buildroot}%{_includedir}/%{name}/
+cp -a include/petsc/private %{buildroot}%{_includedir}/%{name}/
cp -a %{_arch}/lib/pkgconfig %{buildroot}%{_libdir}/
sed -e 's|${prefix}/lib|${prefix}/%{_lib}|g' -i %{buildroot}%{_libdir}/pkgconfig/PETSc.pc
@@ -825,8 +827,10 @@ ln -sf libpetsc64.so.%{version} %{buildroot}%{_libdir}/libpetsc64.so.%{releaseve
ln -sf libpetsc64.so.%{version} %{buildroot}%{_libdir}/libpetsc64.so.%{majorver}
install -pm 644 %{_arch}/include/*.h %{buildroot}%{_includedir}/%{name}64/
+cp -a %{_arch}/include/petsc/finclude %{buildroot}%{_includedir}/%{name}64/
install -pm 644 %{_arch}/include/*.mod %{buildroot}%{_fmoddir}/%{name}64/
-cp -a include/* %{buildroot}%{_includedir}/%{name}64/
+install -pm 644 include/*.h %{buildroot}%{_includedir}/%{name}64/
+cp -a include/petsc/private %{buildroot}%{_includedir}/%{name}64/
cp -p %{_arch}/lib/pkgconfig/PETSc.pc %{buildroot}%{_libdir}/pkgconfig/PETSc64.pc
cp -p %{_arch}/lib/pkgconfig/PETSc.pc %{buildroot}%{_libdir}/pkgconfig/petsc64.pc
@@ -843,8 +847,8 @@ sed -e 's|-L%{_prefix}/%{_arch}/lib|-L%{_libdir}|g' -i %{buildroot}%{_libdir}/%{
sed -e 's|-I%{_prefix}/%{_arch}/include/|-I%{_includedir}/%{name}64 -I%{_fmoddir}/%{name}64|g' -i %{buildroot}%{_libdir}/%{name}64/conf/petscvariables
sed -e 's|${PETSC_DIR}/${PETSC_ARCH}/lib|%{_libdir}|g' -i %{buildroot}%{_libdir}/%{name}64/conf/variables
sed -e 's|${PETSC_DIR}/${PETSC_ARCH}/lib|%{_libdir}|g' -i %{buildroot}%{_libdir}/%{name}64/conf/rules
-sed -e 's|${PETSC_DIR}|%{_prefix}|g' -i %{buildroot}%{_libdir}/%{name}/conf/petscrules
-sed -e 's|${PETSC_DIR}|%{_prefix}|g' -i %{buildroot}%{_libdir}/%{name}/conf/petscvariables
+sed -e 's|${PETSC_DIR}|%{_prefix}|g' -i %{buildroot}%{_libdir}/%{name}64/conf/petscrules
+sed -e 's|${PETSC_DIR}|%{_prefix}|g' -i %{buildroot}%{_libdir}/%{name}64/conf/petscvariables
popd
%endif
@@ -862,8 +866,11 @@ ln -sf libpetsc.so.%{version} %{buildroot}$MPI_LIB/libpetsc.so.%{releasever}
ln -sf libpetsc.so.%{version} %{buildroot}$MPI_LIB/libpetsc.so.%{majorver}
install -pm 644 %{_arch}/include/*.h %{buildroot}$MPI_INCLUDE/%{name}/
+cp -a %{_arch}/include/petsc/finclude %{buildroot}$MPI_INCLUDE/%{name}/
install -pm 644 %{_arch}/include/*.mod %{buildroot}$MPI_FORTRAN_MOD_DIR/%{name}/
-cp -a include/* %{buildroot}$MPI_INCLUDE/%{name}/
+install -pm 644 include/*.h %{buildroot}$MPI_INCLUDE/%{name}/
+cp -a include/petsc/private %{buildroot}$MPI_INCLUDE/%{name}/
+cp -a include/petsc/mpiuni %{buildroot}$MPI_INCLUDE/%{name}/
cp -a %{_arch}/lib/pkgconfig %{buildroot}$MPI_LIB/
sed -e 's|-I${includedir}/petsc|-I%{_includedir}/openmpi-%{_arch}/petsc|g' -i %{buildroot}$MPI_LIB/pkgconfig/PETSc.pc
@@ -928,8 +935,11 @@ ln -sf libpetsc.so.%{version} %{buildroot}$MPI_LIB/libpetsc.so.%{releasever}
ln -sf libpetsc.so.%{version} %{buildroot}$MPI_LIB/libpetsc.so.%{majorver}
install -pm 644 %{_arch}/include/*.h %{buildroot}$MPI_INCLUDE/%{name}/
+cp -a %{_arch}/include/petsc/finclude %{buildroot}$MPI_INCLUDE/%{name}/
install -pm 644 %{_arch}/include/*.mod %{buildroot}$MPI_FORTRAN_MOD_DIR/%{name}/
-cp -a include/* %{buildroot}$MPI_INCLUDE/%{name}/
+install -pm 644 include/*.h %{buildroot}$MPI_INCLUDE/%{name}/
+cp -a include/petsc/private %{buildroot}$MPI_INCLUDE/%{name}/
+cp -a include/petsc/mpiuni %{buildroot}$MPI_INCLUDE/%{name}/
cp -a %{_arch}/lib/pkgconfig %{buildroot}$MPI_LIB/
sed -e 's|-I${includedir}/petsc|-I%{_includedir}/mpich-%{_arch}/petsc|g' -i %{buildroot}$MPI_LIB/pkgconfig/PETSc.pc
reply other threads:[~2026-07-19 20:12 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=178449197384.1.12364185245881191151.rpms-petsc-03f564f0035d@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