%define name yara-python %define version 4.5.4 %define unmangled_name yara_python %define unmangled_version 4.5.4 %define release 1 Summary: Python interface for YARA Name: %{name} Version: %{version} Release: %{release} Source0: %{unmangled_name}-%{unmangled_version}.tar.gz License: Apache 2.0 Group: Development/Libraries BuildRoot: %{_tmppath}/%{unmangled_name}-release-%{version}-%{release}-buildroot Prefix: %{_prefix} Vendor: Victor M. Alvarez Url: https://github.com/VirusTotal/yara-python BuildRequires: file-devel, gcc, openssl-devel, python3-devel, python3-pip, python3-setuptools %description This is a library for using YARA from Python. You can use it to compile, save and load YARA rules, and to scan files or data strings. %package -n python3-yara Summary: Python interface for YARA %description -n python3-yara This is a library for using YARA from Python. You can use it to compile, save and load YARA rules, and to scan files or data strings. %prep %autosetup -n %{unmangled_name}-%{unmangled_version} %build %pyproject_wheel %install %pyproject_install rm -rf %{buildroot}/usr/share/doc/%{name}/ %clean rm -rf %{buildroot} %files -n python3-yara %license LICENSE %{_libdir}/python3*/site-packages/*.so %{_libdir}/python3*/site-packages/yara_python*.dist-info %changelog * Wed Aug 26 2026 log2timeline development team 4.5.4-1 - Auto-generated