|
 |
0b8ef59 |
%global srcname sphinx-ansible-theme
|
|
 |
0b8ef59 |
%global pkgname sphinx_ansible_theme
|
|
 |
0b8ef59 |
%global forgeurl https://github.com/ansible-community/%{pkgname}
|
|
 |
5ca2983 |
|
|
 |
0b8ef59 |
Name: python-%{pkgname}
|
|
 |
319b302 |
Version: 0.9.1
|
|
 |
923d4c2 |
%forgemeta
|
|
 |
71c46b1 |
Release: 4%{?dist}
|
|
 |
5ca2983 |
Summary: A reusable Ansible Sphinx Theme
|
|
 |
5ca2983 |
|
|
 |
5ca2983 |
License: MIT and BSD
|
|
 |
923d4c2 |
URL: %{forgeurl}
|
|
 |
0b8ef59 |
Source: %{pypi_source}
|
|
 |
5ca2983 |
BuildArch: noarch
|
|
 |
5ca2983 |
|
|
 |
5ca2983 |
BuildRequires: python3-devel
|
|
 |
319b302 |
BuildRequires: pyproject-rpm-macros
|
|
 |
0b8ef59 |
BuildRequires: python3dist(sphinx-notfound-page)
|
|
 |
5ca2983 |
|
|
 |
5ca2983 |
%global _description %{expand:
|
|
 |
5ca2983 |
A reusable Ansible Sphinx Theme. This theme is building on top
|
|
 |
5ca2983 |
of RTD Theme and adds customization's needed for building projects
|
|
 |
5ca2983 |
which are part of Ansible ecosystem}
|
|
 |
5ca2983 |
%description %{_description}
|
|
 |
5ca2983 |
|
|
 |
0b8ef59 |
%package -n python-%{pkgname}-doc
|
|
 |
319b302 |
Summary: %{summary}
|
|
 |
0b8ef59 |
%description -n python-%{pkgname}-doc
|
|
 |
5ca2983 |
Documentation for sphinx_ansible_theme
|
|
 |
5ca2983 |
|
|
 |
0b8ef59 |
%package -n python3-%{pkgname}
|
|
 |
319b302 |
Summary: %{summary}
|
|
 |
0b8ef59 |
%description -n python3-%{pkgname} %{_description}
|
|
 |
5ca2983 |
|
|
 |
5ca2983 |
%prep
|
|
 |
319b302 |
%autosetup -p1 -n %{srcname}-%{version}
|
|
 |
319b302 |
%generate_buildrequires
|
|
 |
319b302 |
%pyproject_buildrequires
|
|
 |
5ca2983 |
|
|
 |
5ca2983 |
%build
|
|
 |
319b302 |
%pyproject_wheel
|
|
 |
5ca2983 |
# generate html docs
|
|
 |
5ca2983 |
PYTHONPATH=. sphinx-build-3 docs html
|
|
 |
5ca2983 |
# remove the sphinx-build leftovers
|
|
 |
5ca2983 |
rm -vr html/.{doctrees,buildinfo}
|
|
 |
5ca2983 |
|
|
 |
5ca2983 |
%install
|
|
 |
319b302 |
%pyproject_install
|
|
 |
5ca2983 |
ln -s %{_datadir}/fonts/fontawesome/FontAwesome.otf .
|
|
 |
5ca2983 |
ln -s %{_datadir}/fonts/fontawesome/fontawesome-webfont.eot .
|
|
 |
5ca2983 |
ln -s %{_datadir}/fonts/fontawesome/fontawesome-webfont.svg .
|
|
 |
5ca2983 |
ln -s %{_datadir}/fonts/fontawesome/fontawesome-webfont.ttf .
|
|
 |
5ca2983 |
ln -s %{_datadir}/fonts/fontawesome/fontawesome-webfont.woff .
|
|
 |
5ca2983 |
ln -s %{_datadir}/fonts/fontawesome/fontawesome-webfont.woff2 .
|
|
 |
5ca2983 |
|
|
 |
0b8ef59 |
%files -n python3-%{pkgname}
|
|
 |
5ca2983 |
%doc README.rst
|
|
 |
5ca2983 |
%license LICENSE
|
|
 |
0b8ef59 |
%{python3_sitelib}/%{pkgname}*
|
|
 |
5ca2983 |
|
|
 |
0b8ef59 |
%files -n python-%{pkgname}-doc
|
|
 |
5ca2983 |
%doc html
|
|
 |
5ca2983 |
%license LICENSE
|
|
 |
5ca2983 |
|
|
 |
5ca2983 |
%changelog
|
|
 |
71c46b1 |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-4
|
|
 |
71c46b1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
 |
71c46b1 |
|
|
 |
21db0bc |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-3
|
|
 |
21db0bc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
 |
21db0bc |
|
|
 |
1145013 |
* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 0.9.1-2
|
|
 |
1145013 |
- Rebuilt for Python 3.11
|
|
 |
1145013 |
|
|
 |
319b302 |
%autochangelog
|