d9ed520
%global pypi_name restview
d9ed520
d9ed520
Name:           %{pypi_name}
b7784e6
Version:        3.0.0
1372f57
Release:        7%{?dist}
d9ed520
Summary:        ReStructuredText viewer
d9ed520
d9ed520
License:        GPLv3+
d9ed520
URL:            https://mg.pov.lt/restview/
d9ed520
Source0:        %{pypi_source}
1aaef52
d9ed520
BuildArch:      noarch
d9ed520
 
d9ed520
BuildRequires:  python3-devel
d9ed520
BuildRequires:  python3-docutils
d9ed520
BuildRequires:  python3-pygments
3c6b8dc
BuildRequires:  python3-readme-renderer
d9ed520
BuildRequires:  python3-setuptools
b7784e6
BuildRequires:  python3-pytest
d9ed520
d9ed520
Requires:       python3-%{pypi_name} = %{?epoch:%{epoch}:}%{version}-%{release}
d9ed520
d9ed520
%description
d9ed520
A viewer for ReStructuredText documents that renders them on the fly. Pass
d9ed520
the name of a ReStructuredText document to restview, and it will launch a
d9ed520
web server on localhost:random-port and open a web browser. Every time you
d9ed520
reload the page, restview will reload the document from disk and render it.
d9ed520
d9ed520
%package -n     python3-%{pypi_name}
d9ed520
Summary:        %{summary}
d9ed520
%{?python_provide:%python_provide python3-%{pypi_name}}
d9ed520
d9ed520
%description -n python3-%{pypi_name}
d9ed520
A library for ReStructuredText documents that renders them.
d9ed520
d9ed520
%prep
1aaef52
%autosetup -p1 -n %{pypi_name}-%{version}
d9ed520
rm -rf %{pypi_name}.egg-info
d9ed520
d9ed520
%build
d9ed520
%py3_build
d9ed520
d9ed520
%install
d9ed520
%py3_install
d9ed520
d9ed520
%check
b7784e6
%pytest -v src/restview/tests.py -k "not restview.tests.doctest_RestViewer_rest_to_html"
d9ed520
d9ed520
%files
d9ed520
%{_bindir}/%{pypi_name}
d9ed520
d9ed520
%files -n python3-%{pypi_name}
d9ed520
%license LICENSE
d9ed520
%doc README.rst
d9ed520
%{python3_sitelib}/%{pypi_name}/
d9ed520
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info/
d9ed520
d9ed520
%changelog
1372f57
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 3.0.0-7
1372f57
- Rebuilt for Python 3.13
1372f57
637aca1
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-6
637aca1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
637aca1
b58b349
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-5
b58b349
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
b58b349
31fd0cf
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-4
31fd0cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
31fd0cf
5f8adde
* Mon Jul 03 2023 Python Maint <python-maint@redhat.com> - 3.0.0-3
5f8adde
- Rebuilt for Python 3.12
5f8adde
a5e3c5c
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-2
a5e3c5c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
a5e3c5c
b7784e6
* Sun Sep 25 2022 Fabian Affolter <mail@fabian-affolter.ch> - 3.0.0-1
b7784e6
- Update to latest upstream release 3.0.0 (closes rhbz#2114560)
b7784e6
6ca279a
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.2-10
6ca279a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
6ca279a
5989673
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2.9.2-9
5989673
- Rebuilt for Python 3.11
5989673
1aaef52
* Fri Jan 21 2022 Miro Hrončok <mhroncok@redhat.com> - 2.9.2-8
1aaef52
- Use unittest.mock instead of deprecated mock
1aaef52
0914365
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.2-7
0914365
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
0914365
9d013be
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.2-6
9d013be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
9d013be
a3cbdaa
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.9.2-5
a3cbdaa
- Rebuilt for Python 3.10
a3cbdaa
dcbede4
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.2-4
dcbede4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
dcbede4
3a61322
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.2-3
3a61322
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
3a61322
c8bfb74
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.9.2-2
c8bfb74
- Rebuilt for Python 3.9
c8bfb74
d9ed520
* Mon Mar 02 2020 Fabian Affolter <mail@fabian-affolter.ch> - 2.9.2-1
d9ed520
- Initial package for Fedora