diff --git a/anda/langs/python/jxlpy/anda.hcl b/anda/langs/python/jxlpy/anda.hcl new file mode 100644 index 0000000000..413874b469 --- /dev/null +++ b/anda/langs/python/jxlpy/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "jxlpy.spec" + } +} diff --git a/anda/langs/python/jxlpy/jxlpy.spec b/anda/langs/python/jxlpy/jxlpy.spec new file mode 100644 index 0000000000..2b6ba77903 --- /dev/null +++ b/anda/langs/python/jxlpy/jxlpy.spec @@ -0,0 +1,49 @@ +%global pypi_name jxlpy +%global _desc Cython bindings and Pillow plugin for JPEG XL. + +Name: python-%{pypi_name} +Version: 0.9.5 +Release: 1%?dist +Summary: Cython bindings and Pillow plugin for JPEG XL +License: MIT +URL: https://github.com/olokelo/jxlpy +Source0: %{pypi_source} + +BuildRequires: python3-devel +BuildRequires: python3-wheel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-cython +BuildRequires: libjxl-devel +BuildRequires: gcc-c++ + +Packager: Owen Zimmerman + +%description +%_desc + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +%_desc + +%prep +%autosetup -n %{pypi_name}-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files %{pypi_name} + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc README.md +%license LICENSE +%{python3_sitearch}/_jxlpy.cpython-314-%{_arch}-linux-gnu.so + +%changelog +* Sat Mar 28 2026 Owen Zimmerman +- Initial commit diff --git a/anda/langs/python/jxlpy/update.rhai b/anda/langs/python/jxlpy/update.rhai new file mode 100644 index 0000000000..8306a8af42 --- /dev/null +++ b/anda/langs/python/jxlpy/update.rhai @@ -0,0 +1 @@ +rpm.version(pypi("jxlpy"));