commit b91d120ed12c7eff73177e213fa3261c967e63f95b6900a50bf5be88a5603537 Author: Matej Cepl Date: Sat Nov 20 22:09:39 2021 +0000 Accepting request 932427 from home:eroca Plugin for mkdocs to create page redirects OBS-URL: https://build.opensuse.org/request/show/932427 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mkdocs-redirects?expand=0&rev=1 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/mkdocs-redirects-1.0.3.tar.gz b/mkdocs-redirects-1.0.3.tar.gz new file mode 100644 index 0000000..35d3827 --- /dev/null +++ b/mkdocs-redirects-1.0.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:db413e1d1ef5e88d8427c0a259d72ae85e74a2b51f6cd7605c2a8db358fe340f +size 5148 diff --git a/python-mkdocs-redirects.changes b/python-mkdocs-redirects.changes new file mode 100644 index 0000000..03ef4d3 --- /dev/null +++ b/python-mkdocs-redirects.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Nov 18 15:28:48 UTC 2021 - Elisei Roca + +- initial commit of mkdocs-redirects at version 1.0.3 diff --git a/python-mkdocs-redirects.spec b/python-mkdocs-redirects.spec new file mode 100644 index 0000000..95ebd83 --- /dev/null +++ b/python-mkdocs-redirects.spec @@ -0,0 +1,54 @@ +# +# spec file for package python-mkdocs-redirects +# +# Copyright (c) 2021 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/ +# + + +%define skip_python2 1 +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-mkdocs-redirects +Version: 1.0.3 +Release: 0 +Summary: Plugin for mkdocs to create page redirects +License: MIT +URL: https://github.com/datarobot/mkdocs-redirects +Source: https://files.pythonhosted.org/packages/source/m/mkdocs-redirects/mkdocs-redirects-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: %{python_module mkdocs >= 1.0.4} +Requires: python-mkdocs >= 1.0.4 +BuildArch: noarch +%python_subpackages + +%description +A MkDocs plugin for dynamic page redirects to prevent broken links +(e.g. for moved/renamed pages). + +%prep +%setup -q -n mkdocs-redirects-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%doc README.md +%{python_sitelib}/* + +%changelog