public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jussi Lehtola <jussilehtola@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/wannier90] f45: Fix location of Fortran modules. Use ATLAS instead of LAPACK. Fix test
Date: Thu, 15 Oct 2026 16:29:59 GMT	[thread overview]
Message-ID: <179208179953.1.16357209937239980190.rpms-wannier90-5b7f3f0e4c15@fedoraproject.org> (raw)

        A new commit has been pushed.

        Repo   : rpms/wannier90
        Branch : f45
        Commit : 5b7f3f0e4c158121944dc6912f64eec44116106f
        Author : Jussi Lehtola <jussilehtola@fedoraproject.org>
        Date   : 2009-09-16T17:24:23+00:00
        Stats  : +28/-13 in 1 file(s)
        URL    : https://src.fedoraproject.org/rpms/wannier90/c/5b7f3f0e4c158121944dc6912f64eec44116106f?branch=f45

        Log:
        Fix location of Fortran modules. Use ATLAS instead of LAPACK. Fix test
phase.

---
diff --git a/wannier90.spec b/wannier90.spec
index 06cdb59..99288ca 100644
--- a/wannier90.spec
+++ b/wannier90.spec
@@ -1,6 +1,6 @@
 Name:		wannier90
 Version:	1.1
-Release:	5%{?dist}
+Release:	6%{?dist}
 Summary:	Maximally-localised Wannier functions 
 Group:		Applications/Engineering
 License:	GPLv2+
@@ -11,12 +11,17 @@ Patch0:		wannier90-1.1-shlib.patch
 BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 
 BuildRequires:	gcc-gfortran
-BuildRequires:	lapack-devel
-# On Fedora this is pulled in by lapack-devel, but EPEL needs this
-BuildRequires:	blas-devel
 # For test phase
 BuildRequires:	perl(Cwd)
 
+# Linear algebra: use ATLAS
+BuildRequires:	atlas-devel
+
+# Reference LAPACK
+#BuildRequires:	lapack-devel
+# On Fedora this is pulled in by lapack-devel, but EPEL needs this
+#BuildRequires:	blas-devel
+
 %description
 Wannier90 is a program for calculating maximally-localised Wannier functions
 (MLWF) from a set of Bloch energy bands that may or may not be attached to or
@@ -58,7 +63,11 @@ chmod 644 utility/kmesh.pl
 echo "F90 = gfortran" > make.sys
 echo "FCOPTS = %{optflags} -fPIC" >> make.sys
 echo "LDOPTS = %{optflags} -fPIC" >> make.sys
-echo "LIBS = -lblas -llapack" >> make.sys
+
+# Use ATLAS
+echo "LIBS = -L%{_libdir}/atlas -lf77blas -latlas -llapack" >> make.sys
+# Use reference LAPACK
+#echo "LIBS = -lblas -llapack" >> make.sys
 
 make -C src %{?_smp_mflags} prog
 
@@ -70,14 +79,15 @@ install -D -p -m 755 wannier90.x %{buildroot}%{_bindir}/wannier90.x
 install -D -p -m 755 libwannier.so %{buildroot}%{_libdir}/libwannier.so
 
 # Fortran module files
-mkdir -p %{buildroot}%{_includedir}/%{name}
-install -p -m 644 src/*.mod %{buildroot}%{_includedir}/%{name}/
-
+mkdir -p %{buildroot}%{_fmoddir}
+install -p -m 644 src/*.mod %{buildroot}%{_fmoddir}/
 
 %clean
 rm -rf %{buildroot} 
 
 %check
+# Set path so that wannier finds its library
+export LD_LIBRARY_PATH=`pwd`
 make test
 
 %post -p /sbin/ldconfig
@@ -92,22 +102,27 @@ make test
 
 %files devel
 %defattr(-,root,root,-)
-%{_includedir}/%{name}/
+%{_fmoddir}/w90_*.mod
 
 
 %changelog
+* Wed Sep 16 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.1-6
+- Fix location of Fortran modules.
+- Fix check phase.
+- Use ATLAS instead of reference BLAS & LAPACK.
+
 * Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
 
-* Sat May 16 2009 Jussi Lehtola <jussi.lehtola@iki.fi> - 1.1-4
+* Sat May 16 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.1-4
 - Fix EPEL build by adding explicit BR: blas-devel.
 
-* Fri May 15 2009 Jussi Lehtola <jussi.lehtola@iki.fi> - 1.1-3
+* Fri May 15 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.1-3
 - Link binary against shared library.
 - Put library back into main package.
 
-* Tue Apr 21 2009 Jussi Lehtola <jussi.lehtola@iki.fi> - 1.1-2
+* Tue Apr 21 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.1-2
 - Break libs into own package.
 
-* Tue Apr 21 2009 Jussi Lehtola <jussi.lehtola@iki.fi> - 1.1-1
+* Tue Apr 21 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.1-1
 - First release.

                 reply	other threads:[~2026-10-15 16:29 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=179208179953.1.16357209937239980190.rpms-wannier90-5b7f3f0e4c15@fedoraproject.org \
    --to=jussilehtola@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