diff --git a/anda/langs/python/pywebview/anda.hcl b/anda/langs/python/pywebview/anda.hcl new file mode 100644 index 0000000000..5782960bdd --- /dev/null +++ b/anda/langs/python/pywebview/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "pywebview.spec" + } +} diff --git a/anda/langs/python/pywebview/pywebview.spec b/anda/langs/python/pywebview/pywebview.spec new file mode 100644 index 0000000000..4f3b8e3321 --- /dev/null +++ b/anda/langs/python/pywebview/pywebview.spec @@ -0,0 +1,48 @@ +%global pypi_name pywebview +%global _desc Build GUI for your Python program with JavaScript, HTML, and CSS. + +Name: python-%{pypi_name} +Version: 6.1 +Release: 1%?dist +Summary: Build GUI for your Python program with JavaScript, HTML, and CSS +License: BSD-3-Clause +URL: https://github.com/r0x0r/pywebview +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-wheel +BuildRequires: python3-setuptools +BuildRequires: python3-setuptools_scm +BuildRequires: python3-pip + +Packager: Owen Zimmerman + +%description +%_desc + +%package -n python3-%{pypi_name} +Summary: %{summary} +Provides: pywebview +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +%_desc + +%prep +%autosetup -n pywebview-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files webview + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc README.md +%license LICENSE SECURITY.md + +%changelog +* Tue Nov 04 2025 Owen Zimmerman +- Initial commit diff --git a/anda/langs/python/pywebview/update.rhai b/anda/langs/python/pywebview/update.rhai new file mode 100644 index 0000000000..b69e27b96f --- /dev/null +++ b/anda/langs/python/pywebview/update.rhai @@ -0,0 +1 @@ +rpm.version(pypi("pywebview"));