python-augeas/python-augeas.spec

67 lines
1.8 KiB
RPMSpec

Name: python-augeas
Version: 1.1.0
Release: 3mamba
Summary: Pure python bindings for augeas
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://augeas.net/
Source: https://pypi.debian.net/python-augeas/python-augeas-%{version}.tar.gz
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython3-devel
BuildRequires: python3.7dist(cffi)
## AUTOBUILDREQ-END
BuildRequires: libaugeas-devel
Requires: libaugeas
%description
%{summary}.
%if 0%{?with_pyver}
%define py_requires_append \
Requires: libaugeas
%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=%{python_inc} \
--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)
%{python_sitearch}/augeas.py*
%if 0%{?with_pyver}
%{python_sitearch}/__pycache__/augeas.cpython-*.pyc
%endif
%dir %{python_sitearch}/python_augeas-%{version}-py*.egg-info
%{python_sitearch}/python_augeas-%{version}-py*.egg-info/*
%doc AUTHORS COPYING
%changelog
* Tue Apr 12 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.0-3mamba
- rebuilt with python 3.10
* Sun May 23 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.0-2mamba
- rebuilt with distdeps; require libaugeas
* Wed Mar 04 2020 Automatic Build System <autodist@mambasoft.it> 1.1.0-1mamba
- automatic version update by autodist
* Sat Feb 09 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.3-1mamba
- package created using the webbuild interface