diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-11 07:28:59 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 07:28:59 +0000 |
| commit | fd2d773d05791a0b34142a8efcee95f2ced9105f (patch) | |
| tree | c5dcb49786785e319dc209159217caaf67cd70f5 | |
| parent | 03aaef30c5de091fccd5aec54d3ad7b5d6eb0b55 (diff) | |
automatic import of python-dwave-networkx
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-dwave-networkx.spec | 101 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 103 insertions, 0 deletions
@@ -0,0 +1 @@ +/dwave_networkx-0.8.13.tar.gz diff --git a/python-dwave-networkx.spec b/python-dwave-networkx.spec new file mode 100644 index 0000000..135023f --- /dev/null +++ b/python-dwave-networkx.spec @@ -0,0 +1,101 @@ +%global _empty_manifest_terminate_build 0 +Name: python-dwave-networkx +Version: 0.8.13 +Release: 1 +Summary: A NetworkX extension providing graphs and algorithms relevent to working with the D-Wave System +License: Apache 2.0 +URL: https://github.com/dwavesystems/dwave_networkx +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/6f/d9/e061052be50ad3ade8773ac3b135485f19f8624caa1700b321f26bb0f6bd/dwave_networkx-0.8.13.tar.gz +BuildArch: noarch + +Requires: python3-networkx +Requires: python3-dimod + +%description +D-Wave NetworkX is an extension of `NetworkX <https://networkx.org>`_\ ---a +Python language package for exploration and analysis of networks and network +algorithms---for users of D-Wave Systems. It provides tools for working with +Chimera graphs and implementations of graph-theory algorithms on the D-Wave +system and other binary quadratic model samplers. +The example below generates a graph for a Chimera unit cell (eight nodes in a 4-by-2 +bipartite architecture). +>>> import dwave_networkx as dnx +>>> graph = dnx.chimera_graph(1, 1, 4) +See the documentation for more examples. + +%package -n python3-dwave-networkx +Summary: A NetworkX extension providing graphs and algorithms relevent to working with the D-Wave System +Provides: python-dwave-networkx +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-dwave-networkx +D-Wave NetworkX is an extension of `NetworkX <https://networkx.org>`_\ ---a +Python language package for exploration and analysis of networks and network +algorithms---for users of D-Wave Systems. It provides tools for working with +Chimera graphs and implementations of graph-theory algorithms on the D-Wave +system and other binary quadratic model samplers. +The example below generates a graph for a Chimera unit cell (eight nodes in a 4-by-2 +bipartite architecture). +>>> import dwave_networkx as dnx +>>> graph = dnx.chimera_graph(1, 1, 4) +See the documentation for more examples. + +%package help +Summary: Development documents and examples for dwave-networkx +Provides: python3-dwave-networkx-doc +%description help +D-Wave NetworkX is an extension of `NetworkX <https://networkx.org>`_\ ---a +Python language package for exploration and analysis of networks and network +algorithms---for users of D-Wave Systems. It provides tools for working with +Chimera graphs and implementations of graph-theory algorithms on the D-Wave +system and other binary quadratic model samplers. +The example below generates a graph for a Chimera unit cell (eight nodes in a 4-by-2 +bipartite architecture). +>>> import dwave_networkx as dnx +>>> graph = dnx.chimera_graph(1, 1, 4) +See the documentation for more examples. + +%prep +%autosetup -n dwave-networkx-0.8.13 + +%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-dwave-networkx -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.8.13-1 +- Package Spec generated @@ -0,0 +1 @@ +c91a85632ff9d82f2512fdae38948ab9 dwave_networkx-0.8.13.tar.gz |
