File python-MDAnalysisTestData.spec of Package python-MDAnalysisTestData

#
# spec file for package python-MDAnalysisTestData
#
# Copyright (c) 2013 SUSE LINUX Products 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 MDAnalysisTestData
Name:           python-%{modname}
Version:        0.7.4
Release:        0
Summary:        Python Tools for Molecular Dynamics Analysis Test Data
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:  python-devel
BuildRequires:  python-setuptools
Requires:       python-xml
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%py_requires
%if 0%{?suse_version} <= 1110
%define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(True);")
%else
BuildArch:      noarch
%endif

%description
MDAnalysis is an object-oriented python toolkit to analyze molecular
dynamics trajectories generated by CHARMM, Gromacs, NAMD, LAMMPS, or
Amber.

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}

mkdir -p %{buildroot}/%{_datadir}/%{name}

%fdupes %{buildroot}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_datadir}/%{name}
%{python_sitelib}/%{modname}
%{python_sitelib}/%{modname}-%{version}-py%{py_ver}.egg-info/

%changelog
openSUSE Build Service is sponsored by