rpms/python-cclib/F-10 python-cclib.spec,NONE,1.1 sources,1.1,1.2

Jussi Lehtola jussilehtola at fedoraproject.org
Mon May 4 06:25:25 UTC 2009


Author: jussilehtola

Update of /cvs/pkgs/rpms/python-cclib/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv15842/F-10

Modified Files:
	sources 
Added Files:
	python-cclib.spec 
Log Message:
Imported in Fedora.



--- NEW FILE python-cclib.spec ---
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

%global oname cclib

Name:		python-cclib
Version:	0.91
Release:	4%{?dist}
Summary:	A library for processing results of computational chemistry packages
Group:		Development/Languages
License:	LGPLv2+
URL:		http://cclib.sourceforge.net/
Source0:	http://downloads.sourceforge.net/%{oname}/%{oname}-%{version}.tar.gz
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:	noarch

BuildRequires:	python-devel
# For test phase
BuildRequires:	numpy
Requires:	numpy

# Supplementary Requires:
Requires:	PyQt4
Requires:	PyQuante
Requires:	python-biopython
Requires:	python-openbabel
Requires:	vtk-python

%description
cclib is an open source library, written in Python, for parsing and
interpreting the results of computational chemistry packages. The current
version, cclib 0.9, parses output files from ADF, GAMESS (US), GAMESS-UK,
Gaussian, Jaguar, Molpro, ORCA and PC GAMESS.

%prep
%setup -q -n %{oname}-%{version}
# Fix permissions
find . -type f -exec chmod 644 {} \;
# Fix line endings
for file in PKG-INFO test/*.py; do
 sed -e 's|\r||g' $file > $file.new &&
 touch -r $file $file.new &&
 mv $file.new $file
done

%build
python setup.py build

%install
rm -rf $RPM_BUILD_ROOT
python setup.py install -O1 --skip-build --root %{buildroot}

 
%clean
rm -rf %{buildroot}

# Test phase needs installed python-cclib 
%check
cd test
PYTHONPATH=../build/lib python testall.py


%files
%defattr(-,root,root,-)
%doc ANNOUNCE CHANGELOG LICENSE PKG-INFO README THANKS
%{python_sitelib}/%{oname}/
%{python_sitelib}/%{oname}-*.egg-info
%{_bindir}/ccget
%{_bindir}/cda

%changelog
* Sat May 02 2009 Jussi Lehtola <jussi.lehtola at iki.fi> - 0.91-4
- Put everything in main package instead.

* Fri Apr 24 2009 Jussi Lehtola <jussi.lehtola at iki.fi> - 0.91-3
- Branched supplementary Requires metapackage.

* Thu Apr 23 2009 Jussi Lehtola <jussi.lehtola at iki.fi> - 0.91-2
- Added BR: numpy and Requires: numpy.
- Removed test/ from %%doc.

* Thu Apr 23 2009 Jussi Lehtola <jussi.lehtola at iki.fi> - 0.91-1
- First release.


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/python-cclib/F-10/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	4 May 2009 03:42:52 -0000	1.1
+++ sources	4 May 2009 06:24:55 -0000	1.2
@@ -0,0 +1 @@
+64dddde2cf1ab50cf8cb7f2882c88025  cclib-0.91.tar.gz




More information about the fedora-extras-commits mailing list