|
|
@ -22,17 +22,19 @@ BuildRequires: python3-devel
|
|
|
|
# (https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters).
|
|
|
|
# (https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters).
|
|
|
|
BuildRequires: %{py3_dist pytest}
|
|
|
|
BuildRequires: %{py3_dist pytest}
|
|
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
%global common_description %{expand:
|
|
|
|
The aim of the wrapt module is to provide a transparent object proxy for
|
|
|
|
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
|
|
|
|
Python, which can be used as the basis for the construction of function
|
|
|
|
wrappers and decorator functions.}
|
|
|
|
wrappers and decorator functions.}
|
|
|
|
|
|
|
|
|
|
|
|
%description %_description
|
|
|
|
%description %{common_description}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python3-wrapt
|
|
|
|
%package -n python3-wrapt
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python3-wrapt %_description
|
|
|
|
%description -n python3-wrapt %{common_description}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with docs}
|
|
|
|
%if %{with docs}
|
|
|
|
%package doc
|
|
|
|
%package doc
|
|
|
@ -51,12 +53,15 @@ BuildRequires: %{py3_dist sphinx_rtd_theme}
|
|
|
|
%{summary}.
|
|
|
|
%{summary}.
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -n wrapt-%{version}
|
|
|
|
%autosetup -n wrapt-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
%generate_buildrequires
|
|
|
|
%pyproject_buildrequires
|
|
|
|
%pyproject_buildrequires
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%pyproject_wheel
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
|
@ -66,21 +71,26 @@ PYTHONPATH="${PWD}" %make_build -C docs latex \
|
|
|
|
%make_build -C docs/_build/latex LATEXMKOPTS='-quiet'
|
|
|
|
%make_build -C docs/_build/latex LATEXMKOPTS='-quiet'
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%pyproject_install
|
|
|
|
%pyproject_install
|
|
|
|
%pyproject_save_files -l wrapt
|
|
|
|
%pyproject_save_files -l wrapt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
%pytest -v
|
|
|
|
%pytest -v
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with docs}
|
|
|
|
%if %{with docs}
|
|
|
|
%files doc
|
|
|
|
%files doc
|
|
|
|
%license LICENSE
|
|
|
|
%license LICENSE
|
|
|
|
%doc docs/_build/latex/wrapt.pdf
|
|
|
|
%doc docs/_build/latex/wrapt.pdf
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-wrapt -f %{pyproject_files}
|
|
|
|
%files -n python3-wrapt -f %{pyproject_files}
|
|
|
|
%doc README.rst
|
|
|
|
%doc README.rst
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
%autochangelog
|
|
|
|
%autochangelog
|
|
|
|