mirror of
https://abf.rosa.ru/djam/python3.11.git
synced 2025-02-23 18:22:52 +00:00
Minor cleanup
This commit is contained in:
parent
afa1305f9b
commit
00abc503fe
1 changed files with 9 additions and 9 deletions
18
python3.spec
18
python3.spec
|
@ -343,16 +343,9 @@ Type=Application
|
|||
Categories=Documentation;
|
||||
EOF
|
||||
|
||||
|
||||
# fix non real scripts
|
||||
#chmod 644 %{buildroot}%{_libdir}/python*/test/test_{binascii,grp,htmlparser}.py*
|
||||
find %{buildroot} -type f \( -name "test_binascii.py*" -o -name "test_grp.py*" -o -name "test_htmlparser.py*" \) -exec chmod 644 {} \;
|
||||
# fix python library not stripped
|
||||
chmod u+w %{buildroot}%{_libdir}/libpython%{lib_major}*.so.1.0 %{buildroot}%{_libdir}/libpython3.so
|
||||
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/profile.d/
|
||||
|
||||
cat > %{buildroot}%{_sysconfdir}/profile.d/30python.sh << 'EOF'
|
||||
cat > %{buildroot}%{_sysconfdir}/profile.d/30python.sh << EOF
|
||||
if [ -f $HOME/.pythonrc.py ] ; then
|
||||
export PYTHONSTARTUP=$HOME/.pythonrc.py
|
||||
else
|
||||
|
@ -362,7 +355,7 @@ fi
|
|||
export PYTHONDONTWRITEBYTECODE=1
|
||||
EOF
|
||||
|
||||
cat > %{buildroot}%{_sysconfdir}/profile.d/30python.csh << 'EOF'
|
||||
cat > %{buildroot}%{_sysconfdir}/profile.d/30python.csh << EOF
|
||||
if ( -f ${HOME}/.pythonrc.py ) then
|
||||
setenv PYTHONSTARTUP ${HOME}/.pythonrc.py
|
||||
else
|
||||
|
@ -385,6 +378,13 @@ except:
|
|||
# but then, this file will not be sourced
|
||||
EOF
|
||||
|
||||
# fix non real scripts
|
||||
#chmod 644 %{buildroot}%{_libdir}/python*/test/test_{binascii,grp,htmlparser}.py*
|
||||
find %{buildroot} -type f \( -name "test_binascii.py*" -o -name "test_grp.py*" -o -name "test_htmlparser.py*" \) -exec chmod 644 {} \;
|
||||
# fix python library not stripped
|
||||
chmod u+w %{buildroot}%{_libdir}/libpython%{lib_major}*.so.1.0 %{buildroot}%{_libdir}/libpython3.so
|
||||
|
||||
|
||||
%multiarch_includes %{buildroot}/usr/include/python*/pyconfig.h
|
||||
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/rpm/macros.d
|
||||
|
|
Loading…
Add table
Reference in a new issue