File python-MDAnalysis.spec of Package python-MDAnalysis
#
# spec file for package python-MDAnalysis
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define modname MDAnalysis
Name: python-%{modname}
Version: 0.15.0
Release: 0
Summary: Python Tools for Molecular Dynamics Analysis
License: GPL-2.0
Group: Development/Libraries/Python
Url: http://code.google.com/p/mdanalysis/
Source: http://mdanalysis.googlecode.com/files/%{modname}-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: flex
BuildRequires: gcc-c++
BuildRequires: python-GridDataFormats
BuildRequires: python-biopython
BuildRequires: python-devel
BuildRequires: python-networkx
BuildRequires: python-numpy-devel >= 0.15
BuildRequires: python-scipy
BuildRequires: python-setuptools
Requires: python-GridDataFormats
Requires: python-biopython
Requires: python-networkx
Requires: python-numpy >= 0.15
Requires: python-scipy
Requires: python-xml
Recommends: python-matplotlib
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%py_requires
%description
MDAnalysis is an object-oriented python toolkit to analyze molecular
dynamics trajectories generated by CHARMM, Gromacs, NAMD, LAMMPS,
Amber or DL_POLY.
It allows one to read molecular dynamics trajectories and access the
atomic coordinates through numpy arrays. This provides a flexible and
relatively fast framework for complex analysis tasks. In addition,
CHARMM-style atom selection commands are implemented. Trajectories
can also be manipulated (for instance, fit to a reference structure)
and written out.
%prep
%setup -n %{modname}-%{version}
%build
export CFLAGS="%{optflags}"
python setup.py build
%install
python setup.py install --root=%{buildroot} --prefix=%{_prefix}
%fdupes %{buildroot}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc AUTHORS CHANGELOG LICENSE README SUMMARY.txt
%{py_sitedir}/%{modname}/
%{py_sitedir}/%{modname}-%{version}-py%{py_ver}.egg-info/
%changelog