public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/wannier90] f43: Imported in Fedora.
@ 2026-10-15 16:31 Jussi Lehtola
0 siblings, 0 replies; only message in thread
From: Jussi Lehtola @ 2026-10-15 16:31 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/wannier90
Branch : f43
Commit : a447cbc11726992251f6968a1e32fc3ef15a71c7
Author : Jussi Lehtola <jussilehtola@fedoraproject.org>
Date : 2009-05-16T07:48:42+00:00
Stats : +133/-0 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/wannier90/c/a447cbc11726992251f6968a1e32fc3ef15a71c7?branch=f43
Log:
Imported in Fedora.
---
diff --git a/.cvsignore b/.cvsignore
index e69de29..c3b3b92 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -0,0 +1 @@
+wannier90-1.1.tar.gz
diff --git a/import.log b/import.log
new file mode 100644
index 0000000..2462ceb
--- /dev/null
+++ b/import.log
@@ -0,0 +1 @@
+wannier90-1_1-3_fc10:HEAD:wannier90-1.1-3.fc10.src.rpm:1242460044
diff --git a/sources b/sources
index e69de29..a9265c1 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+2a547276e25d2345480ec3717c6c2f3f wannier90-1.1.tar.gz
diff --git a/wannier90-1.1-shlib.patch b/wannier90-1.1-shlib.patch
new file mode 100644
index 0000000..09c4089
--- /dev/null
+++ b/wannier90-1.1-shlib.patch
@@ -0,0 +1,25 @@
+diff -up wannier90-1.1/src/Makefile.orig wannier90-1.1/src/Makefile
+--- wannier90-1.1/src/Makefile.orig 2007-08-22 19:22:27.000000000 +0300
++++ wannier90-1.1/src/Makefile 2009-05-15 15:36:00.000000000 +0300
+@@ -8,16 +8,15 @@ OBJS = constants.o io.o utility.o para
+
+ OBJS2 = wannier_lib.o
+
+-LIBRARY = ../libwannier.a
++LIBRARY = ../libwannier.so
+
+-prog: $(OBJS)
+- $(F90) wannier_prog.F90 $(LDOPTS) $(OBJS) $(LIBS) -o ../wannier90.x
++prog: $(LIBRARY)
++ $(F90) wannier_prog.F90 $(LDOPTS) -L.. -lwannier $(LIBS) -o ../wannier90.x
+
+ libs: $(LIBRARY)
+
+-$(LIBRARY): $(OBJS) $(OBJS2)
+- $(AR) $(ARFLAGS) $(LIBRARY) $(OBJS2) $(OBJS)
+-
++$(LIBRARY): $(OBJS) $(OBJS2)
++ $(F90) $(FCOPTS) -shared -o $(LIBRARY) $(OBJS2) $(OBJS)
+
+
+ clean:
diff --git a/wannier90.spec b/wannier90.spec
new file mode 100644
index 0000000..3e6a254
--- /dev/null
+++ b/wannier90.spec
@@ -0,0 +1,105 @@
+Name: wannier90
+Version: 1.1
+Release: 3%{?dist}
+Summary: Maximally-localised Wannier functions
+Group: Applications/Engineering
+License: GPLv2+
+URL: http://wannier.org/
+Source0: http://quasiamore.mit.edu/wannier/code/wannier90-%{version}.tar.gz
+# Patch to enable building of shared library
+Patch0: wannier90-1.1-shlib.patch
+BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+
+BuildRequires: gcc-gfortran
+BuildRequires: lapack-devel
+# For test phase
+BuildRequires: perl(Cwd)
+
+%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
+mixed with other bands. The formalism works by minimising the total spread of
+the MLWF in real space. This is done in the space of unitary matrices that
+describe rotations of the Bloch bands at each k-point. As a result, wannier90
+is independent of the basis set used in the underlying calculation to obtain
+the Bloch states. Therefore, it may be interfaced straightforwardly to any
+electronic structure code. The locality of MLWF can be exploited to compute
+band-structure, density of states and Fermi surfaces at modest computational
+cost.
+
+Furthermore, wannier90 is able to output MLWF for visualisation and other
+post-processing purposes. Wannier functions are already used in a wide variety
+of applications. These include analysis of chemical bonding in real space;
+calculation of dielectric properties via the modern theory of polarisation;
+and as an accurate and minimal basis set in the construction of model
+Hamiltonians for large-scale systems, in linear-scaling quantum Monte Carlo
+calculations, and for efficient computation of material properties, such as
+the anomalous Hall coefficient.
+
+%package devel
+Summary: Development modules for Wannier90
+Group: Development/Languages
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+This package contains Fortran modules for Wannier90.
+
+%prep
+%setup -q
+%patch0 -p1
+
+# Remove executable flag from utility that is included in doc
+chmod 644 utility/kmesh.pl
+
+%build
+# Generate make.sys
+echo "F90 = gfortran" > make.sys
+echo "FCOPTS = %{optflags} -fPIC" >> make.sys
+echo "LDOPTS = %{optflags} -fPIC" >> make.sys
+echo "LIBS = -lblas -llapack" >> make.sys
+
+make -C src %{?_smp_mflags} prog
+
+%install
+rm -rf %{buildroot}
+# Binary & library
+install -D -p -m 755 wannier90.x %{buildroot}%{_bindir}/wannier90.x
+# Must install as executable so that find-debuginfo catches this
+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}/
+
+
+%clean
+rm -rf %{buildroot}
+
+%check
+make test
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+
+%files
+%defattr(-,root,root,-)
+%doc CHANGE.log LICENCE README utility/ doc/*.pdf examples/
+%{_bindir}/wannier90.x
+%{_libdir}/libwannier.so
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/%{name}/
+
+
+%changelog
+* Tue Apr 21 2009 Jussi Lehtola <jussi.lehtola@iki.fi> - 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
+- Break libs into own package.
+
+* Tue Apr 21 2009 Jussi Lehtola <jussi.lehtola@iki.fi> - 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:31 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:31 [rpms/wannier90] f43: Imported in Fedora Jussi Lehtola
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox