%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 `_\ ---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 `_\ ---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 `_\ ---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 * Sun Apr 23 2023 Python_Bot - 0.8.13-1 - Package Spec generated