3c2f83a
%global pypi_name sphinx-removed-in
3c2f83a
3c2f83a
Name:           python-%{pypi_name}
3c2f83a
Version:        0.1.3
5e0c189
Release:        2%{?dist}
3c2f83a
Summary:        versionremoved and removed-in directives for Sphinx
3c2f83a
License:        BSD
3c2f83a
URL:            https://github.com/MrSenko/sphinx-removed-in
3c2f83a
Source0:        %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
3c2f83a
3c2f83a
# https://github.com/MrSenko/sphinx-removed-in/pull/6
3c2f83a
Patch1:         %{pypi_name}-sphinx2.patch
3c2f83a
3c2f83a
BuildArch:      noarch
3c2f83a
3c2f83a
BuildRequires:  python3-devel
3c2f83a
BuildRequires:  python3-setuptools
3c2f83a
BuildRequires:  python3-sphinx
3c2f83a
BuildRequires:  python3-sphinx-testing
3c2f83a
3c2f83a
%description
3c2f83a
This is a Sphinx extension which recognizes the versionremoved and removed-in
3c2f83a
directives.
3c2f83a
3c2f83a
%package -n     python3-%{pypi_name}
3c2f83a
Summary:        %{summary}
3c2f83a
%{?python_provide:%python_provide python3-%{pypi_name}}
3c2f83a
3c2f83a
%description -n python3-%{pypi_name}
3c2f83a
This is a Sphinx extension which recognizes the versionremoved and removed-in
3c2f83a
directives.
3c2f83a
3c2f83a
%prep
3c2f83a
%autosetup -p1 -n %{pypi_name}-%{version}
3c2f83a
3c2f83a
%build
3c2f83a
%py3_build
3c2f83a
3c2f83a
%install
3c2f83a
%py3_install
3c2f83a
rm -rf %{buildroot}%{python3_sitelib}/tests
3c2f83a
3c2f83a
%check
3c2f83a
%{__python3} setup.py test
3c2f83a
3c2f83a
%files -n python3-%{pypi_name}
3c2f83a
%doc README.rst
3c2f83a
%license LICENSE
3c2f83a
%{python3_sitelib}/sphinx_removed_in/
3c2f83a
%{python3_sitelib}/sphinx_removed_in-%{version}-py%{python3_version}.egg-info/
3c2f83a
3c2f83a
%changelog
5e0c189
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.3-2
5e0c189
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
5e0c189
3c2f83a
* Tue Mar 12 2019 Miro HronĨok <mhroncok@redhat.com> - 0.1.3-1
3c2f83a
- Initial package