SPECS: python30.spec - removed Obsoletes: python-devel - separeted 2to3 to ...

wiget wiget at pld-linux.org
Wed Feb 25 19:26:48 CET 2009


Author: wiget                        Date: Wed Feb 25 18:26:48 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- removed Obsoletes: python-devel
- separeted 2to3 to own subpackage (to avoid conflict with python 2.6 version)
- pythonpath patch updated
- don't provide libpython.so
- remove some unpackaged files
- Release: 1

---- Files affected:
SPECS:
   python30.spec (1.12 -> 1.13) 

---- Diffs:

================================================================
Index: SPECS/python30.spec
diff -u SPECS/python30.spec:1.12 SPECS/python30.spec:1.13
--- SPECS/python30.spec:1.12	Wed Feb 25 14:15:31 2009
+++ SPECS/python30.spec	Wed Feb 25 19:26:43 2009
@@ -32,7 +32,7 @@
 Summary(uk.UTF-8):	Мова програмування дуже високого рівня з X-інтерфейсом
 Name:		python30
 Version:	%{py_ver}.1
-Release:	0.2
+Release:	1
 Epoch:		1
 License:	PSF
 Group:		Applications
@@ -258,7 +258,6 @@
 Summary(uk.UTF-8):	Бібліотеки та хедери для програмування на мові Python
 Group:		Development/Languages/Python
 Requires:	%{name}-libs = %{epoch}:%{version}-%{release}
-Obsoletes:	python-devel
 
 %description devel
 The Python interpreter is relatively easy to extend with dynamically
@@ -336,6 +335,19 @@
 Narzędzia programistyczne języka Python takie jak profiler oraz
 debugger.
 
+%package 2to3
+Summary:	Automated Python 2 to 3 code translation
+Summary(pl.UTF-8):	Automatyczne tłumaczenie kody Pythona 2 do 3
+Group:		Development/Languages/Pythona
+
+%description 2to3
+2to3 is a Python program that reads Python 2.x source code and applies a series
+of fixers to transform it into valid Python 3.x code. The standard library
+contains a rich set of fixers that will handle almost all code. 2to3 supporting
+library lib2to3 is, however, a flexible and generic library, so it is possible
+to write your own fixers for 2to3. lib2to3 could also be adapted to custom
+applications in which Python code needs to be edited automatically.
+
 %package static
 Summary:	Static python library
 Summary(pl.UTF-8):	Statyczna biblioteka Pythona
@@ -475,7 +487,7 @@
 
 %prep
 %setup -q -n Python-%{version}%{beta}
-#patch1 -p1
+%patch1 -p1
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
@@ -542,7 +554,6 @@
 
 mv $RPM_BUILD_ROOT{%{py_libdir}/config,%{_libdir}}/libpython%{py_ver}.a
 ln -sf libpython%{py_ver}.a $RPM_BUILD_ROOT%{_libdir}/libpython.a
-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
 
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
@@ -601,6 +612,9 @@
 rm -rf $RPM_BUILD_ROOT%{py_scriptdir}/ctypes/macholib/fetch_macholib*
 rm -rf $RPM_BUILD_ROOT%{py_scriptdir}/site-packages/README
 rm -rf $RPM_BUILD_ROOT%{py_scriptdir}/distutils/command/wininst*.exe
+rm -rf $RPM_BUILD_ROOT%{py_scriptdir}/idlelib/*.bat
+rm -rf $RPM_BUILD_ROOT%{py_scriptdir}/idlelib/*.pyw
+rm -rf $RPM_BUILD_ROOT%{_bindir}/smtpd.py
 # already in %%doc
 rm -rf $RPM_BUILD_ROOT%{py_scriptdir}/pdb.doc
 rm -rf $RPM_BUILD_ROOT%{py_scriptdir}/LICENSE.txt
@@ -620,7 +634,6 @@
 %files
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/python%{py_ver}
-%attr(755,root,root) %{_bindir}/2to3
 
 %files modules
 %defattr(644,root,root,755)
@@ -754,15 +767,6 @@
 %dir %{py_scriptdir}/json
 %{py_scriptdir}/json/*.py[co]
 
-%dir %{py_scriptdir}/lib2to3
-%{py_scriptdir}/lib2to3/*.txt
-%{py_scriptdir}/lib2to3/*.pickle
-%{py_scriptdir}/lib2to3/*.py[co]
-%dir %{py_scriptdir}/lib2to3/fixes
-%{py_scriptdir}/lib2to3/fixes/*.py[co]
-%dir %{py_scriptdir}/lib2to3/pgen2
-%{py_scriptdir}/lib2to3/pgen2/*.py[co]
-
 %dir %{py_scriptdir}/logging
 %{py_scriptdir}/logging/*.py[co]
 
@@ -909,6 +913,17 @@
 %{py_scriptdir}/pstats.py[co]
 %{py_scriptdir}/timeit.py[co]
 
+%files 2to3
+%attr(755,root,root) %{_bindir}/2to3
+%dir %{py_scriptdir}/lib2to3
+%{py_scriptdir}/lib2to3/*.txt
+%{py_scriptdir}/lib2to3/*.pickle
+%{py_scriptdir}/lib2to3/*.py[co]
+%dir %{py_scriptdir}/lib2to3/fixes
+%{py_scriptdir}/lib2to3/fixes/*.py[co]
+%dir %{py_scriptdir}/lib2to3/pgen2
+%{py_scriptdir}/lib2to3/pgen2/*.py[co]
+
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
@@ -937,6 +952,14 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.13  2009/02/25 18:26:43  wiget
+- removed Obsoletes: python-devel
+- separeted 2to3 to own subpackage (to avoid conflict with python 2.6 version)
+- pythonpath patch updated
+- don't provide libpython.so
+- remove some unpackaged files
+- Release: 1
+
 Revision 1.12  2009/02/25 13:15:31  wiget
 - cleanup
 - bcond openssl097 removed
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/python30.spec?r1=1.12&r2=1.13&f=u



More information about the pld-cvs-commit mailing list