820347e
%global modname interfile
820347e
820347e
Name:           python-%{modname}
820347e
Version:        0.3.1
e486024
Release:        11%{?dist}
820347e
Summary:        Pyhon module for read/write/parse interfile
820347e
820347e
# https://github.com/spedemon/interfile/pull/3
820347e
# not license text in PyPi archive
820347e
License:        BSD
820347e
URL:            https://pypi.python.org/pypi/%{modname}
820347e
Source0:        https://pypi.python.org/packages/source/i/%{modname}/%{modname}-%{version}.tar.gz
820347e
# https://github.com/spedemon/interfile/commit/098b985f04032b65a7c361bc2f943ce237d453ee
820347e
Patch0:         0001-Removed-dependence-from-Python-Petlink.patch
820347e
820347e
BuildArch:      noarch
820347e
820347e
%description
820347e
Interfile is a Python module module that reads, writes and parses files in the
820347e
interfile data format. The interfile file format is a format utilized for the
820347e
storage of data related to Positron Emission Tomography (PET) and to
820347e
Single Photon Emission Computed Tomography (SPECT), such as sinograms and
820347e
volumetric imaging data.
820347e
820347e
%package -n python3-%{modname}
820347e
Summary:        %{summary}
820347e
%{?python_provide:%python_provide python3-%{modname}}
820347e
BuildRequires:  /usr/bin/2to3
107134d
BuildRequires:  python3-devel
107134d
BuildRequires:  python3-setuptools
820347e
BuildRequires:  python3-simplewrap
820347e
Requires:       python3-simplewrap
820347e
820347e
%description -n python3-%{modname}
820347e
Interfile is a Python module module that reads, writes and parses files in the
820347e
interfile data format. The interfile file format is a format utilized for the
820347e
storage of data related to Positron Emission Tomography (PET) and to
820347e
Single Photon Emission Computed Tomography (SPECT), such as sinograms and
820347e
volumetric imaging data.
820347e
820347e
Python 3 version.
820347e
820347e
%prep
107134d
%autosetup -p1 -n interfile-%{version}
820347e
rm -rf *.egg-info
820347e
107134d
2to3 --write --nobackups .
820347e
820347e
%build
107134d
%py3_build
820347e
820347e
%install
107134d
%py3_install
820347e
820347e
%check
107134d
%{__python3} setup.py test
820347e
820347e
%files -n python3-%{modname}
107134d
%doc README.rst
820347e
%{python3_sitelib}/%{modname}*
820347e
820347e
%changelog
e486024
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-11
e486024
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
e486024
107134d
* Thu Oct 18 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.3.1-10
107134d
- Subpackage python2-interfile has been removed
107134d
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
107134d
810792e
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-9
810792e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
810792e
24dc6ca
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.3.1-8
24dc6ca
- Rebuilt for Python 3.7
24dc6ca
d3f8c78
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-7
d3f8c78
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
d3f8c78
c4cdfb0
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-6
c4cdfb0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c4cdfb0
bb74817
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-5
bb74817
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
bb74817
0d27a47
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.3.1-4
0d27a47
- Rebuild for Python 3.6
0d27a47
9a5d141
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-3
9a5d141
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
9a5d141
e4e8e63
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-2
e4e8e63
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e4e8e63
820347e
* Sun Dec 06 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.3.1-1
820347e
- Initial package