%define name yara-python %define version 4.5.0 %define unmangled_name yara-python %define unmangled_version 4.5.0 %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: gcc, python3-setuptools, python3-devel, file-devel, openssl-devel %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 %py3_build %install %py3_install rm -rf %{buildroot}/usr/lib/python*/site-packages/*.egg-info/requires.txt 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*.egg-info %changelog * Sun Mar 3 2024 log2timeline development team 4.5.0-1 - Auto-generated