2024-01-06 11:25:27 +01:00
|
|
|
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
2024-01-06 11:25:27 +01:00
|
|
|
Name: python-magic
|
|
|
|
Epoch: 1
|
2024-01-06 11:25:27 +01:00
|
|
|
Version: 0.4.27
|
2024-01-06 11:25:27 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: File type identification using libmagic
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 11:25:27 +01:00
|
|
|
URL: https://github.com/ahupp/python-magic
|
2024-01-06 11:25:27 +01:00
|
|
|
Source: https://pypi.debian.net/python-magic/python-magic-%{version}.tar.gz
|
2024-01-06 11:25:27 +01:00
|
|
|
License: MIT
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
2024-01-06 11:25:27 +01:00
|
|
|
BuildRequires: libpython3-devel
|
2024-01-06 11:25:27 +01:00
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
|
|
|
|
%description
|
|
|
|
%{summary}.
|
|
|
|
|
2024-01-06 11:25:27 +01:00
|
|
|
%if 0%{?with_pyver}
|
|
|
|
%pyver_package
|
|
|
|
%endif
|
|
|
|
|
2024-01-06 11:25:27 +01:00
|
|
|
%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
|
|
|
|
|
2024-01-06 11:25:27 +01:00
|
|
|
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
|
2024-01-06 11:25:27 +01:00
|
|
|
|
2024-01-06 11:25:27 +01:00
|
|
|
%files %{?pyappend} -f %{name}.filelist
|
2024-01-06 11:25:27 +01:00
|
|
|
%defattr(-,root,root)
|
2024-01-06 11:25:27 +01:00
|
|
|
%dir %{python_sitearch}/python_%{pkgname}-%{version}-py*.egg-info
|
|
|
|
%{python_sitearch}/python_%{pkgname}-%{version}-py*.egg-info/*
|
2024-01-06 11:25:27 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-06 11:25:27 +01:00
|
|
|
* Wed Jun 08 2022 Automatic Build System <autodist@mambasoft.it> 0.4.27-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:25:27 +01:00
|
|
|
* Tue May 31 2022 Automatic Build System <autodist@mambasoft.it> 0.4.26-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:25:27 +01:00
|
|
|
* Fri Jun 04 2021 Automatic Build System <autodist@mambasoft.it> 0.4.24-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:25:27 +01:00
|
|
|
* Wed Jun 02 2021 Automatic Build System <autodist@mambasoft.it> 0.4.23-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:25:27 +01:00
|
|
|
* Sun Feb 21 2021 Automatic Build System <autodist@mambasoft.it> 0.4.22-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:25:27 +01:00
|
|
|
* Sun Jul 31 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.12-1mamba
|
|
|
|
- update to 0.4.12
|
|
|
|
|
2024-01-06 11:25:27 +01:00
|
|
|
* Wed May 04 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.11-1mamba
|
|
|
|
- update to 0.4.11
|
|
|
|
|
2024-01-06 11:25:27 +01:00
|
|
|
* Sun Dec 13 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.10-1mamba
|
|
|
|
- package created using the webbuild interface
|