[libint2] Initial import.

Susi Lehtola jussilehtola at fedoraproject.org
Tue May 7 13:32:17 UTC 2013


commit 3b2b3f2d4c9e291d7e7d80035e55145e81e1005d
Author: Susi Lehtola <jussilehtola at fedoraproject.org>
Date:   Tue May 7 16:32:08 2013 +0300

    Initial import.

 .gitignore   |    1 +
 libint2.spec |  111 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources      |    1 +
 3 files changed, 113 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..57b2236 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libint2-607hg.tar.bz2
diff --git a/libint2.spec b/libint2.spec
new file mode 100644
index 0000000..325c4e9
--- /dev/null
+++ b/libint2.spec
@@ -0,0 +1,111 @@
+# The source code the libint compiler generates is already very highly
+# optimized.  Further optimization done by the compiler does not
+# increase performance, but it just takes a *lot* longer to compile.
+%global optflags %(echo %{optflags} | sed "s|-O2|-O1|g")
+
+# Snapshot revision.
+%global hgrel 607
+
+Name:		libint2
+Version:	2.0.0
+Release:	3.%{hgrel}hg%{?dist}
+Summary:	A library for efficient evaluation of electron repulsion integrals
+Group:		System Environment/Libraries
+License:	GPLv2+
+URL:		http://sourceforge.net/p/libint
+# Upstream does not release stable tarball releases. Snapshot generated with
+#$ hg clone -u %{hgrel} http://hg.code.sf.net/p/libint/mercurial libint2
+#$ rm -rf libint2/.hg
+#$ tar jcf ~/rpmbuild/SOURCES/libint2-%{hgrel}hg.tar.bz2 libint2
+Source0:	libint2-%{hgrel}hg.tar.bz2
+
+# Required to build documentation
+BuildRequires:	tex(appendix.sty)
+BuildRequires:	tex(bbding.sty)
+BuildRequires:	tex(braket.sty)
+BuildRequires:	tex(framed.sty)
+BuildRequires:	tex(latex)
+BuildRequires:	tex(mathcomp.sty)
+BuildRequires:	tex(sfmath.sty)
+BuildRequires:	tex(subfigure.sty)
+Buildrequires:	tex(wrapfig.sty)
+BuildRequires:	tex-bibtex
+
+# Needed for bootstrap
+BuildRequires:	autoconf
+BuildRequires:	automake
+
+BuildRequires:	boost-devel
+BuildRequires:	gmp-devel
+BuildRequires:	mpfr-devel
+
+%description
+LIBINT computes the Coulomb and exchange integrals, which in electronic
+structure theory are called electron repulsion integrals (ERIs). This is by
+far the most common type of integrals in molecular structure theory.
+
+LIBINT uses recursive schemes that originate in seminal Obara-Saika method and
+Head-Gordon and Pople’s variation thereof. The idea of LIBINT is to optimize
+computer implementation of such methods by implementing an optimizing compiler
+to generate automatically highly-specialized code that runs well on
+super-scalar architectures.
+
+%package devel
+Summary:	Development headers and libraries for libint
+Group:		Development/Libraries
+Requires:	libint2%{?_isa} = %{version}-%{release}
+
+%description devel
+This package contains development headers and libraries for libint.
+It also contains a programmer's manual.
+
+%prep
+%setup -q -n %{name}
+
+%build
+aclocal -I lib/autoconf
+autoconf
+
+# Compile the compiler
+mkdir objdir-%{_arch}
+cd objdir-%{_arch}
+ln -s ../configure .
+%configure --enable-shared --disable-static \
+	   --enable-eri=2 --enable-eri3=2 --enable-eri2=2 \
+	   --with-max-am=4 --with-opt-am=2 --with-eri-max-am=7 \
+	   --with-eri-opt-am=3 --with-eri3-max-am=7 --with-eri2-max-am=7 \
+	   --disable-unrolling --enable-generic-code --enable-contracted-ints
+
+make %{?_smp_mflags}
+
+# Build documentation
+make -C doc
+
+%install
+make -C objdir-%{_arch} install DESTDIR=%{buildroot}
+
+find %{buildroot} -name *.la -delete
+find %{buildroot} -name *.so.*.* -exec chmod 755 {} \;
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%doc LICENSE
+%{_libdir}/libint*.so.*
+
+%files devel
+%doc objdir-%{_arch}/doc/progman/progman.pdf
+%{_includedir}/libint2/
+%{_libdir}/*.so
+
+%changelog
+* Mon May 06 2013 Susi Lehtola <jussilehtola at fedoraproject.org> - 2.0.0-3.607hg
+- Explicitly arched requires in -devel package.
+
+* Mon Feb 18 2013 Dominik Mierzejewski <rpm at greysector.net> - 2.0.0-2.607hg
+- Add missing tex build dependencies
+- Fix devel subpackage dependencies
+
+* Wed Jan 23 2012 Susi Lehtola <jussilehtola at fedoraproject.org> - 2.0.0-1.607hg
+- First release.
diff --git a/sources b/sources
index e69de29..e7050b4 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+1c3c829b1229c5ea94b86e03dc787091  libint2-607hg.tar.bz2


More information about the scm-commits mailing list