%global modname pynetdicom Name: python-%{modname} Version: 1.4.1 Release: 1%{?dist} Summary: A Python implementation of the DICOM networking protocol License: MIT URL: https://github.com/pydicom/%{modname} Source0: https://github.com/pydicom/%{modname}/archive/v%{version}/%{modname}-%{version}.tar.gz BuildArch: noarch BuildRequires: git-core %description 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). %package -n python3-%{modname} Summary: %{summary} %{?python_provide:%python_provide python3-%{modname}} BuildRequires: python3-devel python3-setuptools BuildRequires: python3-sphinx python3-sphinx_rtd_theme BuildRequires: make BuildRequires: python3-pydicom Requires: python3-pydicom %description -n python3-%{modname} 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). %prep %autosetup -n %{modname}-%{version} -S git %build %py3_build pushd docs export PYTHONPATH=../ make html SPHINXBUILD=sphinx-build-3 BUILDDIR=_build-3 find -name '.buildinfo' -delete popd %install %py3_install %files -n python3-%{modname} %license LICENCE.txt %doc README.rst docs %{python3_sitelib}/%{modname}* %changelog * Mon Sep 30 2019 Alessio - 1.4.1-1 - Initial package