mirror of
https://abf.rosa.ru/djam/python38.git
synced 2025-02-23 15:22:50 +00:00
Drop files conflicting with python
This commit is contained in:
parent
50021085a9
commit
a4149c4cfd
1 changed files with 1 additions and 41 deletions
42
python3.spec
42
python3.spec
|
@ -34,7 +34,7 @@
|
|||
Summary: An interpreted, interactive object-oriented programming language
|
||||
Name: python3
|
||||
Version: 3.4.1
|
||||
Release: 4
|
||||
Release: 5
|
||||
License: Modified CNRI Open Source License
|
||||
Group: Development/Python
|
||||
|
||||
|
@ -343,41 +343,6 @@ Type=Application
|
|||
Categories=Documentation;
|
||||
EOF
|
||||
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/profile.d/
|
||||
|
||||
cat > %{buildroot}%{_sysconfdir}/profile.d/30python.sh << EOF
|
||||
if [ -f $HOME/.pythonrc.py ] ; then
|
||||
export PYTHONSTARTUP=$HOME/.pythonrc.py
|
||||
else
|
||||
export PYTHONSTARTUP=/etc/pythonrc.py
|
||||
fi
|
||||
|
||||
export PYTHONDONTWRITEBYTECODE=1
|
||||
EOF
|
||||
|
||||
cat > %{buildroot}%{_sysconfdir}/profile.d/30python.csh << EOF
|
||||
if ( -f ${HOME}/.pythonrc.py ) then
|
||||
setenv PYTHONSTARTUP ${HOME}/.pythonrc.py
|
||||
else
|
||||
setenv PYTHONSTARTUP /etc/pythonrc.py
|
||||
endif
|
||||
setenv PYTHONDONTWRITEBYTECODE 1
|
||||
EOF
|
||||
|
||||
cat > %{buildroot}%{_sysconfdir}/pythonrc.py << EOF
|
||||
try:
|
||||
# this add completion to python interpreter
|
||||
import readline
|
||||
import rlcompleter
|
||||
# see readline man page for this
|
||||
readline.parse_and_bind("set show-all-if-ambiguous on")
|
||||
readline.parse_and_bind("tab: complete")
|
||||
except:
|
||||
pass
|
||||
# you can place a file .pythonrc.py in your home to overrides this one
|
||||
# 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 {} \;
|
||||
|
@ -403,8 +368,6 @@ export TMP="/tmp" TMPDIR="/tmp"
|
|||
|
||||
%files
|
||||
%doc README.urpmi
|
||||
%config(noreplace) %{_sysconfdir}/pythonrc.py
|
||||
%{_sysconfdir}/profile.d/*
|
||||
%{_sysconfdir}/rpm/macros.d/*.macros
|
||||
%{_includedir}/python*/pyconfig.h
|
||||
%multiarch_includedir/python*/pyconfig.h
|
||||
|
@ -490,6 +453,3 @@ export TMP="/tmp" TMPDIR="/tmp"
|
|||
%{_bindir}/idle3*
|
||||
%{_bindir}/pynche3
|
||||
%{_datadir}/applications/rosa-tkinter3.desktop
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue