#2 spec: replace hardcoded python3
Merged 3 years ago by churchyard. Opened 3 years ago by fepitre.
rpms/ fepitre/python-sphinxcontrib-serializinghtml python3  into  master

@@ -13,12 +13,12 @@ 

  BuildArch:      noarch

  

  BuildRequires:  gettext

- BuildRequires:  python3-devel

- BuildRequires:  python3-setuptools

+ BuildRequires:  python%{python3_pkgversion}-devel

+ BuildRequires:  python%{python3_pkgversion}-setuptools

  

  %if %{with check}

- BuildRequires:  python3-pytest

- BuildRequires:  python3-sphinx >= 1:2

+ BuildRequires:  python%{python3_pkgversion}-pytest

+ BuildRequires:  python%{python3_pkgversion}-sphinx >= 1:2

  %endif

  

  %description
@@ -26,11 +26,11 @@ 

  HTML files (json and pickle).

  

  

- %package -n     python3-%{pypi_name}

+ %package -n     python%{python3_pkgversion}-%{pypi_name}

  Summary:        %{summary}

- %{?python_provide:%python_provide python3-%{pypi_name}}

+ %{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}

  

- %description -n python3-%{pypi_name}

+ %description -n python%{python3_pkgversion}-%{pypi_name}

  sphinxcontrib-serializinghtml is a sphinx extension which outputs "serialized"

  HTML files (json and pickle).

  
@@ -72,7 +72,7 @@ 

  %endif

  

  

- %files -n python3-%{pypi_name} -f sphinxcontrib.serializinghtml.lang

+ %files -n python%{python3_pkgversion}-%{pypi_name} -f sphinxcontrib.serializinghtml.lang

  %license LICENSE

  %doc README.rst

  %{python3_sitelib}/sphinxcontrib/

Signed-off-by: Frédéric Pierret (fepitre) frederic.pierret@qubes-os.org

It's for building it for CentOS 8 with python38 version. I intend to build a COPR repo with more python38 packages than the few ones provided. Preliminary repo is here: https://copr.fedorainfracloud.org/coprs/fepitre/epel-8-python38/.

Pull-Request has been merged by churchyard

3 years ago