|
|
40e775 |
%{?python_enable_dependency_generator}
|
|
|
40e775 |
%global srcname sphinxcontrib-programoutput
|
|
|
40e775 |
%global _docdir_fmt %{name}
|
|
|
40e775 |
|
|
|
40e775 |
Name: python-sphinxcontrib-programoutput
|
|
rdobuilder |
aae261 |
Version: 0.17
|
|
rdobuilder |
aae261 |
Release: 2%{?dist}
|
|
|
40e775 |
Summary: Extension to insert output of commands into documents
|
|
|
40e775 |
|
|
|
40e775 |
License: BSD
|
|
|
40e775 |
URL: https://pypi.python.org/pypi/sphinxcontrib-programoutput
|
|
|
40e775 |
Source0: https://github.com/NextThought/sphinxcontrib-programoutput/archive/%{version}/%{srcname}-%{version}.tar.gz
|
|
|
40e775 |
|
|
|
40e775 |
BuildArch: noarch
|
|
|
40e775 |
BuildRequires: python3-sphinx
|
|
|
40e775 |
|
|
|
40e775 |
BuildRequires: python3-devel
|
|
|
40e775 |
BuildRequires: python3-setuptools
|
|
|
40e775 |
BuildRequires: python3dist(sphinx) >= 1.3.5
|
|
|
40e775 |
BuildRequires: python3-pytest
|
|
|
40e775 |
# The documentation runs commands like 'python -V' and 'python --help'.
|
|
|
40e775 |
# Any python version is fine.
|
|
|
40e775 |
BuildRequires: python-unversioned-command
|
|
|
40e775 |
BuildRequires: git
|
|
|
40e775 |
BuildRequires: web-assets-devel
|
|
|
40e775 |
|
|
|
40e775 |
%description
|
|
|
40e775 |
A Sphinx extension to literally insert the output of arbitrary
|
|
|
40e775 |
commands into documents, helping you to keep your command examples
|
|
|
40e775 |
up to date.
|
|
|
40e775 |
|
|
|
40e775 |
%package -n python3-%{srcname}
|
|
|
40e775 |
Summary: %{summary}
|
|
|
40e775 |
|
|
rdobuilder |
aae261 |
Requires: js-jquery
|
|
|
40e775 |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
40e775 |
|
|
|
40e775 |
%description -n python3-%{srcname}
|
|
|
40e775 |
A Sphinx extension to literally insert the output of arbitrary
|
|
|
40e775 |
commands into documents, helping you to keep your command examples
|
|
|
40e775 |
up to date.
|
|
|
40e775 |
|
|
|
40e775 |
%prep
|
|
|
40e775 |
%autosetup -n %{srcname}-%{version} -p1
|
|
|
40e775 |
sed -r -i s/python/python3/ src/sphinxcontrib/programoutput/tests/{test_directive.py,test_command.py,test_cache.py}
|
|
|
40e775 |
|
|
|
40e775 |
%build
|
|
|
40e775 |
%py3_build
|
|
|
40e775 |
PYTHONPATH=build/lib sphinx-build -b html doc build/html
|
|
|
40e775 |
|
|
|
40e775 |
rm -r build/html/.buildinfo build/html/.doctrees
|
|
|
40e775 |
|
|
|
40e775 |
# Seems not needed with python3.10+. Remove when older version don't need to be supported.
|
|
|
40e775 |
rm -rf build/lib/sphinxcontrib/__pycache__
|
|
|
40e775 |
|
|
|
40e775 |
%install
|
|
|
40e775 |
%py3_install
|
|
|
40e775 |
mkdir -p %{buildroot}%{_pkgdocdir}
|
|
|
40e775 |
cp -rv build/html %{buildroot}%{_pkgdocdir}/
|
|
|
40e775 |
ln -vsf %{_jsdir}/jquery/latest/jquery.min.js %{buildroot}%{_pkgdocdir}/html/_static/jquery.js
|
|
|
40e775 |
|
|
|
40e775 |
# remove .pth file which is useless under python3 and breaks namespace modules
|
|
|
40e775 |
rm %{buildroot}%{python3_sitelib}/sphinxcontrib_programoutput-*-nspkg.pth
|
|
|
40e775 |
|
|
|
40e775 |
%check
|
|
|
40e775 |
%pytest -v %{buildroot}%{python3_sitelib}/sphinxcontrib -k 'not test_standard_error_disabled'
|
|
|
40e775 |
|
|
|
40e775 |
|
|
|
40e775 |
%files -n python3-%{srcname}
|
|
|
40e775 |
%license LICENSE
|
|
|
40e775 |
%doc %{_pkgdocdir}
|
|
|
40e775 |
%{python3_sitelib}/sphinxcontrib/*
|
|
|
40e775 |
%{python3_sitelib}/sphinxcontrib_programoutput*info/
|
|
|
40e775 |
|
|
|
40e775 |
%changelog
|
|
rdobuilder |
aae261 |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.17-2
|
|
rdobuilder |
aae261 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
rdobuilder |
aae261 |
|
|
rdobuilder |
aae261 |
* Tue Jun 15 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.17-1
|
|
rdobuilder |
aae261 |
- Latest version (#1945468)
|
|
rdobuilder |
aae261 |
|
|
rdobuilder |
aae261 |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.16-2
|
|
rdobuilder |
aae261 |
- Rebuilt for Python 3.10
|
|
|
aff101 |
|
|
|
40e775 |
* Mon Feb 1 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.16-1
|
|
|
40e775 |
- Latest version (#1752563)
|
|
|
40e775 |
|
|
|
40e775 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-8
|
|
|
40e775 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
40e775 |
|
|
|
40e775 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-7
|
|
|
40e775 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
40e775 |
|
|
|
40e775 |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.14-6
|
|
|
40e775 |
- Rebuilt for Python 3.9
|
|
|
40e775 |
|
|
|
40e775 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-5
|
|
|
40e775 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
40e775 |
|
|
|
40e775 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.14-4
|
|
|
40e775 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
40e775 |
|
|
|
40e775 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.14-3
|
|
|
40e775 |
- Rebuilt for Python 3.8
|
|
|
40e775 |
|
|
|
40e775 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-2
|
|
|
40e775 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
40e775 |
|
|
|
40e775 |
* Mon Jun 3 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.14-1
|
|
|
40e775 |
- Fix compatibility with sphinx 2.0 (#1716531)
|
|
|
40e775 |
|
|
|
40e775 |
* Fri Apr 26 2019 Yatin Karel <ykarel@redhat.com> - 0.14-1
|
|
|
40e775 |
- Update to 0.14 (#1697058)
|
|
|
40e775 |
|
|
|
40e775 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-7
|
|
|
40e775 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
40e775 |
|
|
|
40e775 |
* Sat Dec 29 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.11-6
|
|
|
40e775 |
- Enable python dependency generator
|
|
|
40e775 |
|
|
|
40e775 |
* Fri Dec 28 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.11-5
|
|
|
40e775 |
- Subpackage python2-sphinxcontrib-programoutput has been removed
|
|
|
40e775 |
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
|
40e775 |
|
|
|
40e775 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-4
|
|
|
40e775 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
40e775 |
|
|
|
40e775 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.11-3
|
|
|
40e775 |
- Rebuilt for Python 3.7
|
|
|
40e775 |
|
|
|
40e775 |
* Wed Feb 28 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.11-2
|
|
|
40e775 |
- Update Python 2 dependency declarations to new packaging standards
|
|
|
40e775 |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
40e775 |
|
|
|
40e775 |
* Sat Feb 24 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.11-1
|
|
|
40e775 |
- Switch upstream, update to latest version
|
|
|
40e775 |
|
|
|
40e775 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8-12
|
|
|
40e775 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
40e775 |
|
|
|
40e775 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8-11
|
|
|
40e775 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
40e775 |
|
|
|
40e775 |
* Fri Mar 24 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.8-10
|
|
|
40e775 |
- Drop useless .pth files under python3
|
|
|
40e775 |
|
|
|
40e775 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8-9
|
|
|
40e775 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
40e775 |
|
|
|
40e775 |
* Tue Jan 10 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.8-8
|
|
|
40e775 |
- Fix build with new pytest and sphinx-1.5
|
|
|
40e775 |
|
|
|
40e775 |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.8-7
|
|
|
40e775 |
- Rebuild for Python 3.6
|
|
|
40e775 |
|
|
|
40e775 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.8-6
|
|
|
40e775 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
40e775 |
|
|
|
40e775 |
* Thu Dec 03 2015 Robert Buchholz <rbu@goodpoint.de> - 0.8-5
|
|
|
40e775 |
- epel7: Only build python2 package
|
|
|
40e775 |
|
|
|
40e775 |
* Mon Nov 16 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.8-4
|
|
|
40e775 |
- Update to latest packaging guidelines
|
|
|
40e775 |
|
|
|
40e775 |
* Mon Jul 27 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.8-3
|
|
|
40e775 |
- Make provides versioned
|
|
|
40e775 |
|
|
|
40e775 |
* Fri Jul 24 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.8-2
|
|
|
40e775 |
- Remove stray __pycache__ dir
|
|
|
40e775 |
- Add web-assets-devel to BR and Provide python2-*
|
|
|
40e775 |
|
|
|
40e775 |
* Tue Jul 21 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.8-1
|
|
|
40e775 |
- Initial packaging
|