From fa3fbaef6cdae61d6f0c381a4086349faa979ad3 Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Sat, 6 Jan 2024 11:25:27 +0100 Subject: [PATCH] automatic version update by autodist [release 0.4.26-1mamba;Tue May 31 2022] --- python-magic.spec | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/python-magic.spec b/python-magic.spec index 63fe5de..0c587a8 100644 --- a/python-magic.spec +++ b/python-magic.spec @@ -1,6 +1,7 @@ +%define pkgname %(echo %name | cut -d- -f2- | tr - _) Name: python-magic Epoch: 1 -Version: 0.4.24 +Version: 0.4.26 Release: 1mamba Summary: File type identification using libmagic Group: System/Libraries @@ -11,12 +12,16 @@ URL: https://github.com/ahupp/python-magic Source: https://pypi.debian.net/python-magic/python-magic-%{version}.tar.gz License: MIT ## AUTOBUILDREQ-BEGIN +BuildRequires: libpython3-devel ## AUTOBUILDREQ-END -Requires: python >= %python_version %description %{summary}. +%if 0%{?with_pyver} +%pyver_package +%endif + %prep %setup -q @@ -32,13 +37,17 @@ CFLAGS="%{optflags}" %{__python} setup.py build --install-lib=%{python_sitearch} \ --record=%{name}.filelist -#sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist +sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist -%files -f %{name}.filelist +%files %{?pyappend} -f %{name}.filelist %defattr(-,root,root) - +%dir %{python_sitearch}/python_%{pkgname}-%{version}-py*.egg-info +%{python_sitearch}/python_%{pkgname}-%{version}-py*.egg-info/* %changelog +* Tue May 31 2022 Automatic Build System 0.4.26-1mamba +- automatic version update by autodist + * Fri Jun 04 2021 Automatic Build System 0.4.24-1mamba - automatic version update by autodist