| |
@@ -1,3 +1,7 @@
|
| |
+ # Enable test with --test, because they download data from the net and they don't
|
| |
+ # work in koji
|
| |
+ %bcond_with pytest
|
| |
+
|
| |
%global modname pydicom
|
| |
|
| |
|
| |
@@ -14,18 +18,18 @@
|
| |
uncompressed pixels. Files can always be read and saved, but compressed pixel
|
| |
data cannot easily be modified.
|
| |
|
| |
- Python 3 version.}
|
| |
-
|
| |
+ Documentation is available at https://pydicom.github.io/pydicom}
|
| |
|
| |
Name: python-%{modname}
|
| |
- Version: 2.0.0
|
| |
- Release: 4%{?dist}
|
| |
+ Version: 2.1.1
|
| |
+ Release: 2%{?dist}
|
| |
Summary: Read, modify and write DICOM files with python code
|
| |
|
| |
# There are generated data (private dict) in special format from GDCM
|
| |
License: MIT and BSD
|
| |
URL: https://github.com/darcymason/%{modname}
|
| |
Source0: https://github.com/darcymason/%{modname}/archive/v%{version}/%{modname}-%{version}.tar.gz
|
| |
+
|
| |
BuildArch: noarch
|
| |
|
| |
%description %_description
|
| |
@@ -34,7 +38,6 @@
|
| |
Summary: %{summary}
|
| |
%{?python_provide:%python_provide python3-%{modname}}
|
| |
BuildRequires: python3-devel python3-setuptools python3-six
|
| |
- BuildRequires: python3-sphinx python3-sphinx_rtd_theme python3-sphinx-gallery python3-numpydoc python3-sphinx-issues
|
| |
# Test deps
|
| |
BuildRequires: python3-numpy python3-dateutil python3-pytest
|
| |
Requires: python3-dateutil
|
| |
@@ -45,39 +48,26 @@
|
| |
|
| |
%description -n python3-%{modname} %_description
|
| |
|
| |
-
|
| |
- %package doc
|
| |
- Summary: Python %{modname} documentation
|
| |
-
|
| |
- %description doc
|
| |
- Documentation for %{name}.
|
| |
-
|
| |
-
|
| |
%prep
|
| |
%autosetup -n %{modname}-%{version}
|
| |
|
| |
%build
|
| |
%py3_build
|
| |
|
| |
- pushd doc
|
| |
- export PYTHONPATH=../
|
| |
- make html SPHINXBUILD=sphinx-build-3 BUILDDIR=_build-3
|
| |
- find -name '.buildinfo' -delete
|
| |
- find -name '.nojekyll' -delete
|
| |
- popd
|
| |
-
|
| |
%install
|
| |
%py3_install
|
| |
|
| |
+ %if %{with pytest}
|
| |
%check
|
| |
# Disable TestPillowHandler_JPEG.test_color_3d because koji is unable to
|
| |
# allocate enough RAM during build. Works ok building locally
|
| |
# Disable test_handler_util, it fails to build with numpy 1.19
|
| |
# reported upstream https://github.com/pydicom/pydicom/issues/1119
|
| |
%if 0%{?fedora} > 32
|
| |
- %{__python3} -m pytest -k "not test_color_3d and not test_handler_util"
|
| |
+ %{__python3} -m pytest -k "not test_color_3d and not test_handler_util"
|
| |
%else
|
| |
- %{__python3} -m pytest -k "not test_color_3d"
|
| |
+ %{__python3} -m pytest -k "not test_color_3d"
|
| |
+ %endif
|
| |
%endif
|
| |
|
| |
%files -n python3-%{modname}
|
| |
@@ -87,11 +77,13 @@
|
| |
%{python3_sitelib}/dicom.py
|
| |
%{python3_sitelib}/__pycache__/dicom.*
|
| |
|
| |
- %files doc
|
| |
- %license LICENSE
|
| |
- %doc doc/_build-3/html
|
| |
-
|
| |
%changelog
|
| |
+ * Tue Dec 02 2020 Alessio <alciregi AT fedoraproject DOT org> - 2.1.1-2
|
| |
+ - Removed sphinx-* buildrequire. Removed docs subpackage.
|
| |
+
|
| |
+ * Mon Nov 30 2020 Alessio <alciregi AT fedoraproject DOT org> - 2.1.1-1
|
| |
+ - 2.1.1 release
|
| |
+
|
| |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-4
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
| |
|
| |
doc/conf.py
it seems to work.