%global modname pynetdicom %global _description %{expand: pynetdicom is a pure Python package that implements the DICOM networking protocol. Working with pydicom, it allows the easy creation of DICOM Service Class Users (SCUs) and Service Class Providers (SCPs).} Name: python-%{modname} Version: 1.4.1 Release: 1%{?dist} Summary: A Python implementation of the DICOM networking protocol License: MIT and ASL 2.0 and BSD URL: https://github.com/pydicom/%{modname} Source0: https://github.com/pydicom/%{modname}/archive/v%{version}/%{modname}-%{version}.tar.gz BuildArch: noarch %{?python_enable_dependency_generator} %description %_description %package -n python3-%{modname} Summary: %{summary} BuildRequires: python3-devel BuildRequires: make BuildRequires: %{py3_dist setuptools} %{py3_dist pytest} BuildRequires: %{py3_dist sphinx} %{py3_dist sphinx-rtd-theme} BuildRequires: %{py3_dist pydicom} %{?python_provide:%python_provide python3-%{modname}} %description -n python3-%{modname} %_description %package doc Summary: %{summary} %description doc Documentation for %{name}. %prep %autosetup -n %{modname}-%{version} rm -rf %{modname}.egg-info find . -type f -name "*.py" -exec sed -i '/^#![ ]*\/usr\/bin\/env.*$/ d' {} 2>/dev/null ';' %build %py3_build export PYTHONPATH=../ make -C docs SPHINXBUILD=sphinx-build-3 html rm -rf docs/_build/html/{.doctrees,.buildinfo,.nojekyll} -vf %install %py3_install %check # test_tls_yes_server_yes_client and test_tls_transfer are disabled. Upstream is investigating. # https://github.com/pydicom/pynetdicom/issues/406 and https://github.com/pydicom/pynetdicom/issues/364 %{__python3} -m pytest -k "not test_tls_yes_server_yes_client and not test_tls_transfer" %files -n python3-%{modname} %license LICENCE.txt %doc README.rst %{python3_sitelib}/%{modname}-%{version}-py%{python3_version}.egg-info %{python3_sitelib}/%{modname} %files doc %license LICENCE.txt %doc docs/_build/html %changelog * Mon Sep 30 2019 Alessio - 1.4.1-1 - Initial package