|
|
|
@ -1,83 +1,155 @@
|
|
|
|
|
# Created by pyp2rpm-1.1.1
|
|
|
|
|
%global sname wrapt
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} >= 8
|
|
|
|
|
%global with_docs 1
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%{!?_licensedir: %global license %%doc}
|
|
|
|
|
|
|
|
|
|
Name: python-%{sname}
|
|
|
|
|
Version: 1.13.3
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
## START: Set by rpmautospec
|
|
|
|
|
## (rpmautospec version 0.7.3)
|
|
|
|
|
## RPMAUTOSPEC: autorelease, autochangelog
|
|
|
|
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
|
|
|
|
release_number = 1;
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
# 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.
|
|
|
|
|
%bcond docs 1
|
|
|
|
|
|
|
|
|
|
Name: python-wrapt
|
|
|
|
|
Version: 1.17.0
|
|
|
|
|
Release: %autorelease
|
|
|
|
|
Summary: A Python module for decorators, wrappers and monkey patching
|
|
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
|
License: BSD-2-Clause
|
|
|
|
|
URL: https://github.com/GrahamDumpleton/wrapt
|
|
|
|
|
Source0: https://github.com/GrahamDumpleton/%{sname}/archive/%{version}.tar.gz
|
|
|
|
|
Source: %{url}/archive/%{version}/wrapt-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
|
|
|
|
|
%global _description\
|
|
|
|
|
The aim of the wrapt module is to provide a transparent object proxy\
|
|
|
|
|
for Python, which can be used as the basis for the construction of\
|
|
|
|
|
function wrappers and decorator functions.
|
|
|
|
|
# We bypass tox and instead BR and use pytest directly; this is simpler and
|
|
|
|
|
# avoids the need to patch out coverage analysis
|
|
|
|
|
# (https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters).
|
|
|
|
|
BuildRequires: %{py3_dist pytest}
|
|
|
|
|
|
|
|
|
|
%global common_description %{expand:
|
|
|
|
|
The aim of the wrapt module is to provide a transparent object proxy for
|
|
|
|
|
Python, which can be used as the basis for the construction of function
|
|
|
|
|
wrappers and decorator functions.}
|
|
|
|
|
|
|
|
|
|
%description %{common_description}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python3-wrapt
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
|
|
%description -n python3-wrapt %{common_description}
|
|
|
|
|
|
|
|
|
|
%description %_description
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_docs}
|
|
|
|
|
%if %{with docs}
|
|
|
|
|
%package doc
|
|
|
|
|
Summary: Documentation for the wrapt module
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-sphinx
|
|
|
|
|
BuildRequires: python3-sphinx_rtd_theme
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: python3-sphinx-latex
|
|
|
|
|
BuildRequires: latexmk
|
|
|
|
|
# docs/requirements.txt
|
|
|
|
|
BuildRequires: %{py3_dist sphinx}
|
|
|
|
|
BuildRequires: %{py3_dist sphinx_rtd_theme}
|
|
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
|
Documentation for the wrapt module
|
|
|
|
|
%{summary}.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%package -n python3-wrapt
|
|
|
|
|
Summary: A Python module for decorators, wrappers and monkey patching
|
|
|
|
|
%{?python_provide:%python_provide python3-wrapt}
|
|
|
|
|
|
|
|
|
|
%description -n python3-wrapt
|
|
|
|
|
The aim of the wrapt module is to provide a transparent object proxy
|
|
|
|
|
for Python, which can be used as the basis for the construction of
|
|
|
|
|
function wrappers and decorator functions.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{sname}-%{version}
|
|
|
|
|
%autosetup -n wrapt-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
%pyproject_buildrequires
|
|
|
|
|
|
|
|
|
|
# Remove bundled egg-info in case it exists
|
|
|
|
|
rm -rf %{sname}.egg-info
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_docs}
|
|
|
|
|
# for docs
|
|
|
|
|
pushd docs
|
|
|
|
|
sphinx-build -b html -d build/doctrees . build/html
|
|
|
|
|
popd
|
|
|
|
|
%if %{with docs}
|
|
|
|
|
PYTHONPATH="${PWD}" %make_build -C docs latex \
|
|
|
|
|
SPHINXOPTS='-j%{?_smp_build_ncpus}'
|
|
|
|
|
%make_build -C docs/_build/latex LATEXMKOPTS='-quiet'
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
%pyproject_install
|
|
|
|
|
%pyproject_save_files -l wrapt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%pytest -v
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_docs}
|
|
|
|
|
%if %{with docs}
|
|
|
|
|
%files doc
|
|
|
|
|
%doc docs/build/html
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc docs/_build/latex/wrapt.pdf
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files -n python3-wrapt
|
|
|
|
|
|
|
|
|
|
%files -n python3-wrapt -f %{pyproject_files}
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%{python3_sitearch}/%{sname}
|
|
|
|
|
%{python3_sitearch}/%{sname}-%{version}-py%{python3_version}.egg-info
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
## START: Generated by rpmautospec
|
|
|
|
|
* Wed Nov 27 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 1.17.0-1
|
|
|
|
|
- Update to 1.17.0 (close RHBZ#2316909)
|
|
|
|
|
|
|
|
|
|
* Wed Nov 27 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 1.13.3-16
|
|
|
|
|
- Port to pyproject-rpm-macros and run the tests
|
|
|
|
|
|
|
|
|
|
* Wed Nov 27 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 1.13.3-15
|
|
|
|
|
- Improve the source URL
|
|
|
|
|
|
|
|
|
|
* Wed Nov 27 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 1.13.3-14
|
|
|
|
|
- Do not number the sole Source
|
|
|
|
|
|
|
|
|
|
* Wed Nov 27 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 1.13.3-13
|
|
|
|
|
- Make the -doc subpackage noarch
|
|
|
|
|
|
|
|
|
|
* Wed Nov 27 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 1.13.3-12
|
|
|
|
|
- Build Sphinx-generated docs as PDF, not HTML, to sidestep guidelines
|
|
|
|
|
issues
|
|
|
|
|
|
|
|
|
|
* Wed Nov 27 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 1.13.3-11
|
|
|
|
|
- Write BuildRequires using project canonical names
|
|
|
|
|
|
|
|
|
|
* Wed Nov 27 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 1.13.3-10
|
|
|
|
|
- Reduce description/Summary duplication in the spec file
|
|
|
|
|
|
|
|
|
|
* Wed Nov 27 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 1.13.3-9
|
|
|
|
|
- Add missing LICENSE to -doc subpackage
|
|
|
|
|
|
|
|
|
|
* Wed Nov 27 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 1.13.3-8
|
|
|
|
|
- Use modern build conditionals
|
|
|
|
|
|
|
|
|
|
* Wed Nov 27 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 1.13.3-7
|
|
|
|
|
- Reduce unnecessary macro indirection in the spec file
|
|
|
|
|
|
|
|
|
|
* Wed Nov 27 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 1.13.3-6
|
|
|
|
|
- Remove obsolete %%python_provide macro
|
|
|
|
|
|
|
|
|
|
* Wed Nov 27 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 1.13.3-5
|
|
|
|
|
- Remove ancient workaround for missing %%license support
|
|
|
|
|
|
|
|
|
|
* Wed Nov 27 2024 Jan Friesse <jfriesse@redhat.com> - 1.13.3-4
|
|
|
|
|
- migrated to SPDX license
|
|
|
|
|
|
|
|
|
|
* Wed Nov 27 2024 Miro Hrončok <miro@hroncok.cz> - 1.13.3-3
|
|
|
|
|
- BuildRequire setuptools explicitly, not just transitively
|
|
|
|
|
|
|
|
|
|
* Mon Feb 12 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 1.13.3-1
|
|
|
|
|
- Rebuilt for MSVSphere 9.3
|
|
|
|
|
|
|
|
|
@ -211,3 +283,5 @@ popd
|
|
|
|
|
|
|
|
|
|
* Wed Mar 11 2015 Chandan Kumar <chkumar246@gmail.com> - 1.10.2-1
|
|
|
|
|
- Initial package.
|
|
|
|
|
|
|
|
|
|
## END: Generated by rpmautospec
|
|
|
|
|