%global _empty_manifest_terminate_build 0 Name: python-datadiff Version: 2.1.0 Release: 1 Summary: DataDiff is a library to provide human-readable diffs of python data structures. License: Apache License URL: http://sourceforge.net/projects/datadiff/ Source0: https://mirrors.nju.edu.cn/pypi/web/packages/86/79/379edbfabf34adf8634334eab7e79df2ec74c779fcefd07baf444e4649c5/datadiff-2.1.0.tar.gz BuildArch: noarch %description DataDiff is a library to provide human-readable diffs of python data structures. It can handle sequence types (lists, tuples, etc), sets, and dictionaries. Dictionaries and sequences will be diffed recursively, when applicable. It has special-case handling for multi-line strings, showing them as a typical unified diff. Drop-in replacements for some nose assertions are available. If the assertion fails, a nice data diff is shown, letting you easily pinpoint the root difference. ``datadiff`` works on Python 2.6 through Python 3. DataDiff project homepage: http://sourceforge.net/projects/datadiff/ %package -n python3-datadiff Summary: DataDiff is a library to provide human-readable diffs of python data structures. Provides: python-datadiff BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-datadiff DataDiff is a library to provide human-readable diffs of python data structures. It can handle sequence types (lists, tuples, etc), sets, and dictionaries. Dictionaries and sequences will be diffed recursively, when applicable. It has special-case handling for multi-line strings, showing them as a typical unified diff. Drop-in replacements for some nose assertions are available. If the assertion fails, a nice data diff is shown, letting you easily pinpoint the root difference. ``datadiff`` works on Python 2.6 through Python 3. DataDiff project homepage: http://sourceforge.net/projects/datadiff/ %package help Summary: Development documents and examples for datadiff Provides: python3-datadiff-doc %description help DataDiff is a library to provide human-readable diffs of python data structures. It can handle sequence types (lists, tuples, etc), sets, and dictionaries. Dictionaries and sequences will be diffed recursively, when applicable. It has special-case handling for multi-line strings, showing them as a typical unified diff. Drop-in replacements for some nose assertions are available. If the assertion fails, a nice data diff is shown, letting you easily pinpoint the root difference. ``datadiff`` works on Python 2.6 through Python 3. DataDiff project homepage: http://sourceforge.net/projects/datadiff/ %prep %autosetup -n datadiff-2.1.0 %build %py3_build %install %py3_install 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-datadiff -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Sun Apr 23 2023 Python_Bot - 2.1.0-1 - Package Spec generated