Blame SPECS/python-rst-linker.spec

178a62
# Created by pyp2rpm-3.2.2
178a62
%global pypi_name rst.linker
178a62
%global pkg_name rst-linker
178a62
# This package is interdependant on jaraco-packaging to build docs
178a62
# will build both with out docs and add docs in later
178a62
%bcond_with docs
178a62
178a62
Name:           python-%{pkg_name}
178a62
Version:        2.2.0
178a62
Release:        4%{?dist}
178a62
Summary:        Can add links and perform other custom replacements to rst
178a62
178a62
License:        MIT
178a62
URL:            https://github.com/jaraco/rst.linker
178a62
Source0:        https://files.pythonhosted.org/packages/source/r/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
178a62
BuildArch:      noarch
178a62
 
178a62
%description
178a62
 rst.linker provides a routine for adding links and performing other custom
178a62
replacements to restructured text files as a Sphinx extension.License License
178a62
is indicated in the project metadata (typically one or more of the Trove
178a62
classifiers). For more details, see this explanation < In your sphinx
178a62
configuration file, include rst.linker as an extension and then add a
178a62
link_files configuration section...
178a62
178a62
%package -n python3-%{pkg_name}
178a62
Summary:        %{summary}
178a62
Requires:       python3dist(six)
178a62
Requires:       python3-dateutil
178a62
178a62
BuildRequires:  python3-devel
178a62
BuildRequires:  python3dist(pathspec)
178a62
BuildRequires:  python3-setuptools_scm >= 1.15.0
178a62
BuildRequires:  python3dist(setuptools)
178a62
BuildRequires:  python3dist(toml)
178a62
%{?python_provide:%python_provide python3-%{pkg_name}}
178a62
178a62
%description -n python3-%{pkg_name}
178a62
%{description}
178a62
178a62
%if %{with docs}
178a62
%package -n python-%{pkg_name}-doc
178a62
Summary:        rst.linker documentation
178a62
BuildRequires:  python3dist(sphinx)
178a62
BuildRequires:  python3-jaraco-packaging
178a62
178a62
%description -n python-%{pkg_name}-doc
178a62
Documentation for rst.linker
178a62
%endif
178a62
178a62
%prep
178a62
%autosetup -n %{pypi_name}-%{version}
178a62
# Remove bundled egg-info
178a62
rm -rf %{pypi_name}.egg-info
178a62
178a62
%build
178a62
%py3_build
178a62
%if %{with docs}
178a62
# generate html docs 
178a62
# this package requires itself to build docs :/
178a62
PYTHONPATH=./ sphinx-build docs html
178a62
# remove the sphinx-build leftovers
178a62
rm -rf html/.{doctrees,buildinfo}
178a62
%endif
178a62
178a62
%install
178a62
# Must do the subpackages' install first because the scripts in /usr/bin are
178a62
# overwritten with every setup.py install.
178a62
%py3_install
178a62
178a62
%check
178a62
# BuildRequires:  python(2/3)-path does not meet the test-requirement for path.py
178a62
#%%{__python3} setup.py test
178a62
178a62
%files -n python3-%{pkg_name}
178a62
%license LICENSE
178a62
%doc README.rst
178a62
%{python3_sitelib}/rst
178a62
%{python3_sitelib}/rst.linker-%{version}-py%{python3_version}.egg-info
178a62
178a62
%if %{with docs}
178a62
%files -n python-%{pkg_name}-doc
178a62
%license LICENSE
178a62
%doc html 
178a62
%endif
178a62
178a62
%changelog
178a62
* Mon Oct 25 2021 Kaleb S. KEITHLEY <kkeithle [at] redhat.com> - 2.2.0-4
178a62
- Rebuild from lookaside
178a62
178a62
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-3
178a62
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
178a62
178a62
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.2.0-2
178a62
- Rebuilt for Python 3.10
178a62
178a62
* Fri Apr 30 2021 Dan Radez <dradez@redhat.com> - 2.2.0-1
178a62
- Update to 2.2.0
178a62
178a62
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-2
178a62
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
178a62
178a62
* Wed Dec 09 2020 Dan Radez <dradez@redhat.com> - 2.1.1-1
178a62
- Update to 2.1.1
178a62
178a62
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-3
178a62
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
178a62
178a62
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.0.0-2
178a62
- Rebuilt for Python 3.9
178a62
178a62
* Wed Feb 12 2020 Dan Radez <dradez@redhat.com> - 2.0.0-1
178a62
- Update to 2.0
178a62
178a62
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-5
178a62
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
178a62
178a62
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.11-4
178a62
- Rebuilt for Python 3.8.0rc1 (#1748018)
178a62
178a62
* Tue Aug 20 2019 Dan Radez <dradez@redhat.com> - 1.11-2
178a62
- removing the sed . to _ it's confusing and not needed
178a62
178a62
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.11-2
178a62
- Rebuilt for Python 3.8
178a62
178a62
* Fri Aug 16 2019 Dan Radez <dradez@redhat.com> - 1.11-1
178a62
- updating to 1.11
178a62
178a62
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.10-5
178a62
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
178a62
178a62
* Mon Apr 08 2019 Dan Radez <dradez@redhat.com> - 1.10-4
178a62
- fixing egg info
178a62
178a62
* Mon Apr 08 2019 Dan Radez <dradez@redhat.com> - 1.10-3
178a62
- fixing dep to prep for enabling docs build
178a62
178a62
* Fri Apr 05 2019 Dan Radez <dradez@redhat.com> - 1.10-2
178a62
- adding py3 subpackage.
178a62
178a62
* Wed May 02 2018 Dan Radez <dradez@redhat.com> - 1.10-1
178a62
- Initial package.