Blame python-sphinx_selective_exclude.spec

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