From 72d32c06fde5dc7dd7329dab4074f45e912ce76a455a393cb6f889fc0dbc946f Mon Sep 17 00:00:00 2001
From: Dirk Mueller <dmueller@suse.com>
Date: Mon, 22 Jan 2024 06:29:18 +0000
Subject: [PATCH] Accepting request 1140193 from home:rrahl0

I want to maintain python-poetry-dynamic-versioning for Factory in devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1140193
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-poetry-dynamic-versioning?expand=0&rev=1
---
 .gitattributes                           | 23 ++++++++
 .gitignore                               |  1 +
 poetry_dynamic_versioning-1.2.0.tar.gz   |  3 +
 python-poetry-dynamic-versioning.changes |  4 ++
 python-poetry-dynamic-versioning.spec    | 72 ++++++++++++++++++++++++
 5 files changed, 103 insertions(+)
 create mode 100644 .gitattributes
 create mode 100644 .gitignore
 create mode 100644 poetry_dynamic_versioning-1.2.0.tar.gz
 create mode 100644 python-poetry-dynamic-versioning.changes
 create mode 100644 python-poetry-dynamic-versioning.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/poetry_dynamic_versioning-1.2.0.tar.gz b/poetry_dynamic_versioning-1.2.0.tar.gz
new file mode 100644
index 0000000..857fd0d
--- /dev/null
+++ b/poetry_dynamic_versioning-1.2.0.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1a7bbdba2530499e73dfc6ac0af19de29020ab4aaa3e507573877114e6b71ed6
+size 30332
diff --git a/python-poetry-dynamic-versioning.changes b/python-poetry-dynamic-versioning.changes
new file mode 100644
index 0000000..f772e7e
--- /dev/null
+++ b/python-poetry-dynamic-versioning.changes
@@ -0,0 +1,4 @@
+-------------------------------------------------------------------
+Wed Dec 13 03:26:54 UTC 2023 - Richard Rahl <rrahl0@proton.me>
+
+- initial packaging
diff --git a/python-poetry-dynamic-versioning.spec b/python-poetry-dynamic-versioning.spec
new file mode 100644
index 0000000..6563c21
--- /dev/null
+++ b/python-poetry-dynamic-versioning.spec
@@ -0,0 +1,72 @@
+#
+# spec file for package python-poetry-dynamic-versioning
+#
+# Copyright (c) 2023 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-poetry-dynamic-versioning
+Version:          1.2.0
+Release:          0
+Summary:          Plugin for Poetry to enable dynamic versioning based on VCS tags
+License:          MIT
+Group:            Development/Libraries/Python
+URL:              https://github.com/mtkennerly/poetry-dynamic-versioning
+Source:           https://files.pythonhosted.org/packages/source/p/poetry-dynamic-versioning/poetry_dynamic_versioning-%{version}.tar.gz
+BuildRequires:    python-rpm-macros
+BuildRequires:    %{python_module devel}
+BuildRequires:    %{python_module pip}
+BuildRequires:    %{python_module poetry-core >= 1.2.0}
+BuildRequires:    fdupes
+Requires:         python3-dunamai
+Requires:         python3-Jinja2
+Requires:         python3-tomlkit
+Requires(post):   update-alternatives
+Requires(postun): update-alternatives
+BuildArch:        noarch
+
+%python_subpackages
+
+%description
+%{summary}.
+
+%prep
+%autosetup -p1 -n poetry_dynamic_versioning-%{version}
+
+%build
+%pyproject_wheel
+
+%install
+%pyproject_install
+%python_clone -a %{buildroot}%{_bindir}/poetry-dynamic-versioning
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%prepare_alternative poetry-dynamic-versioning
+
+%{python_compileall}
+
+%post
+%python_install_alternative poetry-dynamic-versioning
+
+%postun
+%python_uninstall_alternative poetry-dynamic-versioning
+
+%check
+#every test reaches out to the internet
+
+%files %{python_files}
+%python_alternative %{_bindir}/poetry-dynamic-versioning
+%{python_sitelib}/poetry_dynamic_versioning
+%{python_sitelib}/poetry_dynamic_versioning-%{version}.dist-info
+
+%changelog