Compare commits

..

9 Commits

Author SHA1 Message Date
Karolina Surma 49a95bf859 Define the whoosh extra for the package 2024-02-06 12:43:13 +01:00
Karolina Surma e3633f761d Change the URL to point to the code repository 2024-02-06 12:43:13 +01:00
Karolina Surma 19f5b182e6 Don't enumerate the Source anymore 2024-02-06 12:43:13 +01:00
Karolina Surma 4fc8732741 Remove the obsolete %{python_provide} macro 2024-02-06 12:43:13 +01:00
Karolina Surma 3ff1704c0f Declare the license as an SPDX expression
In the unpacked sources:
$ askalono crawl .
./LICENSE
License: BSD-2-Clause (original text)
Score: 0.947
2024-02-06 12:42:08 +01:00
Karolina Surma 4c850b292c Expand the %pypi_name macro
The package name doesn't change so it makes little sense to macronize it
2024-01-30 16:55:31 +01:00
Karolina Surma b21c7f28f1 Update to 1.2.7
- Don't list BuildRequires manually, they can be generated automatically
- Run tests with %tox, which is what upstream does
2024-01-30 16:55:06 +01:00
Fedora Release Engineering 42686f583f Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-26 11:06:28 +00:00
Fedora Release Engineering 361c00b155 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-22 07:36:41 +00:00
3 changed files with 31 additions and 40 deletions
+1
View File
@@ -7,3 +7,4 @@
/sphinxcontrib-websupport-1.1.2.tar.gz
/sphinxcontrib-websupport-1.2.1.tar.gz
/sphinxcontrib-websupport-1.2.4.tar.gz
/sphinxcontrib_websupport-1.2.7.tar.gz
+29 -39
View File
@@ -1,74 +1,64 @@
%bcond_without optional_tests
%global pypi_name sphinxcontrib-websupport
Name: python-%{pypi_name}
Version: 1.2.4
Release: 14%{?dist}
Name: python-sphinxcontrib-websupport
Version: 1.2.7
Release: 1%{?dist}
Summary: Sphinx API for Web Apps
License: BSD
URL: http://sphinx-doc.org/
Source0: %{pypi_source}
License: BSD-2-Clause
URL: https://github.com/sphinx-doc/sphinxcontrib-websupport
Source: %{pypi_source sphinxcontrib_websupport}
BuildArch: noarch
%description
sphinxcontrib-websupport provides a Python API to easily integrate Sphinx
documentation into your Web application.
%package -n python3-%{pypi_name}
%package -n python3-sphinxcontrib-websupport
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-jinja2
BuildRequires: python3-pytest
BuildRequires: python3-six
BuildRequires: python3-sphinx
BuildRequires: python3-sphinxcontrib-serializinghtml >= 1.1.3
%if %{with optional_tests}
# Optional tests deps, can be individually skipped,
# but sqlalchemy is required for both whoosh and xapian tests
BuildRequires: python3-sqlalchemy
BuildRequires: python3-whoosh
# Optional tests dep, undeclared upstream, can be skipped if needed
BuildRequires: python3-xapian
%endif
# Undeclared but used runtime dependencies
# https://github.com/sphinx-doc/sphinxcontrib-websupport/pull/46
Requires: python3-jinja2
Requires: python3-sphinx
Recommends: python3-sqlalchemy
Recommends: python3-whoosh
%description -n python3-%{pypi_name}
%description -n python3-sphinxcontrib-websupport
sphinxcontrib-websupport provides a Python API to easily integrate Sphinx
documentation into your Web application.
%pyproject_extras_subpkg -n python3-sphinxcontrib-websupport whoosh
%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
%autosetup -n sphinxcontrib_websupport-%{version}
%generate_buildrequires
%pyproject_buildrequires -t
%build
%py3_build
%pyproject_wheel
%install
%py3_install
%pyproject_install
%pyproject_save_files sphinxcontrib
%check
%pytest -v -rs
%tox
%files -n python3-%{pypi_name}
%files -n python3-sphinxcontrib-websupport -f %{pyproject_files}
%license LICENSE
%doc README.rst
%dir %{python3_sitelib}/sphinxcontrib
%{python3_sitelib}/sphinxcontrib/websupport/
%{python3_sitelib}/sphinxcontrib_websupport-*.pth
%{python3_sitelib}/sphinxcontrib_websupport-*.egg-info/
%changelog
* Tue Jan 30 2024 Karolina Surma <ksurma@redhat.com> - 1.2.7-1
- Update to 1.2.7
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
+1 -1
View File
@@ -1 +1 @@
SHA512 (sphinxcontrib-websupport-1.2.4.tar.gz) = d1ccfb6a9ecfa6adbdf2298f4ded345cacefbc5a450b8dafc6faadbcd0dd79a8dbefcab4d1cedf34c65fc271aab754392bea8ab8ae82852323784a9e1717914c
SHA512 (sphinxcontrib_websupport-1.2.7.tar.gz) = daa5ecf6fd3fb6df6a9a3b60668d42d50d93454dc3c2703a1dd43d75220b326e90c5e0ae2cca27afe62e41ae03e7144e6b4cfe70096b857af74c8981fadba9ca