summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCopr dist git <copr-devel@lists.fedorahosted.org>2017-03-12 02:21:48 +0000
committerCopr dist git <copr-devel@lists.fedorahosted.org>2017-03-12 02:21:48 +0000
commit1f6bd9faf96a4586ff33859acd9d2b2d47bda881 (patch)
tree7e7c23ab6662ee9b17e0a6f0806683b35696db02
parentf33d0fdb22c806d2e26c9f7349cf79f7ed59f980 (diff)
import_srpmf25
-rw-r--r--.gitignore1
-rw-r--r--python-horton.spec73
-rw-r--r--sources1
3 files changed, 75 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..e8e340c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/2.1.0b1.tar.gz
diff --git a/python-horton.spec b/python-horton.spec
new file mode 100644
index 0000000..cf00ef9
--- /dev/null
+++ b/python-horton.spec
@@ -0,0 +1,73 @@
+# sitelib for noarch packages, sitearch for others (remove the unneeded one)
+%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%{!?__python2: %global __python2 /usr/bin/python2}
+
+Name: python-horton
+Version: 2.1.0b1
+Release: 1%{?dist}
+Summary: Horton is a development platform for electronic structure methods
+
+License: GPLv3+
+URL: http://theochem.github.io/horton/
+Source0: https://github.com/theochem/horton/archive/%{version}.tar.gz
+
+BuildRequires: python-devel
+BuildRequires: python2-numpy
+BuildRequires: python2-scipy
+BuildRequires: python-nose
+BuildRequires: python2-h5py
+BuildRequires: hdf5
+BuildRequires: Cython
+BuildRequires: sympy
+BuildRequires: python2-matplotlib
+BuildRequires: libxc
+BuildRequires: libxc-devel
+BuildRequires: libint2
+BuildRequires: libint2-devel
+BuildRequires: atlas-devel
+BuildRequires: gcc
+BuildRequires: gcc-c++
+BuildRequires: gcc-gfortran
+BuildRequires: redhat-rpm-config
+BuildRequires: gcc
+BuildRequires: gcc
+BuildRequires: gcc
+
+
+%description
+Horton is a development platform for electronic structure methods.
+
+%prep
+%autosetup -n horton-%{version}
+
+
+%build
+# Remove CFLAGS=... for noarch packages (unneeded)
+# make -C data/refatoms
+./tools/qa/install_libxc-2.2.2.sh
+./tools/qa/install_libint-2.0.3.sh
+CPATH=%{_includedir}/libint2 CFLAGS="$RPM_OPT_FLAGS" %{__python2} setup.py build
+
+%install
+rm -rf %{buildroot}
+INSTALL_DIR=/usr/share/horton %{__python2} setup.py install -O1 --skip-build --root %{buildroot}
+
+%check
+cd %{buildroot}%{python2_sitearch}
+echo "backend: Agg" > %{buildroot}%{python2_sitearch}/matplotlibrc
+MATPLOTLIBRC=%{buildroot}%{python2_sitearch} HORTONDATA=%{buildroot}%{_datadir}/horton PYTHONPATH=%{buildroot}%{python2_sitearch} PATH=%{buildroot}%{_bindir}:$PATH nosetests -v horton
+
+%files
+%doc
+# For arch-specific packages: sitearch
+%{python2_sitearch}/*
+%{_bindir}/*
+%{_datadir}/horton/*
+%{_includedir}/python2.7/*
+%{_includedir}/horton/*
+%doc README COPYING
+
+
+%changelog
+* Tue Jun 28 2016 Matt Chan <talcite@gmail.com> - 2.1.0b1-1
+- Initial build
diff --git a/sources b/sources
index e69de29..920becb 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+6d9364d4df5d4fac1fdfe68c471b9e8a 2.1.0b1.tar.gz