summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-03-09 15:26:19 +0000
committerCoprDistGit <infra@openeuler.org>2023-03-09 15:26:19 +0000
commitb3836be0cce933c0c3405be1edeb2e85fcbd1581 (patch)
tree5db98404d10f86ef63d05a8708f7bca4fa472f52
parent2fc2c46f85e4265459bcc1061628a31ace73c41b (diff)
automatic import of python-pydot
-rw-r--r--.gitignore1
-rw-r--r--python-pydot.spec91
-rw-r--r--sources1
3 files changed, 93 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..23e262e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pydot-1.4.2.tar.gz
diff --git a/python-pydot.spec b/python-pydot.spec
new file mode 100644
index 0000000..f1abedb
--- /dev/null
+++ b/python-pydot.spec
@@ -0,0 +1,91 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pydot
+Version: 1.4.2
+Release: 1
+Summary: Python interface to Graphviz's Dot
+License: MIT
+URL: https://github.com/pydot/pydot
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/13/6e/916cdf94f9b38ae0777b254c75c3bdddee49a54cc4014aac1460a7a172b3/pydot-1.4.2.tar.gz
+BuildArch: noarch
+
+Requires: python3-pyparsing
+
+%description
+`pydot`:
+ - is an interface to [Graphviz][1]
+ - can parse and dump into the [DOT language][2] used by GraphViz,
+ - is written in pure Python,
+and [`networkx`][3] can convert its graphs to `pydot`.
+Development occurs at [GitHub][11], where you can report issues and
+contribute code.
+
+%package -n python3-pydot
+Summary: Python interface to Graphviz's Dot
+Provides: python-pydot
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pydot
+`pydot`:
+ - is an interface to [Graphviz][1]
+ - can parse and dump into the [DOT language][2] used by GraphViz,
+ - is written in pure Python,
+and [`networkx`][3] can convert its graphs to `pydot`.
+Development occurs at [GitHub][11], where you can report issues and
+contribute code.
+
+%package help
+Summary: Development documents and examples for pydot
+Provides: python3-pydot-doc
+%description help
+`pydot`:
+ - is an interface to [Graphviz][1]
+ - can parse and dump into the [DOT language][2] used by GraphViz,
+ - is written in pure Python,
+and [`networkx`][3] can convert its graphs to `pydot`.
+Development occurs at [GitHub][11], where you can report issues and
+contribute code.
+
+%prep
+%autosetup -n pydot-1.4.2
+
+%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-pydot -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 1.4.2-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..5be8981
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+6fe7e9577ea99766b73a3c02183047ba pydot-1.4.2.tar.gz