[PyQuante] Update to 1.6.4.

Jussi Lehtola jussilehtola at fedoraproject.org
Sat Jan 22 00:18:56 UTC 2011


commit 6ab3bd583ae68329a53a32268e9077128bafabf8
Author: Jussi Lehtola <jussilehtola at fedoraproject.org>
Date:   Sat Jan 22 02:18:45 2011 +0200

    Update to 1.6.4.

 .gitignore    |    1 +
 PyQuante.spec |   44 +++++++++++++++++++++++++++-----------------
 sources       |    2 +-
 3 files changed, 29 insertions(+), 18 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 436a7f5..fa1601e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 PyQuante-1.6.3.tar.gz
 /PyQuante-174svn.tar.bz2
+/PyQuante-1.6.4.tar.gz
diff --git a/PyQuante.spec b/PyQuante.spec
index 585ceaf..ddcf6e9 100644
--- a/PyQuante.spec
+++ b/PyQuante.spec
@@ -1,16 +1,20 @@
+# Define python_sitearch macro
 %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
 
-%global svnrel 174svn
+# we don't want to provide private python extension libs
+%{?filter_setup:
+%filter_provides_in %{python_sitearch}/.*\.so$ 
+%filter_setup
+}
 
 Name:		PyQuante
-Version:	1.6.3
-Release:	6.%{svnrel}%{?dist}
+Version:	1.6.4
+Release:	1%{?dist}
 Summary:	Python Quantum Chemistry
 Group:		Applications/Engineering
 License:	BSD
 URL:		http://pyquante.sourceforge.net/
-#Source0:	http://downloads.sourceforge.net/pyquante/%{name}-%{version}.tar.gz
-Source0:	%{name}-%{svnrel}.tar.bz2
+Source0:	http://downloads.sourceforge.net/pyquante/%{name}-%{version}.tar.gz
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 Patch0:		PyQuante-libint.patch
@@ -49,9 +53,12 @@ PyQuante.
 
 
 %prep
-#setup -q
-%setup -q -n pyquante 
+%setup -q
 %patch0 -p1 -b .sharedlib
+# Get rid of spurious attributes
+chmod 644 LICENSE Src/{cints.c,chgp.c,crys.c,crys.h}
+# Get rid of spurious files
+rm -rf Tests/.gdb_history
 
 %build
 python -c 'import setuptools; execfile("setup.py")' build --enable-libint
@@ -59,38 +66,41 @@ python -c 'import setuptools; execfile("setup.py")' build --enable-libint
 %install
 rm -rf %{buildroot}
 python -c 'import setuptools; execfile("setup.py")' install --skip-build --root %{buildroot}
-mkdir -p %{buildroot}/%{_datadir}/%{name}
-cp -a Tests %{buildroot}/%{_datadir}/%{name}/
 
 %clean
 rm -rf %{buildroot}
 
 %check
-# Run tests
+# Make tests able to find PyQuante
 libdir=`ls build/|grep lib`
 export PYTHONPATH=`pwd`/build/$libdir
-
+# Run tests
 cd Tests
 ./runalltests.py 
 
 %files
 %defattr(-,root,root,-)
-%doc LICENSE README Doc/*
+%doc LICENSE README
 %{python_sitearch}/%{name}/
-# libint library goes into a different package
-%exclude %{python_sitearch}/%{name}/clibint.so
 %{python_sitearch}/%{name}-%{version}-py*.egg-info
-%{_datadir}/%{name}/
+# libint library goes into a different package due to different licensing
+%exclude %{python_sitearch}/%{name}/clibint.so
 
 %files libint
 %defattr(-,root,root,-)
 %{python_sitearch}/%{name}/clibint.so
 
 %changelog
-* Wed Dec 01 2010 Jussi Lehtola <jussilehtola at fedoraproject.org> - 1.6.3-6.174svn
-- Added Requires: openbabel.
+* Sat Jan 22 2011 Jussi Lehtola <jussilehtola at fedoraproject.org> - 1.6.4-1
+- Update to 1.6.4.
+- Drop tests from package, since they are run upon build.
+
+* Thu Dec 02 2010 Jussi Lehtola <jussilehtola at fedoraproject.org> - 1.6.3-7.174svn
 - Rebuild against libint, which was recompiled to support basis sets of
   larger angular momentum.
+
+* Wed Dec 01 2010 Jussi Lehtola <jussilehtola at fedoraproject.org> - 1.6.3-6.174svn
+- Added Requires: openbabel.
 - Split libint library in a separate package due to the resulting binary
   being GPLv2+ licensed.
 
diff --git a/sources b/sources
index 30524cf..be93283 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-1f1083a8c2c40fb865a1cc344a3d193f  PyQuante-174svn.tar.bz2
+01727ce8b5be0377e450112d30bbe403  PyQuante-1.6.4.tar.gz


More information about the scm-commits mailing list