mirror of
https://abf.rosa.ru/djam/python38.git
synced 2025-02-23 15:22:50 +00:00
Fix naming of macros files
This commit is contained in:
parent
5738f211c7
commit
57bbf7cf48
1 changed files with 4 additions and 7 deletions
|
@ -393,8 +393,10 @@ chmod u+w %{buildroot}%{_libdir}/libpython%{lib_major}*.so.1.0 %{buildroot}%{_li
|
||||||
|
|
||||||
%if %{without py38}
|
%if %{without py38}
|
||||||
%install_macro python3 %{SOURCE2}
|
%install_macro python3 %{SOURCE2}
|
||||||
|
%else
|
||||||
|
%install_macro python38 %{SOURCE2}
|
||||||
%endif
|
%endif
|
||||||
%install_macro pybytecompile %{SOURCE3}
|
%install_macro py38bytecompile %{SOURCE3}
|
||||||
|
|
||||||
ln -s python3 %{buildroot}%{_bindir}/python
|
ln -s python3 %{buildroot}%{_bindir}/python
|
||||||
ln -s pydoc3 %{buildroot}%{_bindir}/pydoc
|
ln -s pydoc3 %{buildroot}%{_bindir}/pydoc
|
||||||
|
@ -425,15 +427,10 @@ find %{buildroot} -type f -print | while read -r line ; do
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
%if %rpm4
|
|
||||||
cp -fr %{S:2} %{buildroot}%{_rpmmacrodir}/python38.macros
|
|
||||||
%else
|
|
||||||
cp -fr %{S:2} %{buildroot}%{_rpmmacrodir}/macros.python38
|
|
||||||
rm -fr %{buildroot}%{_bindir}/{2to3,idle3,pydoc,pydoc3,python,python3,python3-config,python-config}
|
rm -fr %{buildroot}%{_bindir}/{2to3,idle3,pydoc,pydoc3,python,python3,python3-config,python-config}
|
||||||
rm -fr %{buildroot}%{_libdir}/libpython3.so
|
rm -fr %{buildroot}%{_libdir}/libpython3.so
|
||||||
rm -fr %{buildroot}%{_libdir}/pkgconfig/python3.pc
|
rm -fr %{buildroot}%{_libdir}/pkgconfig/python3.pc
|
||||||
%endif
|
%endif
|
||||||
%endif
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# (misc) if the home is nfs mounted, rmdir fails
|
# (misc) if the home is nfs mounted, rmdir fails
|
||||||
|
@ -448,7 +445,7 @@ export TMP="/tmp" TMPDIR="/tmp"
|
||||||
%files
|
%files
|
||||||
%doc README.urpmi
|
%doc README.urpmi
|
||||||
%{_rpmmacrodir}/*python3*
|
%{_rpmmacrodir}/*python3*
|
||||||
%{_rpmmacrodir}/*pybytecompile*
|
%{_rpmmacrodir}/*py*bytecompile*
|
||||||
%{_includedir}/python*/pyconfig.h
|
%{_includedir}/python*/pyconfig.h
|
||||||
%{_libdir}/python*/config*/Makefile
|
%{_libdir}/python*/config*/Makefile
|
||||||
%exclude %{_libdir}/python*/site-packages/pynche
|
%exclude %{_libdir}/python*/site-packages/pynche
|
||||||
|
|
Loading…
Add table
Reference in a new issue