From bdfe2c8e96f99800fa01303bfab4983964f4174a8b2f4903a60629a5186b3e08 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 17 Sep 2021 10:22:20 +0000 Subject: [PATCH] Accepting request 919597 from home:iDesmI:devel:languages:python Sphinx extension to generate OpenGraph metadata. This package is eventually going to be needed by Kitty, when someone manages to fix the new versions. OBS-URL: https://build.opensuse.org/request/show/919597 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinxext-opengraph?expand=0&rev=1 --- .gitattributes | 23 +++++++++ .gitignore | 1 + _multibuild | 3 ++ python-sphinxext-opengraph.changes | 4 ++ python-sphinxext-opengraph.spec | 76 ++++++++++++++++++++++++++++++ sphinxext-opengraph-0.4.2.tar.gz | 3 ++ 6 files changed, 110 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _multibuild create mode 100644 python-sphinxext-opengraph.changes create mode 100644 python-sphinxext-opengraph.spec create mode 100644 sphinxext-opengraph-0.4.2.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/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/python-sphinxext-opengraph.changes b/python-sphinxext-opengraph.changes new file mode 100644 index 0000000..b7d474c --- /dev/null +++ b/python-sphinxext-opengraph.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Sep 16 20:40:04 UTC 2021 - Enrico Belleri + +- initial package diff --git a/python-sphinxext-opengraph.spec b/python-sphinxext-opengraph.spec new file mode 100644 index 0000000..b95f694 --- /dev/null +++ b/python-sphinxext-opengraph.spec @@ -0,0 +1,76 @@ +# +# spec file for package python-sphinxext-opengraph +# +# 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/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif +%define skip_python2 1 +Name: python-sphinxext-opengraph +Version: 0.4.2 +Release: 0 +Summary: Sphinx Extension to enable OGP support +License: MIT +URL: https://github.com/wpilibsuite/sphinxext-opengraph +Source: https://github.com/wpilibsuite/sphinxext-opengraph/archive/v%{version}.tar.gz#/sphinxext-opengraph-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python3-Sphinx >= 2.0 +BuildArch: noarch +%if %{with test} +BuildRequires: %{python_module Sphinx >= 2.0} +BuildRequires: %{python_module beautifulsoup4} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module sphinxext-opengraph} +%endif +%python_subpackages + +%description +Sphinx Extension to enable OGP support + +%prep +%setup -q -n sphinxext-opengraph-%{version} + +%build +%python_build + +%install +%if !%{with test} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif + +%if %{with test} +%check +%pytest +%endif + +%if !%{with test} +%files %{python_files} +%doc README.md +%license LICENSE.md +%{python_sitelib}/* +%endif + +%changelog diff --git a/sphinxext-opengraph-0.4.2.tar.gz b/sphinxext-opengraph-0.4.2.tar.gz new file mode 100644 index 0000000..9b98912 --- /dev/null +++ b/sphinxext-opengraph-0.4.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d91d51c932d47e8c2ce657be5934a660daadb19eb9b6240172550f9810e0b404 +size 13251