f5357fa
Name:		ergo
c46dbda
Version:	3.4
50295d0
Release:	7%{?dist}
f5357fa
Summary:	A program for large-scale self-consistent field calculations
f5357fa
f5357fa
Group:		Applications/Engineering
f5357fa
License:	GPLv3+
f5357fa
URL:		http://www.ergoscf.org
f5357fa
Source0:	http://ergoscf.org/source/tarfiles/ergo-%{version}.tar.gz
f5357fa
BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
f5357fa
f51bbbe
%ifarch %ix86 x86_64
785a836
BuildRequires:	openblas-devel
f51bbbe
%else
f5357fa
BuildRequires:	atlas-devel
f51bbbe
%endif
f51bbbe
f5357fa
BuildRequires:	gcc-gfortran
f5357fa
BuildRequires:	doxygen
f5357fa
# For tests
f5357fa
BuildRequires:	bc
f5357fa
f5357fa
%description
f5357fa
Ergo is a quantum chemistry program for large-scale self-consistent
f5357fa
field calculations.
f5357fa
f5357fa
Key features of the Ergo program:
f5357fa
* Performs electronic structure calculations using Hartree-Fock and
f5357fa
  Kohn-Sham density functional theory.
f5357fa
* Uses Gaussian basis sets.
f5357fa
* Both core and valence electrons are included in the calculations.
f5357fa
* Both restricted and unrestricted models are implemented for energy
f5357fa
  calculations.
f5357fa
* Implements a broad range of both pure and hybrid Kohn-Sham density
f5357fa
  functionals.
f5357fa
* Employs modern linear scaling techniques like fast multipole
f5357fa
  methods, hierarchic sparse matrix algebra, density matrix
f5357fa
  purification, and efficient integral screening.
f5357fa
* Linear scaling is achieved not only in terms of CPU usage but also
f5357fa
  memory utilization.
f5357fa
* The time consuming parts of the code are currently parallelized
f5357fa
  using the shared-memory paradigm.
f5357fa
f5357fa
Linear response calculations of polarizabilities and excitation energies are
f5357fa
possible for the restricted reference density, although complete linear scaling
f5357fa
is in the current implementation not achieved since full dense matrices are
f5357fa
still used in parts of the linear response implementation.
f5357fa
f5357fa
%package doc
f5357fa
Summary: Documentation for ergo
f5357fa
Group:	 Documentation
f5357fa
%if 0%{?rhel} > 5 || 0%{?fedora} > 12
f5357fa
BuildArch: noarch
f5357fa
%endif
f5357fa
f5357fa
%description doc
f5357fa
This package contains the documentation for ergo.
f5357fa
f5357fa
%prep
c46dbda
%setup -q -n ergo-3.4
f5357fa
f5357fa
%build
f5357fa
# Compilers to use
f5357fa
export CXX=g++
f5357fa
export CC=gcc
f5357fa
export F77=gfortran
f5357fa
f5357fa
# Use OpenMP parallellization
f5357fa
export CFLAGS="%{optflags} -fopenmp"
f5357fa
export CXXFLAGS="${CFLAGS}"
f5357fa
export FFLAGS="${CFLAGS}"
f5357fa
f5357fa
# Linker flags
f5357fa
export LDFLAGS="-L%{_libdir}/atlas -fopenmp"
f51bbbe
%ifarch %ix86 x86_64
e85595e
export LIBS="-lopenblaso"
f51bbbe
%else
e197c4a
%if 0%{?fedora} >= 20 || 0%{?rhel} >= 7
e85595e
export LIBS="-lsatlas"
e197c4a
%else
e197c4a
export LIBS="-llapack -lf77blas -latlas"
f51bbbe
%endif
f51bbbe
%endif
f5357fa
f5357fa
# Build program
f51bbbe
%configure --disable-linalgebra-templates
f5357fa
make %{?_smp_mflags} V=1
f5357fa
f5357fa
# Build documentation
f5357fa
doxygen
f5357fa
f5357fa
%install
f5357fa
rm -rf %{buildroot}
f5357fa
make install DESTDIR=%{buildroot}
f5357fa
f5357fa
# Install basis sets
f5357fa
mkdir -p %{buildroot}%{_datadir}/%{name}
f5357fa
cp -a basis %{buildroot}%{_datadir}/%{name}
f5357fa
chmod 644 %{buildroot}%{_datadir}/%{name}/basis/*
f5357fa
rm %{buildroot}%{_datadir}/%{name}/basis/Makefile*
f5357fa
f5357fa
%check
f5357fa
# The check phase runs calculations, so it can be quite slow.
f5357fa
make check VERBOSE=1
f5357fa
f5357fa
%clean
f5357fa
rm -rf %{buildroot}
f5357fa
f5357fa
%files
f5357fa
%defattr(-,root,root,-)
f5357fa
%doc ChangeLog COPYING README ergo_license_long.txt ergo_release_notes*
f5357fa
%{_bindir}/ergo
f5357fa
%{_datadir}/%{name}
f5357fa
f5357fa
%files doc
f5357fa
%defattr(-,root,root,-)
f5357fa
%doc COPYING documentation/html/*
f5357fa
f5357fa
%changelog
50295d0
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.4-7
50295d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
50295d0
5fb8644
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.4-6
5fb8644
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
5fb8644
5df363c
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.4-5
5df363c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
5df363c
7b54be2
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4-4
7b54be2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
7b54be2
a519d2c
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.4-3
a519d2c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
a519d2c
cc0f56f
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.4-2
cc0f56f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
cc0f56f
c46dbda
* Mon Sep 21 2015 Susi Lehtola <jussilehtola@fedoraproject.org> - 3.4-1
c46dbda
- Update to 3.4.
c46dbda
adc57bd
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.1-5
adc57bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
adc57bd
f2fe157
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 3.3.1-4
f2fe157
- Rebuilt for GCC 5 C++11 ABI change
f2fe157
8e62c0c
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.1-3
8e62c0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
8e62c0c
409a581
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.1-2
409a581
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
409a581
785a836
* Wed Sep 25 2013 Susi Lehtola <jussilehtola@fedoraproject.org> - 3.3.1-1
32f5ea7
- Update to 3.3.1.
32f5ea7
f51bbbe
* Sun Sep 22 2013 Susi Lehtola <jussilehtola@fedoraproject.org> - 3.3-1
f51bbbe
- Update to 3.3.
f51bbbe
2e7d4ef
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-3
2e7d4ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2e7d4ef
9cba22f
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-2
9cba22f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
9cba22f
42cc72a
* Wed Nov 21 2012 Jussi Lehtola <jussilehtola@fedoraproject.org> - 3.2.1-1
42cc72a
- Update to 3.2.1, fixing operation with global basis set library.
42cc72a
f5357fa
* Mon Sep 17 2012 Jussi Lehtola <jussilehtola@fedoraproject.org> - 3.2-2
f5357fa
- Fix tests on i686.
f5357fa
f5357fa
* Thu Jul 05 2012 Jussi Lehtola <jussilehtola@fedoraproject.org> - 3.2-1
f5357fa
- Update to 3.2.
f5357fa
f5357fa
* Thu Aug 11 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 3.1-1
f5357fa
- Update to 3.1.
f5357fa
f5357fa
* Wed Apr 27 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 3.0-1
f5357fa
- Initial release.