Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
d3c810ed
Kaydet (Commit)
d3c810ed
authored
Şub 15, 2004
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Patch #892673: Replace /usr/local/bin/python with
/usr/bin/env python'%{binsuffix} Backported to 2.3.
üst
a79449e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
1 deletion
+38
-1
python-2.3.spec
Misc/RPM/python-2.3.spec
+38
-1
No files found.
Misc/RPM/python-2.3.spec
Dosyayı görüntüle @
d3c810ed
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
#################################
#################################
%define name python
%define name python
%define version 2.3.
2
%define version 2.3.
3
%define libvers 2.3
%define libvers 2.3
%define release 1pydotorg
%define release 1pydotorg
%define __prefix /usr
%define __prefix /usr
...
@@ -127,6 +127,11 @@ formats.
...
@@ -127,6 +127,11 @@ formats.
%endif
%endif
%changelog
%changelog
* Sat Feb 07 2004 Sean Reifschneider <jafo-rpms@tummy.com> [2.3.3-2pydotorg]
- Adding code to remove "#!/usr/local/bin/python" from particular files and
causing the RPM build to terminate if there are any unexpected files
which have that line in them.
* Mon Oct 13 2003 Sean Reifschneider <jafo-rpms@tummy.com> [2.3.2-1pydotorg]
* Mon Oct 13 2003 Sean Reifschneider <jafo-rpms@tummy.com> [2.3.2-1pydotorg]
- Adding code to detect wether documentation is available to build.
- Adding code to detect wether documentation is available to build.
...
@@ -261,6 +266,38 @@ mkdir -p "$RPM_BUILD_ROOT"/var/www/html/python
...
@@ -261,6 +266,38 @@ mkdir -p "$RPM_BUILD_ROOT"/var/www/html/python
)
)
%endif
%endif
# fix the #! line in installed files
for file in \
usr/lib/python2.3/Tools/scripts/parseentities.py \
usr/lib/python2.3/cgi.py \
usr/lib/python2.3/Tools/faqwiz/faqw.py
do
sed 's|^#!.*python|#!/usr/bin/env python'"%{binsuffix}"'|' \
"$RPM_BUILD_ROOT"/"$file" >/tmp/fix-python-path.$$
cat /tmp/fix-python-path.$$ >"$RPM_BUILD_ROOT"/"$file"
rm -f /tmp/fix-python-path.$$
done
# check to see if there are any straggling #! lines
find "$RPM_BUILD_ROOT" -type f | xargs egrep -n '^#! */usr/local/bin/python' \
| grep ':1:#!' >/tmp/python-rpm-files.$$ || true
if [ -s /tmp/python-rpm-files.$$ ]
then
echo '*****************************************************'
cat /tmp/python-rpm-files.$$
cat <<@EOF
*****************************************************
There are still files referencing /usr/local/bin/python in the
install directory. They are listed above. Please fix the .spec
file and try again. If you are an end-user, you probably want
to report this to jafo-rpms@tummy.com as well.
*****************************************************
@EOF
rm -f /tmp/python-rpm-files.$$
exit 1
fi
rm -f /tmp/python-rpm-files.$$
########
########
# CLEAN
# CLEAN
########
########
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment