Spec-file formatting according to personal preference

[skip changelog]
i10ce
Benjamin A. Beasley 2 months ago
parent 63cec5f99b
commit b925fe0488

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

Loading…
Cancel
Save