52 lines
1.3 KiB
Plaintext
52 lines
1.3 KiB
Plaintext
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
|
Name: @pck_name@
|
|
Version: @pck_version@
|
|
Release: @spec_first_release@@DISTRO_rpm@
|
|
Summary: ...
|
|
Group: System/Libraries
|
|
Vendor: @VENDOR@
|
|
Distribution: @DISTRO@
|
|
Packager: @packager_fullname@ <@packager_email@>
|
|
URL: ...
|
|
Source: ...
|
|
License: ...
|
|
## AUTOBUILDREQ-BEGIN
|
|
## note: run 'autospec -u -a6 @pck_name@' to get the list of build requirements.
|
|
## AUTOBUILDREQ-END
|
|
|
|
%description
|
|
%{summary}.
|
|
|
|
%if 0%{?with_pyver}
|
|
%pyver_package
|
|
%endif
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%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}/*
|
|
@standard_docs@
|
|
|
|
%changelog
|
|
* @spec_changelog_date@ @packager_fullname@ <@packager_email@> @pck_version@-@spec_first_release@@DISTRO_rpm@
|
|
- @spec_changelog_comment@
|