Group :: Development/Python3
RPM: python3-module-pika
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define oname pika
Name: python3-module-%oname
Version: 1.3.2
Release: alt1
Summary: Pika is a pure-Python implementation of the AMQP 0-9-1 protocol.
License: BSD-3-Clause
Group: Development/Python3
Url: http://github.com/pika/pika
BuildArch: noarch
# Source-git: https://github.com/pika/pika.git
Source: %name-%version.tar
BuildRequires(pre): rpm-macros-sphinx3
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-sphinx
BuildRequires: python3-module-setuptools
BuildRequires: python3-module-wheel
%py3_requires twisted.internet tornado
%description
Pika is a pure-Python implementation of the AMQP 0-9-1 protocol that
tries to stay fairly independent of the underlying network support
library.
%package docs
Summary: Documentation for %oname
Group: Development/Documentation
%description docs
Pika is a pure-Python implementation of the AMQP 0-9-1 protocol that
tries to stay fairly independent of the underlying network support
library.
This package contains documentation for %oname.
%prep
%setup
%prepare_sphinx3 .
ln -s ../objects.inv docs/
%build
%pyproject_build
# generate html docs
sphinx-build-3 docs html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}
%install
%pyproject_install
# Delete tests
rm -fr %buildroot%python3_sitelibdir/tests
rm -fr %buildroot%python3_sitelibdir/*/tests
%files
%doc *.rst
%python3_sitelibdir/%oname
%python3_sitelibdir/%{pyproject_distinfo %oname}
%files docs
%doc html/*
%changelog
…
Todas as alterações você pod ver aqui
Name: python3-module-%oname
Version: 1.3.2
Release: alt1
Summary: Pika is a pure-Python implementation of the AMQP 0-9-1 protocol.
License: BSD-3-Clause
Group: Development/Python3
Url: http://github.com/pika/pika
BuildArch: noarch
# Source-git: https://github.com/pika/pika.git
Source: %name-%version.tar
BuildRequires(pre): rpm-macros-sphinx3
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-sphinx
BuildRequires: python3-module-setuptools
BuildRequires: python3-module-wheel
%py3_requires twisted.internet tornado
%description
Pika is a pure-Python implementation of the AMQP 0-9-1 protocol that
tries to stay fairly independent of the underlying network support
library.
%package docs
Summary: Documentation for %oname
Group: Development/Documentation
%description docs
Pika is a pure-Python implementation of the AMQP 0-9-1 protocol that
tries to stay fairly independent of the underlying network support
library.
This package contains documentation for %oname.
%prep
%setup
%prepare_sphinx3 .
ln -s ../objects.inv docs/
%build
%pyproject_build
# generate html docs
sphinx-build-3 docs html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}
%install
%pyproject_install
# Delete tests
rm -fr %buildroot%python3_sitelibdir/tests
rm -fr %buildroot%python3_sitelibdir/*/tests
%files
%doc *.rst
%python3_sitelibdir/%oname
%python3_sitelibdir/%{pyproject_distinfo %oname}
%files docs
%doc html/*
%changelog
…
Todas as alterações você pod ver aqui