summaryrefslogtreecommitdiff
path: root/python-xingque.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-18 16:04:01 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-18 16:04:01 +0000
commitfd47ae53bd14a8859a1696a1977e934e303b8986 (patch)
tree83c1a3e2df269583cbae5ee08299ed881c977005 /python-xingque.spec
parent1f14cc43e788955e78ee02263025f9b7f8f6c54b (diff)
automatic import of python-xingque
Diffstat (limited to 'python-xingque.spec')
-rw-r--r--python-xingque.spec59
1 files changed, 59 insertions, 0 deletions
diff --git a/python-xingque.spec b/python-xingque.spec
new file mode 100644
index 0000000..3f4b954
--- /dev/null
+++ b/python-xingque.spec
@@ -0,0 +1,59 @@
+%global _empty_manifest_terminate_build 0
+%global _name xingque
+
+Name: python-%{_name}
+Version: 0.2.0
+Release: 1
+Summary: Yet another Python binding to starlark-rust, exposing the Starlark language to your Python projects.
+
+License: Apache-2.0
+URL: https://github.com/xen0n/xingque
+Source0: %{url}/archive/%{version}/%{_name}-%{version}.tar.gz
+Source1: cargo-vendor.tar.gz
+
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-setuptools-rust
+BuildRequires: python3-pip
+BuildRequires: python3-wheel
+BuildRequires: python3-hatchling
+BuildRequires: rust-packaging
+
+%description
+Yet another Python binding to starlark-rust, exposing the Starlark language to your Python projects.
+
+%package -n python3-%{_name}
+Summary: %{summary}
+
+%description -n python3-%{_name}
+Yet another Python binding to starlark-rust, exposing the Starlark language to your Python projects.
+
+%prep
+%autosetup -p1 -n %{_name}-%{version}
+tar xzvf %{SOURCE1} -C .
+mkdir .cargo
+cat >> .cargo/config.toml << EOF
+[source.crates-io]
+replace-with = "vendored-sources"
+
+[source.vendored-sources]
+directory = "vendor"
+EOF
+
+
+%build
+%pyproject_build
+
+%install
+%pyproject_install
+
+%files -n python3-%{_name}
+%doc README.md CHANGELOG.md
+%license LICENSE.txt
+%{_bindir}/${_name}
+%{python3_sitearch}/%{_name}
+%{python3_sitearch}/%{_name}*.dist-info/
+
+%changelog
+* Sun Aug 18 2024 weilinfox <caiweilin@iscas.ac.cn> - 0.2.0-1
+- Initial package