## START: Set by rpmautospec ## (rpmautospec version 0.2.6) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 8; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec # Sphinx-generated HTML documentation is not suitable for packaging; see # https://bugzilla.redhat.com/show_bug.cgi?id=2006555 for discussion. # # We can generate PDF documentation as a substitute. # # However, currently we do not have all the necessary dependencies: # No matching package to install: 'python3dist(myst-nb) = 0.12.2' # No matching package to install: 'python3dist(nbconvert) < 6' # No matching package to install: 'python3dist(nbsite) >= 0.6.1' # No matching package to install: 'python3dist(panel)' %bcond_with doc_pdf Name: python-param Version: 1.12.0 Release: %autorelease Summary: Make your Python code clearer and more reliable by declaring Parameters License: BSD # The GitHub tarball contains documentation, examples, and tests; the PyPI # tarball does not. See: # https://github.com/holoviz/param/issues/219 # https://github.com/holoviz/param/issues/103 URL: https://github.com/holoviz/param Source0: %{url}/archive/v%{version}/param-%{version}.tar.gz BuildArch: noarch # Preserve existing Random seed behavior in Python 3.11 # https://github.com/holoviz/param/pull/638 # # Fixes: # # numbergen - DeprecationWarning: Seeding based on hashing is deprecated since # Python 3.9 # https://github.com/holoviz/param/issues/602 # python-param fails to build with Python 3.11: TypeError: The only supported # seed types are: None, int, float, str, bytes, and bytearray. # https://bugzilla.redhat.com/show_bug.cgi?id=2093926 Patch: %{url}/pull/638.patch BuildRequires: python3-devel %if %{with doc_pdf} BuildRequires: make BuildRequires: python3dist(sphinx) BuildRequires: python3-sphinx-latex BuildRequires: latexmk %endif BuildRequires: python3dist(pytest) %global common_description %{expand: Param is a library providing Parameters: Python attributes extended to have features such as type and range checking, dynamically generated values, documentation strings, default values, etc., each of which is inherited from parent classes if not specified in a subclass. Documentation and examples may be found at https://param.holoviz.org.} %description %{common_description} %package -n python3-param Summary: %{summary} %py_provides python3-numbergen # The file param/version.py is derived from a forked copy of # https://github.com/pyviz-dev/autover. See the comments at the top of the file # for details. Note that we cannot unbundle this library because it is in the # public API, so the fork matters. Provides: bundled(python3dist(autover)) = 0.2.5 %description -n python3-param %{common_description} %package doc Summary: Documentation and examples for param %description doc %{common_description} %prep %autosetup -n param-%{version} -p1 # Imitate the PyPI release process. This upstream really enjoys dark magic. We # can get the short hash for the commit corresponding to our git tarball from # inside the tarball! shortcommit="$( grep -Eo 'archive_commit="[[:xdigit:]]+"' param/__init__.py | sed -r 's/^.*"([^"]+)".*$/\1/' # fix confused vim syntax highlighting: '" )" cat > param/.version < 1.12.0-8 - Updated patch file for PR#608 * Tue Jun 14 2022 Benjamin A. Beasley 1.12.0-7 - Preserve existing Random seed behavior in Python 3.11 (fix RHBZ#2093926) * Mon Jun 13 2022 Python Maint 1.12.0-6 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering 1.12.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jan 07 2022 Benjamin A. Beasley 1.12.0-4 - Prefer python3dist(…) to %%%%{py3_dist …} * Tue Dec 28 2021 Benjamin A. Beasley 1.12.0-3 - Do not generate test dependencies for linting or coverage * Fri Nov 26 2021 Benjamin A. Beasley 1.12.0-2 - Reduce LaTeX PDF build verbosity * Mon Nov 22 2021 Benjamin A. Beasley 1.12.0-1 - Initial package