2021-07-07 10:35:52 +08:00
|
|
|
%global pypi_name sphinx-notfound-page
|
|
|
|
|
%global srcname sphinx_notfound_page
|
|
|
|
|
%global importname notfound
|
|
|
|
|
%global project_owner readthedocs
|
|
|
|
|
%global github_name sphinx-notfound-page
|
|
|
|
|
%global desc Create a custom 404 page with absolute URLs hardcoded
|
|
|
|
|
|
|
|
|
|
Name: python-%{pypi_name}
|
2022-06-28 02:14:10 +00:00
|
|
|
Version: 0.8.3
|
2023-07-29 11:57:17 +08:00
|
|
|
Release: 3
|
2021-07-07 10:35:52 +08:00
|
|
|
Summary: Create a custom 404 page with absolute URLs hardcoded
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://pypi.python.org/pypi/%{pypi_name}
|
|
|
|
|
Source0: https://github.com/%{project_owner}/%{github_name}/archive/%{version}.tar.gz
|
|
|
|
|
|
2023-07-29 11:57:17 +08:00
|
|
|
Patch0: Fix-testcase-rel-content-mismatch-error.patch
|
|
|
|
|
Patch1: Dont-test-for-jquery.js-presence-with-Sphinx-6.patch
|
|
|
|
|
|
2021-07-07 10:35:52 +08:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
%desc
|
|
|
|
|
|
|
|
|
|
%package -n python%{python3_pkgversion}-%{pypi_name}
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-sphinx
|
2023-04-26 17:20:08 +08:00
|
|
|
BuildRequires: python3-pytest python3-pip python3-flit-core
|
2021-07-07 10:35:52 +08:00
|
|
|
Requires(post): %{_sbindir}/update-alternatives
|
|
|
|
|
Requires(postun): %{_sbindir}/update-alternatives
|
|
|
|
|
Requires: python%{python3_pkgversion}-setuptools
|
|
|
|
|
Requires: python%{python3_pkgversion}-sphinx
|
|
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
|
|
|
|
|
|
|
|
|
|
%description -n python%{python3_pkgversion}-%{pypi_name}
|
|
|
|
|
%desc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{pypi_name}-%{version} -p1
|
|
|
|
|
|
|
|
|
|
%build
|
2023-04-26 17:20:08 +08:00
|
|
|
%pyproject_build
|
2021-07-07 10:35:52 +08:00
|
|
|
|
|
|
|
|
%install
|
2023-04-26 17:20:08 +08:00
|
|
|
%pyproject_install sphinx-notfound-page==%{version}
|
2021-07-07 10:35:52 +08:00
|
|
|
|
|
|
|
|
%check
|
2022-01-10 20:07:41 +08:00
|
|
|
PYTHONPATH=$PWD py.test-%{python3_version} -v .
|
2021-07-07 10:35:52 +08:00
|
|
|
|
|
|
|
|
%files -n python%{python3_pkgversion}-%{pypi_name}
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.rst CHANGELOG.rst docs
|
2023-04-26 17:20:08 +08:00
|
|
|
%{python3_sitelib}/%{srcname}-%{version}.dist-info
|
2021-07-07 10:35:52 +08:00
|
|
|
%{python3_sitelib}/%{importname}/
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-07-29 11:57:17 +08:00
|
|
|
* Sat Jul 29 2023 yaoxin <yao_xin001@hoperun.com> - 0.8.3-3
|
|
|
|
|
- Fix test failure caused by python-sphinx update to 7.0.1
|
|
|
|
|
|
2023-04-26 17:20:08 +08:00
|
|
|
* Wed Apr 26 2023 liyanan <thistleslyn@163.com> - 0.8.3-2
|
|
|
|
|
- Adapting to the pyproject.toml compilation mode
|
|
|
|
|
|
2022-06-28 02:14:10 +00:00
|
|
|
* Tue Oct 25 2022 wangjunqi <wangjunqi@kylinos.cn> - 0.8.3-1
|
|
|
|
|
- Update version to 0.8.3
|
|
|
|
|
|
2022-06-27 14:46:14 +08:00
|
|
|
* Thu Jun 23 2022 SimpleUpdate Robot <tc@openeuler.org> - 0.7.1-1
|
|
|
|
|
- Upgrade to version 0.7.1
|
|
|
|
|
|
2022-06-08 06:33:35 +00:00
|
|
|
* Mon Jan 10 2022 Ge Wang <wangge20@huawei.com> - 0.6-2
|
2022-01-10 20:07:41 +08:00
|
|
|
- Fix testcase url content mismatch error
|
|
|
|
|
|
2021-07-07 10:35:52 +08:00
|
|
|
* Wed Jul 07 2021 wangdi <wangdi@kylinos.cn> - 0.6-1
|
|
|
|
|
- Init package
|
|
|
|
|
|