python-astroid/python-astroid.spec

56 lines
1.5 KiB
RPMSpec

Name: python-astroid
Version: 2.5
Release: 1mamba
Summary: A common base representation of python source code
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://pypi.org/project/astroid/
Source: https://pypi.debian.net/astroid/astroid-%{version}.tar.gz
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: python3
## AUTOBUILDREQ-END
BuildRequires: libpython-devel
Requires: python >= %python_version
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
%{summary}.
%if 0%{?with_pyver}
%define py_requires_append \
Requires: python-lazy-object-proxy%{?pyappend:-%pyappend} \
Requires: python-wrapt%{?pyappend:-%pyappend}
%pyver_package
%endif
%prep
%setup -q -n astroid-%{version}
%build
CFLAGS="%{optflags}" %{__python} setup.py build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \
-O1 --skip-build \
--root="%{buildroot}" \
--install-headers=%{python_inc} \
--install-lib=%{python_sitearch} \
--record=%{name}.filelist
sed -i "s,.*/man/.*,&.gz," %{name}.filelist
%files %{?pyappend} -f %{name}.filelist
%defattr(-,root,root)
%doc COPYING COPYING.LESSER
%changelog
* Sun Feb 21 2021 Automatic Build System <autodist@mambasoft.it> 2.5-1mamba
- automatic version update by autodist
* Thu Jan 21 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.2-1mamba
- package created using the webbuild interface