Convert to pyproject-rpm-macros
This commit is contained in:
parent
460940e6b7
commit
41ab16f8b5
@ -8,6 +8,7 @@ URL: https://pypi.python.org/pypi/alabaster
|
||||
Source: %{pypi_source alabaster}
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: python%{python3_pkgversion}-devel
|
||||
|
||||
%global _description %{expand:
|
||||
Alabaster is a visually (c)lean, responsive, configurable theme for the Sphinx
|
||||
@ -22,8 +23,6 @@ selected as the default theme.}
|
||||
|
||||
%package -n python%{python3_pkgversion}-sphinx-theme-alabaster
|
||||
Summary: %{summary}
|
||||
BuildRequires: python%{python3_pkgversion}-devel
|
||||
BuildRequires: python%{python3_pkgversion}-setuptools
|
||||
%py_provides python%{python3_pkgversion}-alabaster
|
||||
|
||||
%description -n python%{python3_pkgversion}-sphinx-theme-alabaster %_description
|
||||
@ -33,19 +32,21 @@ BuildRequires: python%{python3_pkgversion}-setuptools
|
||||
%autosetup -p1 -n alabaster-%{version}
|
||||
|
||||
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires
|
||||
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
%pyproject_wheel
|
||||
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
%pyproject_install
|
||||
%pyproject_save_files alabaster
|
||||
|
||||
|
||||
%files -n python%{python3_pkgversion}-sphinx-theme-alabaster
|
||||
%license LICENSE
|
||||
%files -n python%{python3_pkgversion}-sphinx-theme-alabaster -f %{pyproject_files}
|
||||
%doc README.rst
|
||||
%{python3_sitelib}/alabaster-%{version}-py%{python3_version}.egg-info/
|
||||
%{python3_sitelib}/alabaster/
|
||||
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user