From 90b7b2db9122952664f8310cb0faa4c376365dd552d988e0d6574b287733aa45 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 30 Mar 2025 08:10:59 +0000 Subject: [PATCH] - update to 1.1.0: * Use the path from the READTHEDOCS_CANONICAL_URL environment variable as default for notfound_urls_prefix. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-notfound-page?expand=0&rev=8 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + python-sphinx-notfound-page.changes | 16 ++++++++ python-sphinx-notfound-page.spec | 57 +++++++++++++++++++++++++++++ sphinx_notfound_page-1.0.4.tar.gz | 3 ++ sphinx_notfound_page-1.1.0.tar.gz | 3 ++ 6 files changed, 103 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-sphinx-notfound-page.changes create mode 100644 python-sphinx-notfound-page.spec create mode 100644 sphinx_notfound_page-1.0.4.tar.gz create mode 100644 sphinx_notfound_page-1.1.0.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-sphinx-notfound-page.changes b/python-sphinx-notfound-page.changes new file mode 100644 index 0000000..9c1d113 --- /dev/null +++ b/python-sphinx-notfound-page.changes @@ -0,0 +1,16 @@ +------------------------------------------------------------------- +Sun Mar 30 08:10:04 UTC 2025 - Dirk Müller + +- update to 1.1.0: + * Use the path from the READTHEDOCS_CANONICAL_URL environment + variable as default for notfound_urls_prefix. + +------------------------------------------------------------------- +Sun Nov 3 14:52:36 UTC 2024 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Tue Oct 22 13:10:50 UTC 2024 - Dirk Müller + +- Initial package (1.0.4) diff --git a/python-sphinx-notfound-page.spec b/python-sphinx-notfound-page.spec new file mode 100644 index 0000000..d2d3c67 --- /dev/null +++ b/python-sphinx-notfound-page.spec @@ -0,0 +1,57 @@ +# +# spec file for package python-sphinx-notfound-page +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-sphinx-notfound-page +Version: 1.1.0 +Release: 0 +Summary: Sphinx extension to build a 404 page with absolute URLs +License: MIT +URL: None +Source: https://files.pythonhosted.org/packages/source/s/sphinx-notfound-page/sphinx_notfound_page-%{version}.tar.gz +BuildRequires: %{python_module flit-core >= 3.2} +BuildRequires: %{python_module pip} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-Sphinx >= 5 +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module Sphinx >= 5} +# /SECTION +%python_subpackages + +%description +Create a custom 404 page with absolute URLs hardcoded. + +Check out the full documentation at https://sphinx-notfound-page.readthedocs.io/ + +%prep +%autosetup -p1 -n sphinx_notfound_page-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%{python_sitelib}/notfound +%{python_sitelib}/sphinx_notfound_page-%{version}.dist-info + +%changelog diff --git a/sphinx_notfound_page-1.0.4.tar.gz b/sphinx_notfound_page-1.0.4.tar.gz new file mode 100644 index 0000000..c294876 --- /dev/null +++ b/sphinx_notfound_page-1.0.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2a52f49cd367b5c4e64072de1591cc367714098500abf4ecb9a3ecb4fec25aae +size 519228 diff --git a/sphinx_notfound_page-1.1.0.tar.gz b/sphinx_notfound_page-1.1.0.tar.gz new file mode 100644 index 0000000..5dfe801 --- /dev/null +++ b/sphinx_notfound_page-1.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:913e1754370bb3db201d9300d458a8b8b5fb22e9246a816643a819a9ea2b8067 +size 7392