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}
|
Source: %{pypi_source alabaster}
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
BuildRequires: python%{python3_pkgversion}-devel
|
||||||
|
|
||||||
%global _description %{expand:
|
%global _description %{expand:
|
||||||
Alabaster is a visually (c)lean, responsive, configurable theme for the Sphinx
|
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
|
%package -n python%{python3_pkgversion}-sphinx-theme-alabaster
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
BuildRequires: python%{python3_pkgversion}-devel
|
|
||||||
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
||||||
%py_provides python%{python3_pkgversion}-alabaster
|
%py_provides python%{python3_pkgversion}-alabaster
|
||||||
|
|
||||||
%description -n python%{python3_pkgversion}-sphinx-theme-alabaster %_description
|
%description -n python%{python3_pkgversion}-sphinx-theme-alabaster %_description
|
||||||
@ -33,19 +32,21 @@ BuildRequires: python%{python3_pkgversion}-setuptools
|
|||||||
%autosetup -p1 -n alabaster-%{version}
|
%autosetup -p1 -n alabaster-%{version}
|
||||||
|
|
||||||
|
|
||||||
|
%generate_buildrequires
|
||||||
|
%pyproject_buildrequires
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%pyproject_wheel
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%pyproject_install
|
||||||
|
%pyproject_save_files alabaster
|
||||||
|
|
||||||
|
|
||||||
%files -n python%{python3_pkgversion}-sphinx-theme-alabaster
|
%files -n python%{python3_pkgversion}-sphinx-theme-alabaster -f %{pyproject_files}
|
||||||
%license LICENSE
|
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python3_sitelib}/alabaster-%{version}-py%{python3_version}.egg-info/
|
|
||||||
%{python3_sitelib}/alabaster/
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user