Blame SPECS/python-rst-linker.spec

f7539c
# Created by pyp2rpm-3.2.2
f7539c
%global pypi_name rst.linker
f7539c
%global pkg_name rst-linker
f7539c
# This package is interdependant on jaraco-packaging to build docs
f7539c
# will build both with out docs and add docs in later
f7539c
%bcond_with docs
f7539c
f7539c
Name:           python-%{pkg_name}
f7539c
Version:        2.4.0
f7539c
Release:        9%{?dist}
f7539c
Summary:        Can add links and perform other custom replacements to rst
f7539c
f7539c
License:        MIT
f7539c
URL:            https://github.com/jaraco/rst.linker
f7539c
Source0:        https://files.pythonhosted.org/packages/source/r/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
f7539c
BuildArch:      noarch
f7539c
f7539c
%description
f7539c
 rst.linker provides a routine for adding links and performing other custom
f7539c
replacements to restructured text files as a Sphinx extension.License License
f7539c
is indicated in the project metadata (typically one or more of the Trove
f7539c
classifiers). For more details, see this explanation < In your sphinx
f7539c
configuration file, include rst.linker as an extension and then add a
f7539c
link_files configuration section...
f7539c
f7539c
%package -n python3-%{pkg_name}
f7539c
Summary:        %{summary}
f7539c
f7539c
Requires:       python3dist(six)
f7539c
f7539c
BuildRequires:  python3-devel
f7539c
BuildRequires:  python3dist(path) >= 13
f7539c
BuildRequires:  python3dist(pytest)
f7539c
f7539c
%{?python_provide:%python_provide python3-%{pkg_name}}
f7539c
f7539c
%description -n python3-%{pkg_name}
f7539c
%{description}
f7539c
f7539c
%if %{with docs}
f7539c
%package -n python-%{pkg_name}-doc
f7539c
Summary:        rst.linker documentation
f7539c
BuildRequires:  python3dist(sphinx)
f7539c
BuildRequires:  python3dist(jaraco-packaging)
f7539c
f7539c
%description -n python-%{pkg_name}-doc
f7539c
Documentation for rst.linker
f7539c
%endif
f7539c
f7539c
%prep
f7539c
%autosetup -n %{pypi_name}-%{version}
f7539c
f7539c
%generate_buildrequires
f7539c
%pyproject_buildrequires
f7539c
f7539c
%build
f7539c
%pyproject_wheel
f7539c
%if %{with docs}
f7539c
# generate html docs
f7539c
# this package requires itself to build docs :/
f7539c
PYTHONPATH=./ sphinx-build docs html
f7539c
# remove the sphinx-build leftovers
f7539c
rm -rf html/.{doctrees,buildinfo}
f7539c
%endif
f7539c
f7539c
%install
f7539c
%pyproject_install
f7539c
f7539c
%check
f7539c
%pytest
f7539c
f7539c
%files -n python3-%{pkg_name}
f7539c
%license LICENSE
f7539c
%doc README.rst
f7539c
%{python3_sitelib}/rst
f7539c
%{python3_sitelib}/rst.linker-%{version}.dist-info
f7539c
f7539c
%if %{with docs}
f7539c
%files -n python-%{pkg_name}-doc
f7539c
%license LICENSE
f7539c
%doc html
f7539c
%endif
f7539c
f7539c
%changelog
f7539c
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-9
f7539c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
f7539c
f7539c
* Sat Nov 02 2024 Miro Hron훾ok <mhroncok@redhat.com> - 2.4.0-8
f7539c
- Generate BuildRequires dynamically
f7539c
- Drop unneeded build dependency on python3dist(toml)
f7539c
- Drop duplicate runtime dependency on python3-dateutil
f7539c
f7539c
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-7
f7539c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
f7539c
f7539c
* Sat Jun 08 2024 Python Maint <python-maint@redhat.com> - 2.4.0-6
f7539c
- Rebuilt for Python 3.13
f7539c
f7539c
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-5
f7539c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
f7539c
f7539c
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-4
f7539c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
f7539c
f7539c
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-3
f7539c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
f7539c
f7539c
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 2.4.0-2
f7539c
- Rebuilt for Python 3.12
f7539c
f7539c
* Wed Feb 08 2023 Dan Radez <dradez@redhat.com> - 2.4.0-1
f7539c
- update to 2.4.0 rhbz#2165203
f7539c
f7539c
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-2
f7539c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
f7539c
f7539c
* Sun Aug 28 2022 Dan Radez <dradez@redhat.com> - 2.3.1-1
f7539c
Update to 2.3.1
f7539c
f7539c
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-3
f7539c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
f7539c
f7539c
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2.3.0-2
f7539c
- Rebuilt for Python 3.11
f7539c
f7539c
* Thu Mar 31 2022 Dan Radez <dradez@redhat.com> - 2.3.0-1
f7539c
Update to 2.3.0
f7539c
f7539c
* Tue Feb 08 2022 Dan Radez <dradez@redhat.com> - 2.2.0-6
f7539c
- Don't delete egginfo
f7539c
f7539c
* Tue Jan 25 2022 Dan Radez <dradez@redhat.com> - 2.2.0-5
f7539c
- re-enabling checks
f7539c
f7539c
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-4
f7539c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
f7539c
f7539c
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-3
f7539c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
f7539c
f7539c
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.2.0-2
f7539c
- Rebuilt for Python 3.10
f7539c
f7539c
* Fri Apr 30 2021 Dan Radez <dradez@redhat.com> - 2.2.0-1
f7539c
- Update to 2.2.0
f7539c
f7539c
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-2
f7539c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
f7539c
f7539c
* Wed Dec 09 2020 Dan Radez <dradez@redhat.com> - 2.1.1-1
f7539c
- Update to 2.1.1
f7539c
f7539c
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-3
f7539c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
f7539c
f7539c
* Tue May 26 2020 Miro Hron훾ok <mhroncok@redhat.com> - 2.0.0-2
f7539c
- Rebuilt for Python 3.9
f7539c
f7539c
* Wed Feb 12 2020 Dan Radez <dradez@redhat.com> - 2.0.0-1
f7539c
- Update to 2.0
f7539c
f7539c
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-5
f7539c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
f7539c
f7539c
* Thu Oct 03 2019 Miro Hron훾ok <mhroncok@redhat.com> - 1.11-4
f7539c
- Rebuilt for Python 3.8.0rc1 (#1748018)
f7539c
f7539c
* Tue Aug 20 2019 Dan Radez <dradez@redhat.com> - 1.11-2
f7539c
- removing the sed . to _ it's confusing and not needed
f7539c
f7539c
* Mon Aug 19 2019 Miro Hron훾ok <mhroncok@redhat.com> - 1.11-2
f7539c
- Rebuilt for Python 3.8
f7539c
f7539c
* Fri Aug 16 2019 Dan Radez <dradez@redhat.com> - 1.11-1
f7539c
- updating to 1.11
f7539c
f7539c
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.10-5
f7539c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
f7539c
f7539c
* Mon Apr 08 2019 Dan Radez <dradez@redhat.com> - 1.10-4
f7539c
- fixing egg info
f7539c
f7539c
* Mon Apr 08 2019 Dan Radez <dradez@redhat.com> - 1.10-3
f7539c
- fixing dep to prep for enabling docs build
f7539c
f7539c
* Fri Apr 05 2019 Dan Radez <dradez@redhat.com> - 1.10-2
f7539c
- adding py3 subpackage.
f7539c
f7539c
* Wed May 02 2018 Dan Radez <dradez@redhat.com> - 1.10-1
f7539c
- Initial package.