diff --git a/python-pydot.spec b/python-pydot.spec index ac86136c63778b1a678ff0d4586cb2cfdf5ee1ff..eb922fca1e5fbf14593713b09131d59117523336 100644 --- a/python-pydot.spec +++ b/python-pydot.spec @@ -1,11 +1,11 @@ %global _empty_manifest_terminate_build 0 Name: python-pydot -Version: 2.0.0 +Version: 3.0.1 Release: 1 Summary: Python interface to Graphviz's Dot License: MIT URL: https://github.com/pydot/pydot -Source0: https://github.com/pydot/pydot/archive/refs/tags/v2.0.0.tar.gz +Source0: https://github.com/pydot/pydot/archive/refs/tags/v%{version}.tar.gz BuildArch: noarch %description pydot written in pure Python is an interface to Graphviz, can parse and dump into the DOT language used by GraphViz, @@ -15,9 +15,14 @@ and networkx can convert its graphs to pydot. Summary: Python interface to Graphviz's Dot Provides: python-pydot BuildRequires: python3-devel -BuildRequires: python3-setuptools BuildRequires: python3-pyparsing -BuildRequires: python3-chardet +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-pytest +BuildRequires: python3-parameterized +BuildRequires: graphviz-devel +Requires: graphviz +Obsoletes: python-pydot-help < 3.0.1 %description -n python3-pydot pydot written in pure Python is an interface to Graphviz, can parse and dump into the DOT language used by GraphViz, and networkx can convert its graphs to pydot. @@ -30,49 +35,26 @@ pydot written in pure Python is an interface to Graphviz, can parse and dump int and networkx can convert its graphs to pydot. %prep -%autosetup -n pydot-2.0.0 +%autosetup -n pydot-%{version} %build -%py3_build +%pyproject_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 . +%pyproject_install %check -%{__python3} setup.py test +export PYTHONPATH=$PYTHONPATH:%{buildroot}%{python3_sitelib} +pytest -%files -n python3-pydot -f filelist.lst -%dir %{python3_sitelib}/* - -%files help -f doclist.lst -%{_docdir}/* +%files -n python3-pydot +%{python3_sitelib}/* +%doc ChangeLog README.md %changelog +* Tue Sep 03 2024 wangkai <13474090681@163.com> - 3.0.1-1 +- Update to 3.0.1 + * Tue Jun 4 2024 wuzhaomin - 2.0.0-1 - Update version to 2.0.0 - Fix multiple breaking issues from new pyparsing versions (#296) diff --git a/v2.0.0.tar.gz b/v2.0.0.tar.gz deleted file mode 100644 index b1b14e7a72fd3b0683795d99b44a5499d434e6b1..0000000000000000000000000000000000000000 Binary files a/v2.0.0.tar.gz and /dev/null differ diff --git a/v3.0.1.tar.gz b/v3.0.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..3adc3bee8534104682476affe1a60335f93df3b1 Binary files /dev/null and b/v3.0.1.tar.gz differ