SPECS: python.spec - revert; applied to wrong spec

arekm arekm at pld-linux.org
Sun Sep 2 21:19:26 CEST 2007


Author: arekm                        Date: Sun Sep  2 19:19:26 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- revert; applied to wrong spec

---- Files affected:
SPECS:
   python.spec (1.305 -> 1.306) 

---- Diffs:

================================================================
Index: SPECS/python.spec
diff -u SPECS/python.spec:1.305 SPECS/python.spec:1.306
--- SPECS/python.spec:1.305	Sun Sep  2 21:18:12 2007
+++ SPECS/python.spec	Sun Sep  2 21:19:21 2007
@@ -253,25 +253,27 @@
 %description modules-sqlite -l pl.UTF-8
 Oficjalnie rozprowadzany moduł sqlite języka Python.
 
-%package -n pydoc30
+%package -n pydoc
 Summary:	Python interactive module documentation access support
 Summary(pl.UTF-8):	Interaktywne korzystanie z dokumentacji modułów języka Python
 Group:		Applications
 Requires:	%{name}-modules = %{epoch}:%{version}-%{release}
+Obsoletes:	python-pydoc
 
-%description -n pydoc30
+%description -n pydoc
 Python interactive module documentation access support.
 
-%description -n pydoc30 -l pl.UTF-8
+%description -n pydoc -l pl.UTF-8
 Interaktywne korzystanie z dokumentacji modułów języka Python.
 
-%package -n idle30
+%package -n idle
 Summary:	IDE for Python language
 Summary(pl.UTF-8):	IDE dla języka Python
 Group:		Applications
 Requires:	%{name}-tkinter = %{epoch}:%{version}-%{release}
+Obsoletes:	python-idle
 
-%description -n idle30
+%description -n idle
 IDE for Python language.
 
 %description -n idle -l pl.UTF-8
@@ -579,6 +581,8 @@
 ln -sf libpython%{py_ver}.so.1.0 $RPM_BUILD_ROOT%{_libdir}/libpython.so
 ln -sf libpython%{py_ver}.so.1.0 $RPM_BUILD_ROOT%{_libdir}/libpython%{py_ver}.so
 
+rm -f $RPM_BUILD_ROOT%{_bindir}/python%{py_ver}
+
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 cp -a Tools Demo $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
@@ -588,36 +592,31 @@
 
 # for python devel tools
 for script in timeit profile pdb pstats; do
-    echo alias ${script}%{py_ver}.py=\"python%{py_ver} -m ${script}\"
-done > $RPM_BUILD_ROOT/etc/shrc.d/python%{py_ver}-devel.sh
+    echo alias $script.py=\"python -m ${script}\"
+done > $RPM_BUILD_ROOT/etc/shrc.d/python-devel.sh
 
-echo alias pygettext%{py_ver}.py='"pygettext%{py_ver}"' \
-	>> $RPM_BUILD_ROOT/etc/shrc.d/python%{py_ver}-devel.sh
+echo alias pygettext.py='"pygettext"' \
+	>> $RPM_BUILD_ROOT/etc/shrc.d/python-devel.sh
 
 sed 's/=/ /' \
-	< $RPM_BUILD_ROOT/etc/shrc.d/python%{py_ver}-devel.sh \
-	> $RPM_BUILD_ROOT/etc/shrc.d/python%{py_ver}-devel.csh
+	< $RPM_BUILD_ROOT/etc/shrc.d/python-devel.sh \
+	> $RPM_BUILD_ROOT/etc/shrc.d/python-devel.csh
 
 # for python modules
 for script in smtpd webbrowser; do
-    echo alias ${script}%{py_ver}.py=\"python%{py_ver} -m ${script}\"
-done > $RPM_BUILD_ROOT/etc/shrc.d/python%{py_ver}-modules.sh
+    echo alias $script.py=\"python -m ${script}\"
+done > $RPM_BUILD_ROOT/etc/shrc.d/python-modules.sh
 
 sed 's/=/ /' \
-	< $RPM_BUILD_ROOT/etc/shrc.d/python%{py_ver}-modules.sh \
-	> $RPM_BUILD_ROOT/etc/shrc.d/python%{py_ver}-modules.csh
+	< $RPM_BUILD_ROOT/etc/shrc.d/python-modules.sh \
+	> $RPM_BUILD_ROOT/etc/shrc.d/python-modules.csh
 
 # xgettext specific for Python code
 #
 # we will have two commands: pygettext.py (an alias) and pygettext;
 # this way there are no import (which is impossible now) conflicts and
 # pygettext.py is provided for compatibility
-install Tools/i18n/pygettext.py $RPM_BUILD_ROOT%{_bindir}/pygettext%{py_ver}
-
-# add py_ver
-for script in idle pydoc; do
-	mv $RPM_BUILD_ROOT%{_bindir}/${script} $RPM_BUILD_ROOT%{_bindir}/${script}%{py_ver}
-done
+install Tools/i18n/pygettext.py $RPM_BUILD_ROOT%{_bindir}/pygettext
 
 # just to cut the noise, as they are not packaged (now)
 # first tests
@@ -829,14 +828,14 @@
 %dir %{py_scriptdir}/encodings
 %{py_scriptdir}/encodings/*.py[co]
 
-%files -n pydoc30
+%files -n pydoc
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/pydoc
 %{py_scriptdir}/pydoc.py[co]
 
-%files -n idle30
+%files -n idle
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/idle%{py_ver}
+%attr(755,root,root) %{_bindir}/idle
 %dir %{py_scriptdir}/idlelib
 %dir %{py_scriptdir}/idlelib/Icons
 %{py_scriptdir}/idlelib/*.py[co]
@@ -894,7 +893,7 @@
 %doc Lib/pdb.doc
 /etc/shrc.d/python-devel*
 
-%attr(755,root,root) %{_bindir}/pygettext%{py_ver}
+%attr(755,root,root) %{_bindir}/pygettext
 
 %attr(755,root,root) %{py_dyndir}/_hotshot.so
 %dir %{py_scriptdir}/hotshot
@@ -936,6 +935,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.306  2007/09/02 19:19:21  arekm
+- revert; applied to wrong spec
+
 Revision 1.305  2007/09/02 19:18:12  arekm
 - no conflicts with 2.x
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/python.spec?r1=1.305&r2=1.306&f=u



More information about the pld-cvs-commit mailing list