7f0a949
%global pypi_name sphobjinv
7f0a949
7f0a949
Name:           python-%{pypi_name}
7f0a949
Version:        2.0.1
60568c3
Release:        6%{?dist}
7f0a949
Summary:        Sphinx objects.inv inspection/manipulation tool
7f0a949
7f0a949
License:        MIT
7f0a949
URL:            https://github.com/bskinn/sphobjinv
7f0a949
Source0:        %{pypi_source}
7f0a949
BuildArch:      noarch
7f0a949
7f0a949
%description
7f0a949
The syntax required for a functional Sphinx cross-reference is highly
7f0a949
non-obvious in many cases. Sometimes Sphinx can guess correctly what
7f0a949
you mean, but it’s pretty hit-or-miss. The best approach is to provide
7f0a949
Sphinx with a completely specified cross-reference, and that’s where
7f0a949
sphobjinv comes in.
7f0a949
7f0a949
%package -n     python3-%{pypi_name}
7f0a949
Summary:        %{summary}
7f0a949
7f0a949
BuildRequires:  python3-devel
7f0a949
BuildRequires:  python3-setuptools
7f0a949
%{?python_provide:%python_provide python3-%{pypi_name}}
7f0a949
7f0a949
%description -n python3-%{pypi_name}
7f0a949
The syntax required for a functional Sphinx cross-reference is highly
7f0a949
non-obvious in many cases. Sometimes Sphinx can guess correctly what
7f0a949
you mean, but it’s pretty hit-or-miss. The best approach is to provide
7f0a949
Sphinx with a completely specified cross-reference, and that’s where
7f0a949
sphobjinv comes in.
7f0a949
7f0a949
%prep
7f0a949
%autosetup -n %{pypi_name}-%{version}
7f0a949
rm -rf %{pypi_name}.egg-info
7f0a949
sed -i "s|\r||g" README.rst
7f0a949
7f0a949
7f0a949
%build
7f0a949
%py3_build
7f0a949
7f0a949
%install
7f0a949
%py3_install
7f0a949
7f0a949
%files -n python3-%{pypi_name}
7f0a949
%license LICENSE.txt
7f0a949
%doc README.rst
7f0a949
%{_bindir}/sphobjinv
7f0a949
%{python3_sitelib}/%{pypi_name}/
7f0a949
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info/
7f0a949
7f0a949
%changelog
60568c3
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-6
60568c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
60568c3
6ff82dc
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.0.1-5
6ff82dc
- Rebuilt for Python 3.10
6ff82dc
86aa502
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-4
86aa502
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
86aa502
9c69ca6
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-3
9c69ca6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
9c69ca6
03cc6ec
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.0.1-2
03cc6ec
- Rebuilt for Python 3.9
03cc6ec
7f0a949
* Mon Mar 02 2020 Fabian Affolter <mail@fabian-affolter.ch> - 2.0.1-1
7f0a949
- Initial package for Fedora