From 125146fad504186b143b54f8381a7532b060ddf0c880d150de0554affd02460c Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 10 Mar 2023 09:13:18 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-theme-builder?expand=0&rev=1 --- .gitattributes | 23 ++++++ .gitignore | 1 + python-sphinx-theme-builder-0.2.0b1.tar.gz | 3 + python-sphinx-theme-builder.changes | 4 + python-sphinx-theme-builder.spec | 89 ++++++++++++++++++++++ 5 files changed, 120 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-sphinx-theme-builder-0.2.0b1.tar.gz create mode 100644 python-sphinx-theme-builder.changes create mode 100644 python-sphinx-theme-builder.spec 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-theme-builder-0.2.0b1.tar.gz b/python-sphinx-theme-builder-0.2.0b1.tar.gz new file mode 100644 index 0000000..df324c3 --- /dev/null +++ b/python-sphinx-theme-builder-0.2.0b1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b009bfe4883c4bbcc333eb6471a732bbf90292f6dec24096fd931691095c5885 +size 40614 diff --git a/python-sphinx-theme-builder.changes b/python-sphinx-theme-builder.changes new file mode 100644 index 0000000..f948dd6 --- /dev/null +++ b/python-sphinx-theme-builder.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Mon Mar 6 12:49:12 UTC 2023 - Daniel Garcia + +- Initial package (0.2.0b1) diff --git a/python-sphinx-theme-builder.spec b/python-sphinx-theme-builder.spec new file mode 100644 index 0000000..a24caee --- /dev/null +++ b/python-sphinx-theme-builder.spec @@ -0,0 +1,89 @@ +# +# spec file for package specRPM_CREATION_NAME +# +# Copyright (c) specCURRENT_YEAR SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ +# + + +Name: python-sphinx-theme-builder +Version: 0.2.0b1 +Release: 0 +Summary: A tool for authoring Sphinx themes with a simple (opinionated) workflow +License: MIT +Group: Development/Languages/Python +Url: https://github.com/pradyunsg/sphinx-theme-builder +Source: https://github.com/pradyunsg/sphinx-theme-builder/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: %{python_module flit-core} +BuildRequires: %{python_module wheel} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module click} +BuildRequires: %{python_module rich} +BuildRequires: %{python_module pyproject-metadata} +BuildRequires: %{python_module packaging} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module sphinx-autobuild} +BuildRequires: %{python_module tomli >= 1.0.0 if %python-base < 3.11} +Requires: (python-tomli if python-base < 3.11) +Requires: python-rich +Requires: python-click +Requires: python-pyproject-metadata +Requires: python-packaging +Requires: python-setuptools +Requires: python-nodeenv +Requires(post): update-alternatives +Requires(postun):update-alternatives +BuildArch: noarch + +%python_subpackages + +%description +Streamline the Sphinx theme development workflow, by building upon +existing standardised tools. + + * simplified packaging experience + * simplified JavaScript tooling setup + * development server, with rebuild-on-save and automagical browser reloading + * consistent repository structure across themes + +%prep +%autosetup -p1 -n sphinx-theme-builder-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/stb +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%post +%python_install_alternative stb + +%postun +%python_uninstall_alternative stb + +%files %{python_files} +%license LICENSE +%doc README.md +%python_alternative %{_bindir}/stb +%{python_sitelib}/sphinx_theme_builder +%{python_sitelib}/sphinx_theme_builder-%{version}*-info + +%changelog