55 lines
1.5 KiB
RPMSpec
55 lines
1.5 KiB
RPMSpec
Name: python-magic
|
|
Epoch: 1
|
|
Version: 0.4.22
|
|
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: libpython-devel
|
|
## AUTOBUILDREQ-END
|
|
Requires: python >= %python_version
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%description
|
|
%{summary}.
|
|
|
|
%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 -f %{name}.filelist
|
|
%defattr(-,root,root)
|
|
|
|
|
|
%changelog
|
|
* 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
|