%global pypi_name python-yara
Name: %{pypi_name}
Version: 1.0.2
Release: 1
Summary: Python API for interacting with YARA
License: MIT
URL: https://github.com/silascutler/python-yara
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
BuildArch: noarch
%description
This is not the correct yara-python module. Use: https://pypi.org/project/yara-python/
%package -n python3-%{pypi_name}
Summary: %{summary}
BuildRequires: python3-devel
BuildRequires: python3-setuptools, python3-pip, python3-wheel
%{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name}
This is not the correct yara-python module. Use: https://pypi.org/project/yara-python/
%prep
%autosetup -n %{pypi_name}-%{version}
sed -i '/^\[project.urls\]$/i\
[tool.setuptools.packages.find]\
where = ["src"]\
' pyproject.toml
%build
%pyproject_build
%install
%pyproject_install
%files -n python3-%{pypi_name}
%doc README.md
%license LICENSE
%{python3_sitelib}/python-yara/
%{python3_sitelib}/python_yara-%{version}*.dist-info/
%changelog
* Thu Jul 16 2026 anyunhao <anyunhao@kylinos.cn> - 1.0.2-1
- Package init