# # spec file for package python-biopython # # Copyright (c) 2018 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/ # # Tests require a network connection %bcond_with test %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-biopython Version: 1.71 Release: 0 Summary: Python Tools for Computational Molecular Biology License: MIT Group: Development/Libraries/Python Url: http://www.biopython.org Source: https://files.pythonhosted.org/packages/source/b/biopython/biopython-%{version}.tar.gz BuildRequires: flex BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: python3-2to3 BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module numpy-devel} BuildRequires: %{python_module xml} Requires: python-numpy Requires: python-xml Recommends: python-matplotlib Recommends: python-mysql Recommends: python-networkx Recommends: python-psycopg2 Recommends: python-pydot Recommends: python-pygraphviz Recommends: python-rdflib Recommends: python-reportlab BuildRoot: %{_tmppath}/%{name}-%{version}-build %python_subpackages %description The Biopython Project is an international association of developers of freely available Python tools for computational molecular biology. %prep %setup -n biopython-%{version} # remove all execute bits from documentation and fix line endings find -type f -exec chmod -x {} 2>/dev/null ';' find -type f -exec sed -i 's/\r//' {} 2>/dev/null ';' # remove she-bang lines in .py files to keep rpmlint happy find -type f -name "*.py" -exec sed -i '/^#![ ]*\/usr\/bin\/.*$/ d' {} 2>/dev/null ';' sed -i '/^#![ ]*\/usr\/bin\/.*$/ d' Scripts/Structure/hsexpo %build export LANG=en_US.UTF-8 %python_build %install export LANG=en_US.UTF-8 %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %if %{with test} %check export LANG=en_US.UTF-8 %python_exec setup.py test %endif %files %{python_files} %defattr(-,root,root) %doc CONTRIB.rst DEPRECATED.rst NEWS.rst README.rst %doc Doc/ %license LICENSE.rst %{python_sitearch}/Bio/ %{python_sitearch}/BioSQL/ %{python_sitearch}/biopython-%{version}-py*.egg-info %changelog