Blame SPECS/python-sphinx_selective_exclude.spec

dd28ca
%global srcname sphinx_selective_exclude
dd28ca
dd28ca
# Upstream does not have any tests yet
dd28ca
%bcond_with tests
dd28ca
dd28ca
Name:           python-%{srcname}
dd28ca
Version:        1.0.3
dd28ca
Release:        5%{?dist}
dd28ca
Summary:        Sphinx eager ".. only::" directive and other selective rendition extensions
dd28ca
dd28ca
License:        BSD
dd28ca
Url:            https://github.com/pfalcon/sphinx_selective_exclude
dd28ca
Source0:        %{pypi_source}
dd28ca
dd28ca
BuildArch:      noarch
dd28ca
dd28ca
%global _description %{expand:
dd28ca
The implementation of ".. only::" directive in Sphinx documentation generation
dd28ca
tool is known to violate principles of least user surprise and user expectations
dd28ca
in general. Instead of excluding content early in the pipeline (preprocessor
dd28ca
style), Sphinx defers exclusion until output phase, and what's the worst,
dd28ca
various stages processing ignore "only" blocks and their exclusion status, so
dd28ca
they may leak unexpected information into ToC, indexes, etc.
dd28ca
dd28ca
This projects tries to rectify situation on users' side. It actually changes the
dd28ca
way Sphinx processes "only" directive, but does this without forking the
dd28ca
project, and instead is made as a standard Sphinx extension, which a user may
dd28ca
add to their documentation config. Unlike normal extensions, extensions provided
dd28ca
in this package monkey-patch Sphinx core to work in a way expected by users.}
dd28ca
dd28ca
%description %_description
dd28ca
dd28ca
dd28ca
%package -n python3-%{srcname}
dd28ca
Summary:        %{summary}
dd28ca
BuildRequires:  python3-devel
dd28ca
BuildRequires:  python3-setuptools
dd28ca
BuildRequires:  python3-sphinx
dd28ca
Requires:       python3-sphinx
dd28ca
dd28ca
%description -n python3-%{srcname} %_description
dd28ca
dd28ca
dd28ca
%prep
dd28ca
%autosetup -n %{srcname}-%{version}
dd28ca
dd28ca
dd28ca
%build
dd28ca
%py3_build
dd28ca
dd28ca
dd28ca
%install
dd28ca
%py3_install
dd28ca
dd28ca
dd28ca
%if %{with tests}
dd28ca
%check
dd28ca
%endif
dd28ca
dd28ca
dd28ca
%files -n python3-%{srcname}
dd28ca
%license LICENSE
dd28ca
%doc README.md
dd28ca
%{python3_sitelib}/%{srcname}-*.egg-info/
dd28ca
%{python3_sitelib}/%{srcname}/
dd28ca
dd28ca
dd28ca
%changelog
dd28ca
* Thu Sep 16 2021 Kaleb S. KEITHLEY <kkeithle [at] redhat.com> - 1.0.3-5
dd28ca
- rebuild from git+lookaside
dd28ca
dd28ca
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-4
dd28ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
dd28ca
dd28ca
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.0.3-3
dd28ca
- Rebuilt for Python 3.10
dd28ca
dd28ca
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-2
dd28ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
dd28ca
dd28ca
* Fri Nov 20 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.0.3-1
dd28ca
- Initial package