add: yamale (#6851)

Signed-off-by: Owen-sz <owen@fyralabs.com>
(cherry picked from commit 121598d3ef)
This commit is contained in:
Owen Zimmerman
2025-10-23 22:43:21 -07:00
committed by raboneko
parent c5a1497558
commit afc41ba5cd
3 changed files with 58 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
project pkg {
arches = ["x86_64"]
rpm {
spec = "yamale.spec"
}
}
+1
View File
@@ -0,0 +1 @@
rpm.version(pypi("yamale"));
+51
View File
@@ -0,0 +1,51 @@
%global pypi_name yamale
%global _desc A schema and validator for YAML.
Name: python-%{pypi_name}
Version: 6.0.0
Release: 1%?dist
Summary: A schema and validator for YAML
License: MIT
URL: https://github.com/23andMe/Yamale
Source0: %{pypi_source}
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-wheel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
Packager: Owen Zimmerman <owen@fyralabs.com>
%description
%_desc
%package -n python3-%{pypi_name}
Summary: %{summary}
Provides: yamale
%{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name}
%_desc
%prep
%autosetup -n yamale-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files yamale
%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README.md SECURITY.md
%license LICENSE
%{_bindir}/yamale
%ghost %python3_sitelib/__pycache__/*.cpython-*.pyc
%ghost %python3_sitelib/%{name}/subcommands/__pycache__/*.cpython-*.pyc
%python3_sitelib/yamale-%version.dist-info/*
%changelog
* Fri Oct 24 2025 Owen Zimmerman <owen@fyralabs.com>
- Initial commit