public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/wannier90] f44: Fix location of Fortran modules. Use ATLAS instead of LAPACK. Fix test
@ 2026-10-15 16:30 Jussi Lehtola
  0 siblings, 0 replies; only message in thread
From: Jussi Lehtola @ 2026-10-15 16:30 UTC (permalink / raw)
  To: git-commits

        A new commit has been pushed.

        Repo   : rpms/wannier90
        Branch : f44
        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=f44

        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.

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-15 16:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-15 16:30 [rpms/wannier90] f44: Fix location of Fortran modules. Use ATLAS instead of LAPACK. Fix test Jussi Lehtola

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox