summaryrefslogtreecommitdiffstats
path: root/python34.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python34.spec')
-rw-r--r--python34.spec149
1 files changed, 14 insertions, 135 deletions
diff --git a/python34.spec b/python34.spec
index 1570a23..ad7a782 100644
--- a/python34.spec
+++ b/python34.spec
@@ -123,7 +123,7 @@
# ==================
# Top-level metadata
# ==================
-Summary: Version 3 of the Python programming language aka Python 3000
+Summary: Version 3.4 of the Python programming language
Name: python%{pyshortver}
Version: %{pybasever}.3
Release: 11%{?dist}
@@ -184,6 +184,9 @@ BuildRequires: valgrind-devel
BuildRequires: xz-devel
BuildRequires: zlib-devel
+Requires: expat >= 2.1.0
+BuildRequires: python-rpm-macros
+
# =======================
# Source code and patches
@@ -766,109 +769,14 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root
URL: http://www.python.org/
-# See notes in bug 532118:
-Provides: python(abi) = %{pybasever}
+# We'll not provide this, on purpose
+# No package in Fedora shall ever depend on this
+# Provides: python(abi) = %{pybasever}
-Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%description
-Python 3 is a new version of the language that is incompatible with the 2.x
-line of releases. The language is mostly the same, but many details, especially
-how built-in objects like dictionaries and strings work, have changed
-considerably, and a lot of deprecated features have finally been removed.
-
-%package libs
-Summary: Python 3 runtime libraries
-Group: Development/Libraries
-#Requires: %{name} = %{version}-%{release}
-
-# expat 2.1.0 added the symbol XML_SetHashSalt without bumping SONAME. We use
-# this symbol (in pyexpat), so we must explicitly state this dependency to
-# prevent "import pyexpat" from failing with a linker error if someone hasn't
-# yet upgraded expat:
-Requires: expat >= 2.1.0
-
-%description libs
-This package contains files used to embed Python 3 into applications.
-
-%package devel
-Summary: Libraries and header files needed for Python 3 development
-Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
-Requires: %{name}-libs%{?_isa} = %{version}-%{release}
-BuildRequires: python-rpm-macros
-Requires: python-rpm-macros
-Requires: python3-rpm-macros
-Conflicts: %{name} < %{version}-%{release}
-
-%description devel
-This package contains libraries and header files used to build applications
-with and native libraries for Python 3
-
-%package tools
-Summary: A collection of tools included with Python 3
-Group: Development/Tools
-Requires: %{name} = %{version}-%{release}
-Requires: %{name}-tkinter = %{version}-%{release}
-
-%description tools
-This package contains several tools included with Python 3
-
-%package tkinter
-Summary: A GUI toolkit for Python 3
-Group: Development/Languages
-Requires: %{name} = %{version}-%{release}
-
-%description tkinter
-The Tkinter (Tk interface) program is an graphical user interface for
-the Python scripting language.
-
-%package test
-Summary: The test modules from the main python 3 package
-Group: Development/Languages
-Requires: %{name} = %{version}-%{release}
-Requires: %{name}-tools = %{version}-%{release}
-
-%description test
-The test modules from the main %{name} package.
-These are in a separate package to save space, as they are almost never used
-in production.
-
-You might want to install the python3-test package if you're developing
-python 3 code that uses more than just unittest and/or test_support.py.
-
-%if 0%{?with_debug_build}
-%package debug
-Summary: Debug version of the Python 3 runtime
-Group: Applications/System
-
-# The debug build is an all-in-one package version of the regular build, and
-# shares the same .py/.pyc files and directories as the regular build. Hence
-# we depend on all of the subpackages of the regular build:
-Requires: %{name}%{?_isa} = %{version}-%{release}
-Requires: %{name}-libs%{?_isa} = %{version}-%{release}
-Requires: %{name}-devel%{?_isa} = %{version}-%{release}
-Requires: %{name}-test%{?_isa} = %{version}-%{release}
-Requires: %{name}-tkinter%{?_isa} = %{version}-%{release}
-Requires: %{name}-tools%{?_isa} = %{version}-%{release}
-
-%description debug
-python3-debug provides a version of the Python 3 runtime with numerous debugging
-features enabled, aimed at advanced Python users, such as developers of Python
-extension modules.
-
-This version uses more memory and will be slower than the regular Python 3 build,
-but is useful for tracking down reference-counting issues, and other bugs.
-
-The bytecodes are unchanged, so that .pyc files are compatible between the two
-versions of Python 3, but the debugging features mean that C/C++ extension
-modules are ABI-incompatible with those built for the standard runtime.
-
-It shares installation directories with the standard Python 3 runtime, so that
-.py and .pyc files can be shared. All compiled extension modules gain a "_d"
-suffix ("foo_d.so" rather than "foo.so") so that each Python 3 implementation
-can load its own extensions.
-%endif # with_debug_build
+Python 3.5 package for developers.
+No security fixes will be applied.
# ======================================================
# The prep phase of the build:
@@ -1492,20 +1400,12 @@ CheckPython optimized
# ======================================================
-# Cleaning up
-# ======================================================
-
-%clean
-rm -fr %{buildroot}
-
-
-# ======================================================
# Scriptlets
# ======================================================
-%post libs -p /sbin/ldconfig
+%post -p /sbin/ldconfig
-%postun libs -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
@@ -1520,9 +1420,6 @@ rm -fr %{buildroot}
%{_bindir}/pyvenv-%{pybasever}
%{_mandir}/*/*
-%files libs
-%defattr(-,root,root,-)
-%doc LICENSE README
%dir %{pylibdir}
%dir %{dynload_dir}
%{dynload_dir}/_bisect.%{SOABI_optimized}.so
@@ -1639,11 +1536,7 @@ rm -fr %{buildroot}
%{pylibdir}/encodings
-%dir %{pylibdir}/ensurepip/
-%dir %{pylibdir}/ensurepip/__pycache__/
-%{pylibdir}/ensurepip/*.py
-%{pylibdir}/ensurepip/__pycache__/*%{bytecode_suffixes}
-%exclude %{pylibdir}/ensurepip/_bundled
+%{pylibdir}/ensurepip
%{pylibdir}/html
%{pylibdir}/http
@@ -1660,7 +1553,6 @@ rm -fr %{buildroot}
%{pylibdir}/json/__pycache__/*%{bytecode_suffixes}
%{pylibdir}/lib2to3
-%exclude %{pylibdir}/lib2to3/tests
%{pylibdir}/logging
%{pylibdir}/multiprocessing
%{pylibdir}/plat-linux
@@ -1680,8 +1572,6 @@ rm -fr %{buildroot}
%{pylibdir}/test/support/__init__.py
%{pylibdir}/test/support/__pycache__/__init__%{bytecode_suffixes}
-%exclude %{pylibdir}/turtle.py
-%exclude %{pylibdir}/__pycache__/turtle*%{bytecode_suffixes}
%dir %{pylibdir}/unittest/
%dir %{pylibdir}/unittest/__pycache__/
@@ -1723,12 +1613,9 @@ rm -fr %{buildroot}
%doc systemtap-example.stp pyfuntop.stp
%endif
-%files devel
-%defattr(-,root,root)
+
%{pylibdir}/config-%{LDVERSION_optimized}/*
-%exclude %{pylibdir}/config-%{LDVERSION_optimized}/Makefile
%{_includedir}/python%{LDVERSION_optimized}/*.h
-%exclude %{_includedir}/python%{LDVERSION_optimized}/%{_pyconfig_h}
%doc Misc/README.valgrind Misc/valgrind-python.supp Misc/gdbinit
%{_bindir}/python3-config
%{_bindir}/python%{pybasever}-config
@@ -1740,18 +1627,13 @@ rm -fr %{buildroot}
%{_libdir}/pkgconfig/python3.pc
%{_rpmconfigdir}/macros.d/macros.pybytecompile%{pybasever}
-%files tools
-%defattr(-,root,root,755)
%{_bindir}/python3-2to3
%{_bindir}/2to3-%{pybasever}
%{_bindir}/idle*
%{pylibdir}/Tools
%doc %{pylibdir}/Doc
-%files tkinter
-%defattr(-,root,root,755)
%{pylibdir}/tkinter
-%exclude %{pylibdir}/tkinter/test
%{dynload_dir}/_tkinter.%{SOABI_optimized}.so
%{pylibdir}/turtle.py
%{pylibdir}/__pycache__/turtle*%{bytecode_suffixes}
@@ -1761,8 +1643,7 @@ rm -fr %{buildroot}
%dir %{pylibdir}/turtledemo/__pycache__/
%{pylibdir}/turtledemo/__pycache__/*%{bytecode_suffixes}
-%files test
-%defattr(-, root, root)
+
%{pylibdir}/ctypes/test
%{pylibdir}/distutils/tests
%{pylibdir}/sqlite3/test
@@ -1783,8 +1664,6 @@ rm -fr %{buildroot}
# all of the other subpackages
%if 0%{?with_debug_build}
-%files debug
-%defattr(-,root,root,-)
# Analog of the core subpackage's files:
%{_bindir}/python%{LDVERSION_debug}