%global modname zope.hookable Summary: Zope Hookable Objects Name: python-zope-hookable Version: 5.1.0 Release: 1%{?dist} Source0: https://pypi.io/packages/source/z/%{modname}/%{modname}-%{version}.tar.gz License: ZPLv2.1 BuildArch: noarch URL: https://pypi.io/project/zope.hookable %description This package supports the efficient creation of “hookable” objects, which are callable objects that are meant to be optionally replaced. The idea is that you create a function that does some default thing and make it hookable. Later, someone can modify what it does by calling its sethook method and changing its implementation. All users of the function, including those that imported it, will see the change. %package -n python3-zope-hookable Summary: Zope Hookable Objects %{?python_provide:%python_provide python3-zope-hookable} BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-sphinx Requires: python3-zope-component Requires: python3-zope-interface Requires: python3-zope-event %description -n python3-zope-hookable This package supports the efficient creation of “hookable” objects, which are callable objects that are meant to be optionally replaced. The idea is that you create a function that does some default thing and make it hookable. Later, someone can modify what it does by calling its sethook method and changing its implementation. All users of the function, including those that imported it, will see the change. %prep %setup -q -n %{modname}-%{version} rm -rf %{modname}.egg-info %build %py3_build # build Sphinx documents COPYRIGHT=`grep Author: PKG-INFO |sed -e 's/Author: //'` cat >docs/conf.py < - 5.1.0-1 - Initial package