package created using the webbuild interface [release 1.7.0-1mamba;Fri Nov 11 2022]
This commit is contained in:
parent
2d218df5f2
commit
aa13468a07
@ -1,2 +1,4 @@
|
|||||||
# python-flit_scm
|
# python-flit_scm
|
||||||
|
|
||||||
|
A PEP 518 build backend that uses setuptools_scm to generate a version file from your version control system, then flit to build the package.
|
||||||
|
|
||||||
|
54
python-flit_scm.spec
Normal file
54
python-flit_scm.spec
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
||||||
|
Name: python-flit_scm
|
||||||
|
Version: 1.7.0
|
||||||
|
Release: 1mamba
|
||||||
|
Summary: A PEP 518 build backend that uses setuptools_scm to generate a version file from your version control system, then flit to build the package
|
||||||
|
Group: System/Libraries
|
||||||
|
Vendor: openmamba
|
||||||
|
Distribution: openmamba
|
||||||
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
|
URL: https://gitlab.com/WillDaSilva/flit_scm
|
||||||
|
Source: https://pypi.debian.net/flit-scm/flit_scm-%{version}.tar.gz
|
||||||
|
License: MIT
|
||||||
|
## AUTOBUILDREQ-BEGIN
|
||||||
|
BuildRequires: (python3.7dist(flit-core) >= 3.5 with python3.7dist(flit-core) < 4)
|
||||||
|
BuildRequires: libpython3-devel
|
||||||
|
BuildRequires: python3.7dist(setuptools-scm)
|
||||||
|
BuildRequires: python3.7dist(tomli)
|
||||||
|
## AUTOBUILDREQ-END
|
||||||
|
|
||||||
|
%description
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%if 0%{?with_pyver}
|
||||||
|
%pyver_package
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n flit_scm-%{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/*
|
||||||
|
%dir %{python_sitelib}/%{pkgname}
|
||||||
|
%{python_sitelib}/%{pkgname}/*
|
||||||
|
%doc LICENSE
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Nov 11 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.7.0-1mamba
|
||||||
|
- package created using the webbuild interface
|
Loading…
Reference in New Issue
Block a user