python-magic/python-magic.spec

71 lines
2.1 KiB
RPMSpec

%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-magic
Epoch: 1
Version: 0.4.27
Release: 1mamba
Summary: File type identification using libmagic
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
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
%description
%{summary}.
%if 0%{?with_pyver}
%pyver_package
%endif
%prep
%setup -q
%build
CFLAGS="%{optflags}" %{__python} setup.py build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \
-O1 --skip-build \
--root="%{buildroot}" \
--install-headers=%{_includedir}/python \
--install-lib=%{python_sitearch} \
--record=%{name}.filelist
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{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
* Wed Jun 08 2022 Automatic Build System <autodist@mambasoft.it> 0.4.27-1mamba
- automatic version update by autodist
* Tue May 31 2022 Automatic Build System <autodist@mambasoft.it> 0.4.26-1mamba
- automatic version update by autodist
* Fri Jun 04 2021 Automatic Build System <autodist@mambasoft.it> 0.4.24-1mamba
- automatic version update by autodist
* Wed Jun 02 2021 Automatic Build System <autodist@mambasoft.it> 0.4.23-1mamba
- automatic version update by autodist
* Sun Feb 21 2021 Automatic Build System <autodist@mambasoft.it> 0.4.22-1mamba
- automatic version update by autodist
* Sun Jul 31 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.12-1mamba
- update to 0.4.12
* Wed May 04 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.11-1mamba
- update to 0.4.11
* Sun Dec 13 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.10-1mamba
- package created using the webbuild interface