Blame SPECS/python-sphinxcontrib-programoutput.spec

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