|
|
18abbb |
%global srcname sphinx-testing
|
|
|
18abbb |
|
|
|
18abbb |
Name: python-%{srcname}
|
|
|
18abbb |
Version: 1.0.1
|
|
|
18abbb |
Release: 10%{?dist}
|
|
|
18abbb |
Summary: Testing utility classes and functions for Sphinx extensions
|
|
|
18abbb |
|
|
|
18abbb |
License: BSD
|
|
|
18abbb |
URL: https://github.com/sphinx-doc/sphinx-testing
|
|
|
18abbb |
Source0: %pypi_source
|
|
|
18abbb |
# See https://bugzilla.redhat.com/show_bug.cgi?id=1789151
|
|
|
18abbb |
Patch0: %{name}-open-mode.patch
|
|
|
18abbb |
|
|
|
18abbb |
BuildArch: noarch
|
|
|
18abbb |
BuildRequires: python3-devel
|
|
|
18abbb |
BuildRequires: %{py3_dist pytest}
|
|
|
18abbb |
BuildRequires: %{py3_dist setuptools}
|
|
|
18abbb |
BuildRequires: %{py3_dist six}
|
|
|
18abbb |
BuildRequires: %{py3_dist sphinx}
|
|
|
18abbb |
|
|
|
18abbb |
%global common_desc %{expand:
|
|
|
18abbb |
This package provides a few utility classes and functions to help
|
|
|
18abbb |
authors of Sphinx extensions write tests for those extensions.}
|
|
|
18abbb |
|
|
|
18abbb |
%description %common_desc
|
|
|
18abbb |
|
|
|
18abbb |
%package -n python3-%{srcname}
|
|
|
18abbb |
Summary: Testing utility classes and functions for Sphinx extensions
|
|
|
18abbb |
|
|
|
18abbb |
%description -n python3-%{srcname} %common_desc
|
|
|
18abbb |
|
|
|
18abbb |
%prep
|
|
|
18abbb |
%autosetup -p1 -n %{srcname}-%{version}
|
|
|
18abbb |
|
|
|
18abbb |
# Remove useless shebang
|
|
|
18abbb |
sed -i '\@/usr/bin/env python@d' src/sphinx_testing/path.py
|
|
|
18abbb |
|
|
|
18abbb |
%build
|
|
|
18abbb |
%py3_build
|
|
|
18abbb |
rst2html --no-datestamp CHANGES.rst CHANGES.html
|
|
|
18abbb |
rst2html --no-datestamp README.rst README.html
|
|
|
18abbb |
|
|
|
18abbb |
%install
|
|
|
18abbb |
%py3_install
|
|
|
18abbb |
|
|
|
18abbb |
%check
|
|
|
18abbb |
# upstream project uses nose which is no longer maintained, along with nose-cov
|
|
|
18abbb |
# which isn't packaged.
|
|
|
18abbb |
# Using py.test just works: https://github.com/sphinx-doc/sphinx-testing/issues/15
|
|
|
18abbb |
PYTHONPATH=$PWD/src pytest-%{python3_version} -v tests
|
|
|
18abbb |
|
|
|
18abbb |
%files -n python3-%{srcname}
|
|
|
18abbb |
%doc AUTHORS Sphinx-AUTHORS *.html
|
|
|
18abbb |
%license LICENSE
|
|
|
18abbb |
%{python3_sitelib}/sphinx_testing*
|
|
|
18abbb |
|
|
|
18abbb |
%changelog
|
|
|
18abbb |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-10
|
|
|
18abbb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
18abbb |
|
|
|
18abbb |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-9
|
|
|
18abbb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
18abbb |
|
|
|
18abbb |
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 1.0.1-8
|
|
|
18abbb |
- Rebuilt for Python 3.9
|
|
|
18abbb |
|
|
|
18abbb |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-7
|
|
|
18abbb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
18abbb |
|
|
|
18abbb |
* Wed Jan 8 2020 Jerry James <loganjerry@gmail.com> - 1.0.1-6
|
|
|
18abbb |
- Add -open-mode patch to fix FTBFS with python 3.9
|
|
|
18abbb |
|
|
|
18abbb |
* Thu Jan 2 2020 Jerry James <loganjerry@gmail.com> - 1.0.1-5
|
|
|
18abbb |
- Switch from nose to pytest (thanks to Alfredo Deza)
|
|
|
18abbb |
- Drop redundant Requires
|
|
|
18abbb |
|
|
|
18abbb |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.1-4
|
|
|
18abbb |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
18abbb |
|
|
|
18abbb |
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.1-3
|
|
|
18abbb |
- Rebuilt for Python 3.8
|
|
|
18abbb |
|
|
|
18abbb |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-2
|
|
|
18abbb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
18abbb |
|
|
|
18abbb |
* Mon Apr 15 2019 Jerry James <loganjerry@gmail.com> - 1.0.1-1
|
|
|
18abbb |
- New upstream version (bz 1700035)
|
|
|
18abbb |
|
|
|
18abbb |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
|
|
|
18abbb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
18abbb |
|
|
|
18abbb |
* Sat Jan 26 2019 Jerry James <loganjerry@gmail.com> - 1.0.0-1
|
|
|
18abbb |
- New upstream version (bz 1669778)
|
|
|
18abbb |
|
|
|
18abbb |
* Mon Nov 26 2018 Jerry James <loganjerry@gmail.com> - 0.8.1-1
|
|
|
18abbb |
- New upstream version
|
|
|
18abbb |
- Drop all patches; all upstreamed
|
|
|
18abbb |
|
|
|
18abbb |
* Thu Nov 22 2018 Jerry James <loganjerry@gmail.com> - 0.7.2-6
|
|
|
18abbb |
- Drop python2 subpackage (bz 1645075)
|
|
|
18abbb |
- Use upstream's version of the -test patch
|
|
|
18abbb |
- Add -badge, -sphinx8, -desc, and -py33 patches from upstream
|
|
|
18abbb |
|
|
|
18abbb |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2-5
|
|
|
18abbb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
18abbb |
|
|
|
18abbb |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.7.2-4
|
|
|
18abbb |
- Rebuilt for Python 3.7
|
|
|
18abbb |
|
|
|
18abbb |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2-3
|
|
|
18abbb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
18abbb |
|
|
|
18abbb |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2-2
|
|
|
18abbb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
18abbb |
|
|
|
18abbb |
* Thu May 4 2017 Jerry James <loganjerry@gmail.com> - 0.7.2-1
|
|
|
18abbb |
- New upstream version (bz 1447818)
|
|
|
18abbb |
|
|
|
18abbb |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-4
|
|
|
18abbb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
18abbb |
|
|
|
18abbb |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.7.1-3
|
|
|
18abbb |
- Rebuild for Python 3.6
|
|
|
18abbb |
|
|
|
18abbb |
* Tue Mar 1 2016 Jerry James <loganjerry@gmail.com> - 0.7.1-2
|
|
|
18abbb |
- Clarify the description
|
|
|
18abbb |
- Fix nosetests invocation
|
|
|
18abbb |
- Don't preserve timestamp of altered file
|
|
|
18abbb |
|
|
|
18abbb |
* Thu Feb 25 2016 Jerry James <loganjerry@gmail.com> - 0.7.1-1
|
|
|
18abbb |
- Initial RPM
|