templates/{perl,python}: update with current production

This commit is contained in:
Silvan Calarco 2022-10-31 11:30:23 +01:00
parent 480f556d15
commit 0f2b6b2cd6
2 changed files with 9 additions and 0 deletions

View File

@ -42,6 +42,8 @@ for dir in `find %{buildroot} -type d | grep $strid`; do
\ echo "%dir ${dir#%buildroot}" >> .packlist
done
find %{buildroot} -name *.so -exec chmod u+w {} \;
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

View File

@ -31,6 +31,13 @@ CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
[ "%{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