diff --git a/anda/langs/python/types-colorama/anda.hcl b/anda/langs/python/types-colorama/anda.hcl new file mode 100644 index 0000000000..7244011b67 --- /dev/null +++ b/anda/langs/python/types-colorama/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "types-colorama.spec" + } +} diff --git a/anda/langs/python/types-colorama/types-colorama.spec b/anda/langs/python/types-colorama/types-colorama.spec new file mode 100644 index 0000000000..7d7f324bf9 --- /dev/null +++ b/anda/langs/python/types-colorama/types-colorama.spec @@ -0,0 +1,50 @@ +%global commit 91055c730ffcda6311654cf32d663858ece69bad +%global commit_date 20250930 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +%global pypi_name types-colorama +%global _desc Typing stubs for colorama. + +Name: python-%{pypi_name} +Version: 0~%{commit_date}git.%shortcommit +Release: 1%?dist +Summary: Typing stubs for colorama +License: Apache-2.0 +URL: https://github.com/python/typeshed +Source0: %url/archive/%commit/typeshed-%commit.tar.gz +BuildArch: noarch +BuildRequires: python3-devel +Requires: python3-colorama +Packager: Owen Zimmerman + +%description +%_desc + +%package -n python3-%{pypi_name} +Summary: %{summary} +Provides: types-colorama +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +%_desc + +%prep +%autosetup -n typeshed-%{commit} + +%build +# Not needed for stub file package + +%install +mkdir -p %{buildroot}%{python3_sitelib}/colorama-stubs +install -Dm755 stubs/colorama/colorama/*.pyi %{buildroot}%{python3_sitelib}/colorama-stubs/ +install -Dm755 stubs/colorama/METADATA.toml %{buildroot}%{python3_sitelib}/colorama-stubs/METADATA.toml + +%files -n python3-%{pypi_name} +%doc README.md MAINTAINERS.md CONTRIBUTING.md +%license LICENSE +%python3_sitelib/colorama-stubs/METADATA.toml +%{python3_sitelib}/colorama-stubs/*.pyi + +%changelog +* Tue Sep 30 2025 Owen Zimmerman +- Initial commit diff --git a/anda/langs/python/types-colorama/update.rhai b/anda/langs/python/types-colorama/update.rhai new file mode 100644 index 0000000000..8f3b59cbfc --- /dev/null +++ b/anda/langs/python/types-colorama/update.rhai @@ -0,0 +1,5 @@ +rpm.global("commit", gh_commit("python/typeshed")); +if rpm.changed() { + rpm.release(); + rpm.global("commit_date", date()); +}