From 0b8ef59363c0750e25682c9a99892bd55d4e911a Mon Sep 17 00:00:00 2001 From: chedi Date: Oct 12 2021 16:08:53 +0000 Subject: changing package source and fixing some build errors --- diff --git a/python-sphinx_ansible_theme.spec b/python-sphinx_ansible_theme.spec index ce344cc..3a72c0e 100644 --- a/python-sphinx_ansible_theme.spec +++ b/python-sphinx_ansible_theme.spec @@ -1,7 +1,8 @@ -%global srcname sphinx_ansible_theme -%global forgeurl https://github.com/ansible-community/%{srcname} +%global srcname sphinx-ansible-theme +%global pkgname sphinx_ansible_theme +%global forgeurl https://github.com/ansible-community/%{pkgname} -Name: python-%{srcname} +Name: python-%{pkgname} Version: 0.8.0 %forgemeta Release: 1%{?dist} @@ -9,12 +10,13 @@ Summary: A reusable Ansible Sphinx Theme License: MIT and BSD URL: %{forgeurl} -Source: %{forgesource} +Source: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(setuptools) BuildRequires: python3dist(sphinx-rtd-theme) +BuildRequires: python3dist(sphinx-notfound-page) BuildRequires: python3dist(setuptools-scm-git-archive) # docs requirements @@ -28,20 +30,20 @@ which are part of Ansible ecosystem} %description %{_description} -%package -n python-%{srcname}-doc +%package -n python-%{pkgname}-doc Summary: %summary -%description -n python-%{srcname}-doc +%description -n python-%{pkgname}-doc Documentation for sphinx_ansible_theme -%package -n python3-%{srcname} +%package -n python3-%{pkgname} Summary: %summary -Requires: python3-sphinx +Requires: python3dist(sphinx) Requires: fontawesome-fonts Requires: fontawesome-fonts-web -Recommends: python-%{srcname}-doc -%{?python_provide:%python_provide python3-%{srcname}} +Recommends: python-%{pkgname}-doc +%{?python_provide:%python_provide python3-%{pkgname}} -%description -n python3-%{srcname} %{_description} +%description -n python3-%{pkgname} %{_description} %prep %setup -q -n %{srcname}-%{version} @@ -56,23 +58,19 @@ rm -vr html/.{doctrees,buildinfo} %install %py3_install -pushd %{buildroot}%{python3_sitelib}/%{srcname}/static/fonts -rm -f FontAwesome.otf -rm -f fontawesome-webfont.* ln -s %{_datadir}/fonts/fontawesome/FontAwesome.otf . ln -s %{_datadir}/fonts/fontawesome/fontawesome-webfont.eot . ln -s %{_datadir}/fonts/fontawesome/fontawesome-webfont.svg . ln -s %{_datadir}/fonts/fontawesome/fontawesome-webfont.ttf . ln -s %{_datadir}/fonts/fontawesome/fontawesome-webfont.woff . ln -s %{_datadir}/fonts/fontawesome/fontawesome-webfont.woff2 . -popd -%files -n python3-%{srcname} +%files -n python3-%{pkgname} %doc README.rst %license LICENSE -%{python3_sitelib}/%{srcname}* +%{python3_sitelib}/%{pkgname}* -%files -n python-%{srcname}-doc +%files -n python-%{pkgname}-doc %doc html %license LICENSE diff --git a/sources b/sources index 0bbf571..c4ed7ee 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (sphinx_ansible_theme-0.8.0.tar.gz) = b849fa8c4694e471db88c2f33547537be9e3baecd8de16075dc950f175f49d2ba1b2b2a297774bf320feb5a23bde3f42ad6d27697f3f71f17c997d240b178836 +SHA512 (sphinx-ansible-theme-0.8.0.tar.gz) = 399af992428dd3212681efa66036af9ae7dbd9a9dd507452686cc76aa3e365aabee0ba7b599fbbed85f1f252075d5158ade9a816a9aad17b4e5ed696be1c962e