2022-05-23 13:18:31 +02:00
|
|
|
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
2011-04-26 21:39:44 +02:00
|
|
|
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
|
2012-04-17 22:55:13 +02:00
|
|
|
%{summary}.
|
2011-04-26 21:39:44 +02:00
|
|
|
|
2016-02-16 19:34:06 +01:00
|
|
|
%if 0%{?with_pyver}
|
|
|
|
%pyver_package
|
|
|
|
%endif
|
|
|
|
|
2011-04-26 21:39:44 +02:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2022-10-08 16:18:58 +02:00
|
|
|
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
|
2011-04-26 21:39:44 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2022-10-08 16:18:58 +02:00
|
|
|
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
|
2011-04-26 21:39:44 +02:00
|
|
|
|
2022-10-08 16:18:58 +02:00
|
|
|
%files %{?pyappend}
|
2011-04-26 21:39:44 +02:00
|
|
|
%defattr(-,root,root)
|
2022-10-08 16:18:58 +02:00
|
|
|
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
|
|
|
|
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
|
|
|
|
%dir %{python_sitelib}/%{pkgname}
|
|
|
|
%{python_sitelib}/%{pkgname}/*
|
2011-04-26 21:39:44 +02:00
|
|
|
@standard_docs@
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* @spec_changelog_date@ @packager_fullname@ <@packager_email@> @pck_version@-@spec_first_release@@DISTRO_rpm@
|
|
|
|
- @spec_changelog_comment@
|