55 lines
1.5 KiB
RPMSpec
55 lines
1.5 KiB
RPMSpec
|
%define pkgname lazr.config
|
||
|
Name: python-lazr-config
|
||
|
Version: 3.0
|
||
|
Release: 1mamba
|
||
|
Summary: Create configuration schemas, and process and validate configurations
|
||
|
Group: System/Libraries
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||
|
URL: https://launchpad.net/lazr.config
|
||
|
Source: https://pypi.debian.net/lazr.config/lazr.config-%{version}.tar.gz
|
||
|
License: LGPL
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
BuildRequires: libpython311-devel
|
||
|
BuildRequires: python3.11dist(lazr.delegates)
|
||
|
BuildRequires: python3.11dist(setuptools)
|
||
|
BuildRequires: python3.11dist(zope.interface)
|
||
|
## AUTOBUILDREQ-END
|
||
|
|
||
|
%description
|
||
|
%{summary}.
|
||
|
|
||
|
%if 0%{?with_pyver}
|
||
|
%pyver_package
|
||
|
%endif
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n lazr.config-%{version}
|
||
|
|
||
|
%build
|
||
|
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
|
||
|
|
||
|
#%if "%{?with_pyver}" != "3"
|
||
|
## Rename any conflicting file outside of python site packages tree
|
||
|
#for f in %{_bindir}/pdm; do
|
||
|
# mv %{buildroot}${f}{,-%{?pyappend}}
|
||
|
#done
|
||
|
#%endif
|
||
|
|
||
|
%files %{?pyappend}
|
||
|
%defattr(-,root,root)
|
||
|
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
|
||
|
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
|
||
|
%{python_sitelib}/lazr.config-%{version}-py*-nspkg.pth
|
||
|
%dir %{python_sitelib}/lazr/config
|
||
|
%{python_sitelib}/lazr/config/*
|
||
|
|
||
|
%changelog
|
||
|
* Mon Dec 25 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0-1mamba
|
||
|
- package created using the webbuild interface
|