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