## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 4; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: python-pygraphviz Version: 1.12 Release: %autorelease Summary: Create and Manipulate Graphs and Networks License: BSD-3-Clause URL: https://pygraphviz.github.io/ VCS: https://github.com/pygraphviz/pygraphviz Source0: %{vcs}/archive/pygraphviz-%{version}.tar.gz Patch0: pygraphviz-pygraphviz-1.11-Remove-outdated-pystrings.swg-508.patch BuildRequires: make BuildRequires: gcc BuildRequires: python3-devel BuildRequires: graphviz-devel BuildRequires: swig %global _description %{expand: PyGraphviz is a Python interface to the Graphviz graph layout and visualization package. With PyGraphviz you can create, edit, read, write, and draw graphs using Python to access the Graphviz graph data structure and layout algorithms. PyGraphviz is independent from NetworkX but provides a similar programming interface.} %description %_description %package -n python3-pygraphviz Summary: %{summary} %description -n python3-pygraphviz %_description %package doc # The content is BSD-3-Clause. Other licenses are due to Sphinx files. # _static/basic.css: BSD-2-Clause # _static/binder_badge_logo.svg: BSD-3-Clause # _static/broken_example.png: BSD-3-Clause # _static/doctools.js: BSD-2-Clause # _static/documentation_options.js: BSD-2-Clause # _static/file.png: BSD-2-Clause # _static/jupyterlite_badge_logo.svg: BSD-3-Clause # _static/language_data.js: BSD-2-Clause # _static/minus.png: BSD-2-Clause # _static/no_image.png: BSD-3-Clause # _static/opensearch.xml: BSD-2-Clause # _static/plus.png: BSD-2-Clause # _static/pygments.css: BDS-3-Clause # _static/scripts/bootstrap*: MIT # _static/scripts/pydata-sphinx-theme*: BSD-3-Clause # _static/searchtools.js: BSD-2-Clause # _static/sg_gallery*.css: BSD-3-Clause # _static/sphinx_highlight.js: BSD-2-Clause # _static/styles/bootstrap*: MIT # _static/styles/pydata-sphinx-theme*: BSD-3-Clause # _static/styles/theme.css: BSD-2-Clause # _static/version_switcher.json: BSD-3-Clause # _static/webpack-macros.html: BSD-3-Clause # genindex.html: BSD-2-Clause # search.html: BSD-2-Clause # searchindex.js: BSD-2-Clause License: BSD-3-Clause AND BSD-2-Clause AND MIT Summary: Documentation for pygraphviz Provides: bundled(js-bootstrap) BuildArch: noarch %description doc Documentation for PyGraphViz. %prep %autosetup -p1 -n pygraphviz-pygraphviz-%{version} # Regenerate the swig-generated files swig -python pygraphviz/graphviz.i # Fix the shebangs in the examples %py3_shebang_fix examples # Skip the code coverage tests sed -i -e '/codecov/d' -e '/pytest-cov/d' requirements/test.txt # Relax version requirements sed -i -e 's/^sphinx-gallery=.*/sphinx-gallery/' requirements/doc.txt %generate_buildrequires %pyproject_buildrequires requirements/{doc,test}.txt %build %pyproject_wheel # Point to the local switcher instead of the inaccessible one on the web sed -i "s,https://pygraphviz\.github\.io/documentation/latest,$PWD/doc/source," doc/source/conf.py # docs %make_build -C doc html PYTHONPATH=$(echo $PWD/build/lib.%{python3_platform}-*) # or $PWD/build/lib.%%{python3_platform}-%%(%%python3 -c 'import sys; print(sys.implementation.cache_tag)' %install %pyproject_install %pyproject_save_files pygraphviz rm doc/build/html/.buildinfo chmod g-w %{buildroot}%{python3_sitearch}/pygraphviz/_graphviz.*.so %global _docdir_fmt %{name} %check %pytest -v %{buildroot}%{python3_sitearch}/pygraphviz/tests/ %files -n python3-pygraphviz -f %{pyproject_files} %exclude %{python3_sitearch}/pygraphviz/graphviz_wrap.c %doc README.rst %files doc %doc doc/build/html %doc examples %license LICENSE %changelog ## START: Generated by rpmautospec * Thu Oct 24 2024 Orion Poplawski - 1.12-4 - Relax sphinx-gallery version requirement (Fix FTBFS) * Fri Jul 19 2024 Fedora Release Engineering - 1.12-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Jun 09 2024 Python Maint - 1.12-2 - Rebuilt for Python 3.13 * Tue Apr 09 2024 Jerry James - 1.12-1 - Version 1.12 - SPDX migration - Update home page URL - Update python RPM macro usage - Automatically generate python BuildRequires * Tue Feb 20 2024 Jitka Plesnikova - 1.11-7 - Add missing BR python3dist(matplotlib) * Mon Jan 29 2024 Jitka Plesnikova - 1.11-6 - Fix for SWIG 4.2.0 update (rhbz#2260326) * Fri Jan 26 2024 Fedora Release Engineering - 1.11-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.11-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 1.11-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Jun 28 2023 Python Maint - 1.11-2 - Rebuilt for Python 3.12 * Fri Jun 02 2023 Zbigniew Jędrzejewski-Szmek - 1.11-1 - Version 1.11 (rbhz#2211793) * Fri Jan 20 2023 Fedora Release Engineering - 1.10-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Nov 15 2022 Scott K Logan - 1.10-2 - Drop unused dependency on python3-mock * Sat Aug 20 2022 Zbigniew Jędrzejewski-Szmek - 1.10-1 - Version 1.10 (rhbz#2119450) * Fri Jul 22 2022 Fedora Release Engineering - 1.9-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jun 22 2022 Lumir Balhar - 1.9-3 - Fix build with newer setuptools * Wed Jun 15 2022 Python Maint - 1.9-2 - Rebuilt for Python 3.11 * Fri Apr 22 2022 Zbigniew Jędrzejewski-Szmek - 1.9-1 - Version 1.9 (rhbz#2041120) * Fri Jan 21 2022 Fedora Release Engineering - 1.7-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 1.7-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.7-2 - Rebuilt for Python 3.10 * Tue Feb 2 2021 Zbigniew Jędrzejewski-Szmek - 1.7-1 - Latest version (#1866615) * Wed Jan 27 2021 Fedora Release Engineering - 1.5-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 1.5-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 1.5-11 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 1.5-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Wed Jan 22 2020 Zbigniew Jędrzejewski-Szmek - 1.5-9 - Bump version to rebuild automatically in python39 copr * Wed Jan 22 2020 Zbigniew Jędrzejewski-Szmek - 1.5-8 - Fix build under python3.9 (#1792949) and pypy * Thu Oct 03 2019 Miro Hrončok - 1.5-7 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 1.5-6 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 1.5-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Apr 4 2019 Zbigniew Jędrzejewski-Szmek - 1.5-4 - Fix build under sphinx 2.x (#1696133) * Sun Feb 17 2019 Zbigniew Jędrzejewski-Szmek - 1.5-3 - Restore the tests subpackage (#1677978) * Sat Feb 02 2019 Fedora Release Engineering - 1.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Oct 11 2018 Jerry James - 1.5-1 - Update to latest version - Drop nose requirement; only needed to run tests, not to use the package - Add swig patch to fix type-related compiler warnings - Regenerate the swig files - Do not ship the test code or the swig-generated C file - Build sphinx docs with python3 instead of python2 - Ship LICENSE file with all packages - Fix shebang in example code * Tue Jul 17 2018 Miro Hrončok - 1.3-3.rc2.11 - Update Python macros to new packaging standards (See https://fedoraproject.org/wiki/Changes/Move_usr_bin_python_into_separate_package) * Sat Jul 14 2018 Fedora Release Engineering - 1.3-3.rc2.10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 1.3-3.rc2.9 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Iryna Shcherbina - 1.3-3.rc2.8 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Fri Feb 09 2018 Fedora Release Engineering - 1.3-3.rc2.7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Fri Feb 09 2018 Igor Gnatenko - 1.3-3.rc2.6 - Escape macros in %%changelog * Thu Aug 03 2017 Fedora Release Engineering - 1.3-3.rc2.5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.3-3.rc2.4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.3-3.rc2.3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 1.3-3.rc2.2 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 1.3-3.rc2.1 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Tue Apr 5 2016 Zbigniew Jędrzejewski-Szmek - 1.3-3.rc2 - Rename python2 subpackage to python2-pygraphviz - Fix Requires (#1324237) * Thu Feb 04 2016 Fedora Release Engineering - 1.3-2.rc2.3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Nov 10 2015 Fedora Release Engineering - 1.3-2.rc2.2 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Thu Jun 18 2015 Fedora Release Engineering - 1.3-2.rc2.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Nov 30 2014 Zbigniew Jędrzejewski-Szmek - 1.3-2rc2 - Reformat version string to follow guidelines for pre-release versions * Sat Nov 29 2014 Zbigniew Jędrzejewski-Szmek - 1.3rc2-2 - Fixed after review: use more macros, include directories in %%files, add provides for bundled jquery, remove empty file. * Mon Nov 24 2014 Zbigniew Jędrzejewski-Szmek - 1.3rc2-1 - Update to latest version, build sphinx docs, add python3 subpackage. * Wed Oct 26 2011 Vedran Miletić - 1.1-1 - Initial package. ## END: Generated by rpmautospec