From f7e85cd473878b31f7eb27fa44f0543883bc3da7 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sun, 9 Nov 2025 21:56:31 -0800 Subject: [PATCH] add: screeninfo (#7256) (#7265) (cherry picked from commit d4b90705881006bc9cb854aba864a3c124ba3990) Signed-off-by: Owen-sz Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --- anda/langs/python/screeninfo/anda.hcl | 6 +++ anda/langs/python/screeninfo/screeninfo.spec | 49 ++++++++++++++++++++ anda/langs/python/screeninfo/update.rhai | 1 + 3 files changed, 56 insertions(+) create mode 100644 anda/langs/python/screeninfo/anda.hcl create mode 100644 anda/langs/python/screeninfo/screeninfo.spec create mode 100644 anda/langs/python/screeninfo/update.rhai diff --git a/anda/langs/python/screeninfo/anda.hcl b/anda/langs/python/screeninfo/anda.hcl new file mode 100644 index 0000000000..97cef03905 --- /dev/null +++ b/anda/langs/python/screeninfo/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "screeninfo.spec" + } +} diff --git a/anda/langs/python/screeninfo/screeninfo.spec b/anda/langs/python/screeninfo/screeninfo.spec new file mode 100644 index 0000000000..4bc95b2bc9 --- /dev/null +++ b/anda/langs/python/screeninfo/screeninfo.spec @@ -0,0 +1,49 @@ +%global pypi_name screeninfo +%global _desc Fetch location and size of physical screens. + +Name: python-%{pypi_name} +Version: 0.8.1 +Release: 1%?dist +Summary: Fetch location and size of physical screens +License: MIT +URL: https://github.com/rr-/screeninfo +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-wheel +BuildRequires: python3-setuptools +BuildRequires: python3-setuptools_scm +BuildRequires: python3-pip +BuildRequires: python3-poetry-core + +Packager: Owen Zimmerman + +%description +%_desc + +%package -n python3-%{pypi_name} +Summary: %{summary} +Provides: screeninfo +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +%_desc + +%prep +%autosetup -n screeninfo-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files screeninfo + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc README.md +%license LICENSE.md + +%changelog +* Sun Nov 09 2025 Owen Zimmerman +- Initial commit diff --git a/anda/langs/python/screeninfo/update.rhai b/anda/langs/python/screeninfo/update.rhai new file mode 100644 index 0000000000..430f0e1346 --- /dev/null +++ b/anda/langs/python/screeninfo/update.rhai @@ -0,0 +1 @@ +rpm.version(pypi("screeninfo"));