%global srcname nixio %global sum Python bindings for NIX Name: python-%{srcname} Version: 1.4.5 Release: 2%{?dist} Summary: %{sum} License: BSD URL: https://github.com/G-node/nixpy Source0: https://github.com/G-node/nixpy/archive/%{version}/%{name}-%{version}.tar.gz BuildArch: noarch # No need for nix, they're uncoupling it from the C++ # https://github.com/G-Node/nixpy/pull/276 %description The NIX project started as an initiative within the Electrophysiology Task Force a part of the INCF Data sharing Program. The NIX data model allows to store fully annotated scientific data-set, i.e. the data together with its metadata within the same container. Our aim is to achieve standardization by providing a common/generic data structure for a multitude of data types. See the wiki for more information The current implementations store the actual data using the HDF5 file format as a storage backend. %package -n python2-%{srcname} Summary: %{sum} BuildRequires: python2-devel BuildRequires: %{py2_dist pytest numpy h5py pytest-runner} Requires: %{py2_dist numpy h5py} %{?python_provide:%python_provide python2-%{srcname}} %description -n python2-%{srcname} The NIX project started as an initiative within the Electrophysiology Task Force a part of the INCF Data sharing Program. The NIX data model allows to store fully annotated scientific data-set, i.e. the data together with its metadata within the same container. Our aim is to achieve standardization by providing a common/generic data structure for a multitude of data types. See the wiki for more information The current implementations store the actual data using the HDF5 file format as a storage backend. %package -n python3-%{srcname} Summary: %{sum} BuildRequires: python3-devel BuildRequires: %{py3_dist pytest numpy h5py pytest-runner} Requires: %{py3_dist numpy h5py} %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} The NIX project started as an initiative within the Electrophysiology Task Force a part of the INCF Data sharing Program. The NIX data model allows to store fully annotated scientific data-set, i.e. the data together with its metadata within the same container. Our aim is to achieve standardization by providing a common/generic data structure for a multitude of data types. See the wiki for more information The current implementations store the actual data using the HDF5 file format as a storage backend. %package doc Summary: %{sum} BuildRequires: python3-sphinx %description doc Documentation files for %{name}. %prep %autosetup -n nixpy-%{version} rm -fr *egg-info %build %py2_build %py3_build PYTHONPATH=. sphinx-build-3 docs/source html # Remove unneeded files rm -fr html/.{buildinfo,doctrees} # Remove shebang from documentation examples for f in html/_downloads/*.py; do sed '1{\@^#!/usr/bin/env python@d}' $f > $f.new && touch -r $f $f.new && mv $f.new $f done %install %py2_install %py3_install %check %{__python2} setup.py test %{__python3} setup.py test %files -n python2-%{srcname} %license LICENSE %{python2_sitelib}/%{srcname}-%{version}-py?.?.egg-info %{python2_sitelib}/%{srcname}/ %files -n python3-%{srcname} %license LICENSE %{python3_sitelib}/%{srcname}-%{version}-py?.?.egg-info %{python3_sitelib}/%{srcname}/ %files doc %doc README.rst html %license LICENSE %changelog * Tue Jun 19 2018 Miro HronĨok - 1.4.5-2 - Rebuilt for Python 3.7 * Sat Jun 09 2018 Ankur Sinha - 1.4.5-1 - Update to latest upstream release * Fri Feb 09 2018 Fedora Release Engineering - 1.4.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sun Jan 21 2018 Ankur Sinha - 1.4.3-1 - Use newer release and GitHub sources - Run tests - Define summary macro - Add doc sub package * Fri Jan 12 2018 Ankur Sinha - 1.4.2-1 - Initial build - use pydist macro