diff --git a/pydicom-2.1.2.tar.gz b/pydicom-2.1.2.tar.gz deleted file mode 100644 index 3989ee471b1d10a2284efb15b8b04d25ee4f2eda..0000000000000000000000000000000000000000 Binary files a/pydicom-2.1.2.tar.gz and /dev/null differ diff --git a/pydicom-2.3.0.tar.gz b/pydicom-2.3.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..8f21c72abb1995cacee7b598e25c8d5cc2ef3be5 Binary files /dev/null and b/pydicom-2.3.0.tar.gz differ diff --git a/python-pydicom.spec b/python-pydicom.spec index 25fe417029c35073a8df6a8cd50f82736585ea35..2d01a93a4568ec613cf12d6ea151ab4fcf07970f 100644 --- a/python-pydicom.spec +++ b/python-pydicom.spec @@ -1,54 +1,88 @@ -%global modname pydicom +%global _empty_manifest_terminate_build 0 %global _description \ pydicom is a pure python package for working with DICOM files. It was made for\ inspecting and modifying DICOM data in an easy "pythonic" way. The\ modifications can be written again to a new file. -Name: python-%{modname} -Version: 2.1.2 -Release: 2 -Summary: Read, modify and write DICOM files with python code - -License: MIT -URL: https://github.com/darcymason/%{modname} -Source0: %{modname}-%{version}.tar.gz - -BuildArch: noarch +Name: python-pydicom +Version: 2.3.0 +Release: 1 +Summary: A pure Python package for reading and writing DICOM data +License: MIT +URL: https://github.com/pydicom/pydicom +Source0: https://files.pythonhosted.org/packages/14/04/13462460b0d28fa513f8bed141609fc17fcfb1d32f64ce2a163550706f9b/pydicom-2.3.0.tar.gz +BuildArch: noarch + +Requires: python3-numpy +Requires: python3-numpydoc +Requires: python3-matplotlib +Requires: python3-pillow +Requires: python3-sphinx +Requires: python3-sphinx-rtd-theme +Requires: python3-sphinx-gallery +Requires: python3-sphinxcontrib-napoleon +Requires: python3-sphinx-copybutton %description %_description -%package -n python3-%{modname} -Summary: %{summary} - - -BuildRequires: python3-devel python3-setuptools python3-six +%package -n python3-pydicom +Summary: A pure Python package for reading and writing DICOM data +Provides: python-pydicom +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%description -n python3-pydicom %_description -Requires: python3-dateutil -Recommends: python3-numpy -Recommends: python3-matplotlib -Recommends: python3-tkinter -Recommends: python3-pillow - -%description -n python3-%{modname} %_description +%package help +Summary: Development documents and examples for pydicom +Provides: python3-pydicom-doc +%description help +%_description %prep -%autosetup -n %{modname}-%{version} +%autosetup -n pydicom-2.3.0 %build %py3_build %install %py3_install - -%files -n python3-%{modname} -%license LICENSE -%doc README.md -%{python3_sitelib}/%{modname}* -%{python3_sitelib}/dicom.py -%{python3_sitelib}/__pycache__/dicom.* +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-pydicom -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* %changelog +* Wed Jul 13 2022 GuoCe - 2.3.0-1 +- Update to version 2.3.0. + * Wed May 11 2022 houyingchao - 2.1.2-2 - License compliance rectification