templates/{perl,python}: update with current production
This commit is contained in:
parent
480f556d15
commit
0f2b6b2cd6
@ -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}"
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user