diff --git a/README.md b/README.md index d9f5693..19d3f55 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-astroid +A common base representation of python source code. + diff --git a/python-astroid.spec b/python-astroid.spec new file mode 100644 index 0000000..de47178 --- /dev/null +++ b/python-astroid.spec @@ -0,0 +1,52 @@ +Name: python-astroid +Version: 2.4.2 +Release: 1mamba +Summary: A common base representation of python source code +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +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 +* Thu Jan 21 2021 Silvan Calarco 2.4.2-1mamba +- package created using the webbuild interface