%{?python_enable_dependency_generator} %global pkgname pymacaroons-pynacl %global desc This is a Python re-implementation of the libmacaroons C library.\ Macaroons, like cookies, are a form of bearer credential. Unlike\ opaque tokens, macaroons embed caveats that define specific authorization\ requirements for the target service, the service that issued the root macaroon\ and which is capable of verifying the integrity of macaroons it receives.\ \ Macaroons allow for delegation and attenuation of authorization. They are\ simple and fast to verify, and decouple authorization policy from the\ enforcement of that policy.\ Name: python-%{pkgname} Version: 0.13.0 Release: 1%{?dist} Summary: Library providing non-opaque cookies for authorization License: MIT URL: https://github.com/ecordell/pymacaroons Source0: %{url}/archive/v%{version}/pymacaroons-v%{version}.tar.gz BuildArch: noarch %description %{desc} %package -n python3-%{pkgname} Summary: %{summary} BuildRequires: make BuildRequires: python3-devel BuildRequires: python3-setuptools %{?python_provide:%python_provide python3-%{pkgname}} %description -n python3-%{pkgname} %{desc} %package doc Summary: Documentation for python-pymacaroons-pynacl BuildRequires: python3-sphinx %description doc Documentation for the python-pymacaroons-pynacl package. %{desc} %prep %autosetup -n pymacaroons-%{version} %build %py3_build %make_build -C docs SPHINXBUILD=sphinx-build-3 html PYTHONPATH=$(pwd) rm docs/_build/html/.buildinfo %install %py3_install %check %{nil} %files -n python3-%{pkgname} %license LICENSE %doc README.md %{python3_sitelib}/* %files doc %license LICENSE %doc README.md docs/_build/html