From 0f2b6b2cd684d2fecd138a7cf029c45f22a30910 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Mon, 31 Oct 2022 11:30:23 +0100 Subject: [PATCH] templates/{perl,python}: update with current production --- templates/perl | 2 ++ templates/python | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/templates/perl b/templates/perl index 7758e3e..eae4182 100644 --- a/templates/perl +++ b/templates/perl @@ -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}" diff --git a/templates/python b/templates/python index 86ace8f..f2ea2ce 100644 --- a/templates/python +++ b/templates/python @@ -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