summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-05-16 09:09:34 +0000
committerCoprDistGit <infra@openeuler.org>2025-05-16 09:09:34 +0000
commitef5bdd3fc2da19fdce137cec3c857f05af5f2fc7 (patch)
treefd6d0186f94e4a4645e6150db18382e386220fdb
parent735fcbfcc54c414d04f0386dbf30248fec9f678a (diff)
automatic import of python-tomcli
-rw-r--r--.gitignore1
-rw-r--r--python-tomcli.spec53
-rw-r--r--sources1
3 files changed, 55 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..7069238 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/tomcli-0.9.0.tar.gz
diff --git a/python-tomcli.spec b/python-tomcli.spec
new file mode 100644
index 0000000..43f04de
--- /dev/null
+++ b/python-tomcli.spec
@@ -0,0 +1,53 @@
+%global _empty_manifest_terminate_build 0
+%global pypi_name tomcli
+
+Name: python-%{pypi_name}
+Version: 0.9.0
+Release: 1
+Summary: CLI for working with TOML files. Pronounced "tom clee."
+License: MIT
+URL: https://git.sr.ht/~gotmax23/tomcli
+Source0: %{url}/refs/download/v%{version}/tomcli-%{version}.tar.gz
+
+BuildArch: noarch
+
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+BuildRequires: python3-wheel
+BuildRequires: python3-hatchling
+
+%global _description %{expand:
+CLI for working with TOML files. Pronounced "tom clee."}
+
+%description %_description
+
+
+%package -n python3-%{pypi_name}
+Summary: %{summary}
+%{?python_provide:%python_provide python3-%{pypi_name}}
+
+%description -n python3-%{pypi_name} %_description
+
+%prep
+%autosetup -p1 -n %{pypi_name}-%{version}
+
+%build
+%pyproject_build
+
+%install
+%pyproject_install
+
+%files -n python3-%{pypi_name}
+%license LICENSE
+%doc README.md
+%{_bindir}/tomcli
+%{_bindir}/tomcli-formatters
+%{_bindir}/tomcli-get
+%{_bindir}/tomcli-set
+%{python3_sitelib}/tomcli
+%{python3_sitelib}/tomcli-*.dist-info/
+
+%changelog
+* Fri May 16 2025 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 0.9.0-1
+- Init package
diff --git a/sources b/sources
new file mode 100644
index 0000000..afdea58
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+d0d38d1ea0e8d18aae362803e2baf76d tomcli-0.9.0.tar.gz