| 1 | %{!?__python_ver:%global __python_ver EMPTY}
|
|---|
| 2 | #global __python_ver 26
|
|---|
| 3 | %global unicode ucs4
|
|---|
| 4 |
|
|---|
| 5 | %global _default_patch_fuzz 2
|
|---|
| 6 |
|
|---|
| 7 | %if "%{__python_ver}" != "EMPTY"
|
|---|
| 8 | %global main_python 0
|
|---|
| 9 | %global python python%{__python_ver}
|
|---|
| 10 | %global tkinter tkinter%{__python_ver}
|
|---|
| 11 | %else
|
|---|
| 12 | %global main_python 1
|
|---|
| 13 | %global python python
|
|---|
| 14 | %global tkinter tkinter
|
|---|
| 15 | %endif
|
|---|
| 16 |
|
|---|
| 17 | %global pybasever 2.6
|
|---|
| 18 | %global pybasever_cond 26
|
|---|
| 19 | %global pylibdir %{_libdir}/python%{pybasever}
|
|---|
| 20 | %global tools_dir %{pylibdir}/Tools
|
|---|
| 21 | %global demo_dir %{pylibdir}/Demo
|
|---|
| 22 | %global doc_tools_dir %{pylibdir}/Doc/tools
|
|---|
| 23 | %global dynload_dir %{pylibdir}/lib-dynload
|
|---|
| 24 | %global site_packages %{pylibdir}/site-packages
|
|---|
| 25 |
|
|---|
| 26 | %global with_gdb_hooks 0
|
|---|
| 27 |
|
|---|
| 28 | %global with_systemtap 0
|
|---|
| 29 |
|
|---|
| 30 | %global with_valgrind 0
|
|---|
| 31 |
|
|---|
| 32 | # Some of the files below /usr/lib/pythonMAJOR.MINOR/test (e.g. bad_coding.py)
|
|---|
| 33 | # are deliberately invalid, leading to SyntaxError exceptions if they get
|
|---|
| 34 | # byte-compiled.
|
|---|
| 35 | #
|
|---|
| 36 | # These errors are ignored by the normal python build, and aren't normally a
|
|---|
| 37 | # problem in the buildroots since /usr/bin/python isn't present.
|
|---|
| 38 | #
|
|---|
| 39 | # However, for the case where we're rebuilding the python srpm on a machine
|
|---|
| 40 | # that does have python installed we need to set this to avoid
|
|---|
| 41 | # brp-python-bytecompile treating these as fatal errors:
|
|---|
| 42 | #
|
|---|
| 43 | %global _python_bytecompile_errors_terminate_build 0
|
|---|
| 44 |
|
|---|
| 45 | Summary: An interpreted, interactive, object-oriented programming language
|
|---|
| 46 | Name: %{python}
|
|---|
| 47 | Version: 2.6.5
|
|---|
| 48 | Release: 4%{?dist}
|
|---|
| 49 | License: Python
|
|---|
| 50 | Group: Development/Languages
|
|---|
| 51 | Provides: python-abi = %{pybasever}
|
|---|
| 52 | Provides: python(abi) = %{pybasever}
|
|---|
| 53 | Source: http://www.python.org/ftp/python/%{version}/Python-%{version}.tgz
|
|---|
| 54 |
|
|---|
| 55 | Patch0: Python-%{version}-os2.diff
|
|---|
| 56 | Patch1: Python-%{version}-os2knix.diff
|
|---|
| 57 |
|
|---|
| 58 | %if %{main_python}
|
|---|
| 59 | Obsoletes: Distutils
|
|---|
| 60 | Provides: Distutils
|
|---|
| 61 | Obsoletes: python2
|
|---|
| 62 | Provides: python2 = %{version}
|
|---|
| 63 | Obsoletes: python-elementtree <= 1.2.6
|
|---|
| 64 | Obsoletes: python-sqlite < 2.3.2
|
|---|
| 65 | Provides: python-sqlite = 2.3.2
|
|---|
| 66 | Obsoletes: python-ctypes < 1.0.1
|
|---|
| 67 | Provides: python-ctypes = 1.0.1
|
|---|
| 68 | Obsoletes: python-hashlib < 20081120
|
|---|
| 69 | Provides: python-hashlib = 20081120
|
|---|
| 70 | Obsoletes: python-uuid < 1.31
|
|---|
| 71 | Provides: python-uuid = 1.31
|
|---|
| 72 | %endif
|
|---|
| 73 |
|
|---|
| 74 | # YD unix adds this automatically by parsing elf binaries
|
|---|
| 75 | Requires: %{name}-libs = %{version}-%{release}
|
|---|
| 76 | Requires: pthread
|
|---|
| 77 | Requires: gettext-libs
|
|---|
| 78 |
|
|---|
| 79 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|---|
| 80 | #BuildRequires: readline-devel, openssl-devel, gmp-devel
|
|---|
| 81 | BuildRequires: readline-devel, openssl-devel
|
|---|
| 82 | #BuildRequires: gdbm-devel, zlib-devel, expat-devel
|
|---|
| 83 | BuildRequires: ncurses-devel, zlib-devel
|
|---|
| 84 | #BuildRequires: libGL-devel tk tix gcc-c++ libX11-devel glibc-devel
|
|---|
| 85 | #BuildRequires: tar findutils pkgconfig tcl-devel tk-devel
|
|---|
| 86 | BuildRequires: bzip2 pkgconfig tcl-devel
|
|---|
| 87 | #BuildRequires: tix-devel
|
|---|
| 88 | BuildRequires: bzip2-devel sqlite-devel
|
|---|
| 89 | #BuildRequires: autoconf
|
|---|
| 90 | BuildRequires: db4-devel >= 4.8
|
|---|
| 91 | #BuildRequires: libffi-devel
|
|---|
| 92 | %if 0%{?with_valgrind}
|
|---|
| 93 | BuildRequires: valgrind-devel
|
|---|
| 94 | %endif
|
|---|
| 95 |
|
|---|
| 96 | %if 0%{?with_systemtap}
|
|---|
| 97 | BuildRequires: systemtap-sdt-devel
|
|---|
| 98 | %global tapsetdir /usr/share/systemtap/tapset
|
|---|
| 99 | %endif
|
|---|
| 100 |
|
|---|
| 101 | URL: http://www.python.org/
|
|---|
| 102 |
|
|---|
| 103 | %description
|
|---|
| 104 | Python is an interpreted, interactive, object-oriented programming
|
|---|
| 105 | language often compared to Tcl, Perl, Scheme or Java. Python includes
|
|---|
| 106 | modules, classes, exceptions, very high level dynamic data types and
|
|---|
| 107 | dynamic typing. Python supports interfaces to many system calls and
|
|---|
| 108 | libraries, as well as to various windowing systems (X11, Motif, Tk,
|
|---|
| 109 | Mac and MFC).
|
|---|
| 110 |
|
|---|
| 111 | Programmers can write new built-in modules for Python in C or C++.
|
|---|
| 112 | Python can be used as an extension language for applications that need
|
|---|
| 113 | a programmable interface. This package contains most of the standard
|
|---|
| 114 | Python modules, as well as modules for interfacing to the Tix widget
|
|---|
| 115 | set for Tk and RPM.
|
|---|
| 116 |
|
|---|
| 117 | Note that documentation for Python is provided in the python-docs
|
|---|
| 118 | package.
|
|---|
| 119 |
|
|---|
| 120 | %package libs
|
|---|
| 121 | Summary: The libraries for python runtime
|
|---|
| 122 | Group: Applications/System
|
|---|
| 123 | Requires: %{name} = %{version}-%{release}
|
|---|
| 124 | # Needed for ctypes, to load libraries, worked around for Live CDs size
|
|---|
| 125 | # Requires: binutils
|
|---|
| 126 |
|
|---|
| 127 | %description libs
|
|---|
| 128 | The python interpreter can be embedded into applications wanting to
|
|---|
| 129 | use python as an embedded scripting language. The python-libs package
|
|---|
| 130 | provides the libraries needed for this.
|
|---|
| 131 |
|
|---|
| 132 | %package devel
|
|---|
| 133 | Summary: The libraries and header files needed for Python development
|
|---|
| 134 | Group: Development/Libraries
|
|---|
| 135 | Requires: %{python}%{?_isa} = %{version}-%{release}
|
|---|
| 136 | # Needed here because of the migration of Makefile from -devel to the main
|
|---|
| 137 | # package
|
|---|
| 138 | Conflicts: %{python} < %{version}-%{release}
|
|---|
| 139 | %if %{main_python}
|
|---|
| 140 | Obsoletes: python2-devel
|
|---|
| 141 | Provides: python2-devel = %{version}-%{release}
|
|---|
| 142 | %endif
|
|---|
| 143 |
|
|---|
| 144 | %description devel
|
|---|
| 145 | The Python programming language's interpreter can be extended with
|
|---|
| 146 | dynamically loaded extensions and can be embedded in other programs.
|
|---|
| 147 | This package contains the header files and libraries needed to do
|
|---|
| 148 | these types of tasks.
|
|---|
| 149 |
|
|---|
| 150 | Install python-devel if you want to develop Python extensions. The
|
|---|
| 151 | python package will also need to be installed. You'll probably also
|
|---|
| 152 | want to install the python-docs package, which contains Python
|
|---|
| 153 | documentation.
|
|---|
| 154 |
|
|---|
| 155 | %package tools
|
|---|
| 156 | Summary: A collection of development tools included with Python
|
|---|
| 157 | Group: Development/Tools
|
|---|
| 158 | Requires: %{name} = %{version}-%{release}
|
|---|
| 159 | Requires: %{tkinter} = %{version}-%{release}
|
|---|
| 160 | %if %{main_python}
|
|---|
| 161 | Obsoletes: python2-tools
|
|---|
| 162 | Provides: python2-tools = %{version}
|
|---|
| 163 | %endif
|
|---|
| 164 |
|
|---|
| 165 | %description tools
|
|---|
| 166 | This package includes several tools to help with the development of Python
|
|---|
| 167 | programs, including IDLE (an IDE with editing and debugging facilities), a
|
|---|
| 168 | color editor (pynche), and a python gettext program (pygettext.py).
|
|---|
| 169 |
|
|---|
| 170 | %package -n %{tkinter}
|
|---|
| 171 | Summary: A graphical user interface for the Python scripting language
|
|---|
| 172 | Group: Development/Languages
|
|---|
| 173 | #BuildRequires: tcl, tk
|
|---|
| 174 | Requires: %{name} = %{version}-%{release}
|
|---|
| 175 | %if %{main_python}
|
|---|
| 176 | Obsoletes: tkinter2
|
|---|
| 177 | Provides: tkinter2 = %{version}
|
|---|
| 178 | %endif
|
|---|
| 179 |
|
|---|
| 180 | %description -n %{tkinter}
|
|---|
| 181 |
|
|---|
| 182 | The Tkinter (Tk interface) program is an graphical user interface for
|
|---|
| 183 | the Python scripting language.
|
|---|
| 184 |
|
|---|
| 185 | You should install the tkinter package if you'd like to use a graphical
|
|---|
| 186 | user interface for Python programming.
|
|---|
| 187 |
|
|---|
| 188 | %package test
|
|---|
| 189 | Summary: The test modules from the main python package
|
|---|
| 190 | Group: Development/Languages
|
|---|
| 191 | Requires: %{name} = %{version}-%{release}
|
|---|
| 192 |
|
|---|
| 193 | %description test
|
|---|
| 194 |
|
|---|
| 195 | The test modules from the main python package: %{name}
|
|---|
| 196 | These have been removed to save space, as they are never or almost
|
|---|
| 197 | never used in production.
|
|---|
| 198 |
|
|---|
| 199 | You might want to install the python-test package if you're developing python
|
|---|
| 200 | code that uses more than just unittest and/or test_support.py.
|
|---|
| 201 |
|
|---|
| 202 | %prep
|
|---|
| 203 | %setup -q -n Python-%{version}
|
|---|
| 204 |
|
|---|
| 205 | %if 0%{?with_systemtap}
|
|---|
| 206 | # Provide an example of usage of the tapset:
|
|---|
| 207 | cp -a %{SOURCE4} .
|
|---|
| 208 | cp -a %{SOURCE5} .
|
|---|
| 209 | %endif # with_systemtap
|
|---|
| 210 |
|
|---|
| 211 | # Ensure that we're using the system copy of various libraries, rather than
|
|---|
| 212 | # copies shipped by upstream in the tarball:
|
|---|
| 213 | # Remove embedded copy of expat:
|
|---|
| 214 | #rm -r Modules/expat || exit 1
|
|---|
| 215 | # Remove embedded copy of libffi:
|
|---|
| 216 | #for SUBDIR in darwin libffi libffi_arm_wince libffi_msvc libffi_osx ; do
|
|---|
| 217 | # rm -r Modules/_ctypes/$SUBDIR || exit 1 ;
|
|---|
| 218 | #done
|
|---|
| 219 | # Remove embedded copy of zlib:
|
|---|
| 220 | #rm -r Modules/zlib || exit 1
|
|---|
| 221 |
|
|---|
| 222 | #
|
|---|
| 223 | # Apply patches:
|
|---|
| 224 | #
|
|---|
| 225 | %patch0 -p1 -b .os2~
|
|---|
| 226 | %patch1 -p1 -b .os2knix~
|
|---|
| 227 |
|
|---|
| 228 | mkdir Lib/plat-os2knix
|
|---|
| 229 |
|
|---|
| 230 | # This shouldn't be necesarry, but is right now (2.2a3)
|
|---|
| 231 | find -name "*~" |xargs rm -f
|
|---|
| 232 |
|
|---|
| 233 | %build
|
|---|
| 234 | CONFIG_SHELL=/bin/sh
|
|---|
| 235 | export CONFIG_SHELL
|
|---|
| 236 | LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 237 | export LDFLAGS
|
|---|
| 238 | LIBS="-lssl -lcrypto -lurpo -lmmap -lpthread"
|
|---|
| 239 | export LIBS
|
|---|
| 240 | %configure \
|
|---|
| 241 | --enable-shared --disable-static \
|
|---|
| 242 | "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
|
|---|
| 243 |
|
|---|
| 244 | make OPT="$CFLAGS" %{?_smp_mflags}
|
|---|
| 245 |
|
|---|
| 246 | %install
|
|---|
| 247 | rm -rf %{buildroot}
|
|---|
| 248 | mkdir -p %{buildroot}%{_prefix} %{buildroot}%{_mandir}
|
|---|
| 249 |
|
|---|
| 250 | make install DESTDIR=%{buildroot}
|
|---|
| 251 |
|
|---|
| 252 | # YD fix binaries
|
|---|
| 253 | cp %{buildroot}%{_bindir}/python.exe %{buildroot}%{_bindir}/python
|
|---|
| 254 | rm -f %{buildroot}%{_bindir}/python%{pybasever_cond}.dll
|
|---|
| 255 |
|
|---|
| 256 | # Junk, no point in putting in -test sub-pkg
|
|---|
| 257 | rm -f %{buildroot}/%{pylibdir}/idlelib/testcode.py*
|
|---|
| 258 |
|
|---|
| 259 | # don't include tests that are run at build time in the package
|
|---|
| 260 | # This is documented, and used: rhbz#387401
|
|---|
| 261 | if /bin/false; then
|
|---|
| 262 | # Move this to -test subpackage.
|
|---|
| 263 | mkdir save_bits_of_test
|
|---|
| 264 | for i in test_support.py __init__.py; do
|
|---|
| 265 | cp -a %{buildroot}/%{pylibdir}/test/$i save_bits_of_test
|
|---|
| 266 | done
|
|---|
| 267 | rm -rf %{buildroot}/%{pylibdir}/test
|
|---|
| 268 | mkdir %{buildroot}/%{pylibdir}/test
|
|---|
| 269 | cp -a save_bits_of_test/* %{buildroot}/%{pylibdir}/test
|
|---|
| 270 | fi
|
|---|
| 271 |
|
|---|
| 272 | #%if %{main_python}
|
|---|
| 273 | #ln -s python %{buildroot}%{_bindir}/python2
|
|---|
| 274 | #%else
|
|---|
| 275 | #mv %{buildroot}%{_bindir}/python %{buildroot}%{_bindir}/%{python}
|
|---|
| 276 | #mv %{buildroot}/%{_mandir}/man1/python.1 %{buildroot}/%{_mandir}/man1/python%{pybasever}.1
|
|---|
| 277 | #%endif
|
|---|
| 278 |
|
|---|
| 279 | # tools
|
|---|
| 280 |
|
|---|
| 281 | mkdir -p ${RPM_BUILD_ROOT}%{site_packages}
|
|---|
| 282 |
|
|---|
| 283 | #gettext
|
|---|
| 284 | install -m755 Tools/i18n/pygettext.py %{buildroot}%{_bindir}/
|
|---|
| 285 | install -m755 Tools/i18n/msgfmt.py %{buildroot}%{_bindir}/
|
|---|
| 286 |
|
|---|
| 287 | # Useful development tools
|
|---|
| 288 | install -m755 -d %{buildroot}%{tools_dir}/scripts
|
|---|
| 289 | install Tools/README %{buildroot}%{tools_dir}/
|
|---|
| 290 | install Tools/scripts/*py %{buildroot}%{tools_dir}/scripts/
|
|---|
| 291 |
|
|---|
| 292 | # Documentation tools
|
|---|
| 293 | install -m755 -d %{buildroot}%{doc_tools_dir}
|
|---|
| 294 | #install -m755 Doc/tools/mkhowto %{buildroot}%{doc_tools_dir}
|
|---|
| 295 |
|
|---|
| 296 | # Useful demo scripts
|
|---|
| 297 | install -m755 -d %{buildroot}%{demo_dir}
|
|---|
| 298 | cp -ar Demo/* %{buildroot}%{demo_dir}
|
|---|
| 299 |
|
|---|
| 300 | # Get rid of crap
|
|---|
| 301 | find %{buildroot}/ -name "*~"|xargs rm -f
|
|---|
| 302 | find %{buildroot}/ -name ".cvsignore"|xargs rm -f
|
|---|
| 303 | find . -name "*~"|xargs rm -f
|
|---|
| 304 | find . -name ".cvsignore"|xargs rm -f
|
|---|
| 305 | #zero length
|
|---|
| 306 | rm -f %{buildroot}%{site_packages}/modulator/Templates/copyright
|
|---|
| 307 |
|
|---|
| 308 | rm -f %{buildroot}%{pylibdir}/LICENSE.txt
|
|---|
| 309 |
|
|---|
| 310 |
|
|---|
| 311 | #make the binaries install side by side with the main python
|
|---|
| 312 | #%if !%{main_python}
|
|---|
| 313 | #pushd %{buildroot}%{_bindir}
|
|---|
| 314 | #mv idle idle%{__python_ver}
|
|---|
| 315 | #mv modulator modulator%{__python_ver}
|
|---|
| 316 | #mv pynche pynche%{__python_ver}
|
|---|
| 317 | #mv pygettext.py pygettext%{__python_ver}.py
|
|---|
| 318 | #mv msgfmt.py msgfmt%{__python_ver}.py
|
|---|
| 319 | #mv smtpd.py smtpd%{__python_ver}.py
|
|---|
| 320 | #mv pydoc pydoc%{__python_ver}
|
|---|
| 321 | #popd
|
|---|
| 322 | #%endif
|
|---|
| 323 |
|
|---|
| 324 | # Fix for bug #136654
|
|---|
| 325 | rm -f %{buildroot}%{pylibdir}/email/test/data/audiotest.au %{buildroot}%{pylibdir}/test/audiotest.au
|
|---|
| 326 |
|
|---|
| 327 | %global _pyconfig_h pyconfig.h
|
|---|
| 328 |
|
|---|
| 329 | # Get rid of egg-info files (core python modules are installed through rpms)
|
|---|
| 330 | rm %{buildroot}%{pylibdir}/*.egg-info
|
|---|
| 331 |
|
|---|
| 332 | %clean
|
|---|
| 333 | rm -fr %{buildroot}
|
|---|
| 334 |
|
|---|
| 335 | #%post libs -p /sbin/ldconfig
|
|---|
| 336 |
|
|---|
| 337 | #%postun libs -p /sbin/ldconfig
|
|---|
| 338 |
|
|---|
| 339 |
|
|---|
| 340 | %post
|
|---|
| 341 | if [ "$1" = 1 ] ; then
|
|---|
| 342 | #execute only on first install
|
|---|
| 343 | %cube {DELLINE "SET PYTHONPATH="} c:\config.sys > NUL
|
|---|
| 344 | %cube {DELLINE "SET PYTHONHOME="} c:\config.sys > NUL
|
|---|
| 345 | fi
|
|---|
| 346 |
|
|---|
| 347 |
|
|---|
| 348 | %files
|
|---|
| 349 | %defattr(-, root, root, -)
|
|---|
| 350 | %doc LICENSE README
|
|---|
| 351 | %{_bindir}/pydoc*
|
|---|
| 352 | %{_bindir}/%{python}
|
|---|
| 353 | %{_bindir}/%{python}.exe
|
|---|
| 354 | %if %{main_python}
|
|---|
| 355 | #%{_bindir}/python2
|
|---|
| 356 | %endif
|
|---|
| 357 | %{_bindir}/python%{pybasever}.exe
|
|---|
| 358 | %{_mandir}/*/*
|
|---|
| 359 |
|
|---|
| 360 | %dir %{pylibdir}
|
|---|
| 361 | %dir %{dynload_dir}
|
|---|
| 362 | %{dynload_dir}/Python-%{version}-py%{pybasever}.egg-info
|
|---|
| 363 | %{dynload_dir}/_bisect.pyd
|
|---|
| 364 | %{dynload_dir}/_bsddb.pyd
|
|---|
| 365 | %{dynload_dir}/_bytesio.pyd
|
|---|
| 366 | %{dynload_dir}/_codecs_.pyd
|
|---|
| 367 | #%{dynload_dir}/_codecs_hk.pyd
|
|---|
| 368 | #%{dynload_dir}/_codecs_iso2022.pyd
|
|---|
| 369 | #%{dynload_dir}/_codecs_jp.pyd
|
|---|
| 370 | #%{dynload_dir}/_codecs_kr.pyd
|
|---|
| 371 | #%{dynload_dir}/_codecs_tw.pyd
|
|---|
| 372 | %{dynload_dir}/_collect.pyd
|
|---|
| 373 | %{dynload_dir}/_csv.pyd
|
|---|
| 374 | #%{dynload_dir}/_ctypes.pyd
|
|---|
| 375 | %{dynload_dir}/_curses.pyd
|
|---|
| 376 | %{dynload_dir}/_curses_.pyd
|
|---|
| 377 | %{dynload_dir}/_element.pyd
|
|---|
| 378 | %{dynload_dir}/_fileio.pyd
|
|---|
| 379 | %{dynload_dir}/_functoo.pyd
|
|---|
| 380 | %{dynload_dir}/_hashlib.pyd
|
|---|
| 381 | %{dynload_dir}/_heapq.pyd
|
|---|
| 382 | %{dynload_dir}/_hotshot.pyd
|
|---|
| 383 | %{dynload_dir}/_json.pyd
|
|---|
| 384 | %{dynload_dir}/_locale.pyd
|
|---|
| 385 | %{dynload_dir}/_lsprof.pyd
|
|---|
| 386 | #%{dynload_dir}/_md5.pyd
|
|---|
| 387 | %{dynload_dir}/_multiby.pyd
|
|---|
| 388 | %{dynload_dir}/_multipr.pyd
|
|---|
| 389 | %{dynload_dir}/_random.pyd
|
|---|
| 390 | #%{dynload_dir}/_sha256.pyd
|
|---|
| 391 | #%{dynload_dir}/_sha512.pyd
|
|---|
| 392 | #%{dynload_dir}/_sha.pyd
|
|---|
| 393 | %{dynload_dir}/_socket.pyd
|
|---|
| 394 | %{dynload_dir}/_sqlite3.pyd
|
|---|
| 395 | %{dynload_dir}/_ssl.pyd
|
|---|
| 396 | %{dynload_dir}/_struct.pyd
|
|---|
| 397 | %{dynload_dir}/_weakref.pyd
|
|---|
| 398 | %{dynload_dir}/array.pyd
|
|---|
| 399 | %{dynload_dir}/audioop.pyd
|
|---|
| 400 | %{dynload_dir}/binascii.pyd
|
|---|
| 401 | %{dynload_dir}/bz2.pyd
|
|---|
| 402 | %{dynload_dir}/cPickle.pyd
|
|---|
| 403 | %{dynload_dir}/cStringI.pyd
|
|---|
| 404 | %{dynload_dir}/cmath.pyd
|
|---|
| 405 | %{dynload_dir}/crypt.pyd
|
|---|
| 406 | %{dynload_dir}/datetime.pyd
|
|---|
| 407 | %{dynload_dir}/dbm.pyd
|
|---|
| 408 | %{dynload_dir}/dl.pyd
|
|---|
| 409 | %{dynload_dir}/fcntl.pyd
|
|---|
| 410 | %{dynload_dir}/future_b.pyd
|
|---|
| 411 | #%{dynload_dir}/gdbm.pyd
|
|---|
| 412 | %{dynload_dir}/grp.pyd
|
|---|
| 413 | %{dynload_dir}/imageop.pyd
|
|---|
| 414 | %{dynload_dir}/itertool.pyd
|
|---|
| 415 | #%{dynload_dir}/linuxaudiodev.pyd
|
|---|
| 416 | %{dynload_dir}/math.pyd
|
|---|
| 417 | #%{dynload_dir}/mmap.pyd
|
|---|
| 418 | #%{dynload_dir}/nis.pyd
|
|---|
| 419 | %{dynload_dir}/operator.pyd
|
|---|
| 420 | #%{dynload_dir}/ossaudiodev.pyd
|
|---|
| 421 | %{dynload_dir}/parser.pyd
|
|---|
| 422 | %{dynload_dir}/pyexpat.pyd
|
|---|
| 423 | %{dynload_dir}/readline.pyd
|
|---|
| 424 | %{dynload_dir}/resource.pyd
|
|---|
| 425 | %{dynload_dir}/select.pyd
|
|---|
| 426 | #%{dynload_dir}/spwd.pyd
|
|---|
| 427 | %{dynload_dir}/strop.pyd
|
|---|
| 428 | %{dynload_dir}/syslog.pyd
|
|---|
| 429 | %{dynload_dir}/termios.pyd
|
|---|
| 430 | %{dynload_dir}/time.pyd
|
|---|
| 431 | #%{dynload_dir}/timing.pyd
|
|---|
| 432 | %{dynload_dir}/unicoded.pyd
|
|---|
| 433 | #%{dynload_dir}/xxsubtype.pyd
|
|---|
| 434 | %{dynload_dir}/zlib.pyd
|
|---|
| 435 |
|
|---|
| 436 | %dir %{site_packages}
|
|---|
| 437 | %{site_packages}/README
|
|---|
| 438 | %{pylibdir}/*.py*
|
|---|
| 439 | %{pylibdir}/*.doc
|
|---|
| 440 | %dir %{pylibdir}/bsddb
|
|---|
| 441 | %{pylibdir}/bsddb/*.py*
|
|---|
| 442 | %{pylibdir}/compiler
|
|---|
| 443 | %dir %{pylibdir}/ctypes
|
|---|
| 444 | %{pylibdir}/ctypes/*.py*
|
|---|
| 445 | %{pylibdir}/ctypes/macholib
|
|---|
| 446 | %{pylibdir}/curses
|
|---|
| 447 | %dir %{pylibdir}/distutils
|
|---|
| 448 | %{pylibdir}/distutils/*.py*
|
|---|
| 449 | %{pylibdir}/distutils/README
|
|---|
| 450 | %{pylibdir}/distutils/command
|
|---|
| 451 | %dir %{pylibdir}/email
|
|---|
| 452 | %{pylibdir}/email/*.py*
|
|---|
| 453 | %{pylibdir}/email/mime
|
|---|
| 454 | %{pylibdir}/encodings
|
|---|
| 455 | %{pylibdir}/hotshot
|
|---|
| 456 | %{pylibdir}/idlelib
|
|---|
| 457 | %dir %{pylibdir}/json
|
|---|
| 458 | %{pylibdir}/json/*.py*
|
|---|
| 459 | %{pylibdir}/lib2to3
|
|---|
| 460 | %{pylibdir}/logging
|
|---|
| 461 | %{pylibdir}/multiprocessing
|
|---|
| 462 | %{pylibdir}/plat-os2knix
|
|---|
| 463 | %dir %{pylibdir}/sqlite3
|
|---|
| 464 | %{pylibdir}/sqlite3/*.py*
|
|---|
| 465 | %dir %{pylibdir}/test
|
|---|
| 466 | %{pylibdir}/test/test_support.py*
|
|---|
| 467 | %{pylibdir}/test/__init__.py*
|
|---|
| 468 | %{pylibdir}/wsgiref
|
|---|
| 469 | %{pylibdir}/xml
|
|---|
| 470 |
|
|---|
| 471 | # "Makefile" and the config-32/64.h file are needed by
|
|---|
| 472 | # distutils/sysconfig.py:_init_posix(), so we include them in the core
|
|---|
| 473 | # package, along with their parent directories (bug 531901):
|
|---|
| 474 | %dir %{pylibdir}/config
|
|---|
| 475 | %{pylibdir}/config/Makefile
|
|---|
| 476 | %dir %{_includedir}/python%{pybasever}
|
|---|
| 477 | %{_includedir}/python%{pybasever}/%{_pyconfig_h}
|
|---|
| 478 |
|
|---|
| 479 | %files libs
|
|---|
| 480 | %defattr(-,root,root,-)
|
|---|
| 481 | #%doc LICENSE README
|
|---|
| 482 | %{_libdir}/python%{pybasever_cond}.dll
|
|---|
| 483 | %if 0%{?with_systemtap}
|
|---|
| 484 | %{tapsetdir}/%{libpython_stp}
|
|---|
| 485 | %doc systemtap-example.stp pyfuntop.stp
|
|---|
| 486 | %endif
|
|---|
| 487 |
|
|---|
| 488 | %files devel
|
|---|
| 489 | %defattr(-,root,root,-)
|
|---|
| 490 | %{pylibdir}/config/*
|
|---|
| 491 | %exclude %{pylibdir}/config/Makefile
|
|---|
| 492 | %{_includedir}/python%{pybasever}/*.h
|
|---|
| 493 | %exclude %{_includedir}/python%{pybasever}/%{_pyconfig_h}
|
|---|
| 494 | %doc Misc/README.valgrind Misc/valgrind-python.supp Misc/gdbinit
|
|---|
| 495 | %if %{main_python}
|
|---|
| 496 | %{_bindir}/python-config
|
|---|
| 497 | %endif
|
|---|
| 498 | %{_bindir}/python%{pybasever}-config
|
|---|
| 499 | #%{_libdir}/libpython%{pybasever}.pyd
|
|---|
| 500 | %{_libdir}/python%{pybasever}_dll.a
|
|---|
| 501 |
|
|---|
| 502 | %files tools
|
|---|
| 503 | %defattr(-,root,root,755)
|
|---|
| 504 | #%doc Tools/modulator/README.modulator
|
|---|
| 505 | #%doc Tools/pynche/README.pynche
|
|---|
| 506 | #%{site_packages}/modulator
|
|---|
| 507 | #%{site_packages}/pynche
|
|---|
| 508 | %{_bindir}/smtpd*.py*
|
|---|
| 509 | %{_bindir}/2to3*
|
|---|
| 510 | %{_bindir}/idle*
|
|---|
| 511 | #%{_bindir}/modulator*
|
|---|
| 512 | #%{_bindir}/pynche*
|
|---|
| 513 | %{_bindir}/pygettext*.py*
|
|---|
| 514 | %{_bindir}/msgfmt*.py*
|
|---|
| 515 | %{tools_dir}
|
|---|
| 516 | %{demo_dir}
|
|---|
| 517 | %{pylibdir}/Doc
|
|---|
| 518 |
|
|---|
| 519 | %files -n %{tkinter}
|
|---|
| 520 | %defattr(-,root,root,755)
|
|---|
| 521 | %{pylibdir}/lib-tk
|
|---|
| 522 | #%{dynload_dir}/_tkinter.pyd
|
|---|
| 523 |
|
|---|
| 524 | %files test
|
|---|
| 525 | %defattr(-, root, root, -)
|
|---|
| 526 | %{pylibdir}/bsddb/test
|
|---|
| 527 | %{pylibdir}/ctypes/test
|
|---|
| 528 | %{pylibdir}/distutils/tests
|
|---|
| 529 | %{pylibdir}/email/test
|
|---|
| 530 | %{pylibdir}/json/tests
|
|---|
| 531 | %{pylibdir}/sqlite3/test
|
|---|
| 532 | %{pylibdir}/test/*
|
|---|
| 533 | # These two are shipped in the main subpackage:
|
|---|
| 534 | %exclude %{pylibdir}/test/test_support.py*
|
|---|
| 535 | %exclude %{pylibdir}/test/__init__.py*
|
|---|
| 536 | %{dynload_dir}/_ctypes_.pyd
|
|---|
| 537 | %{dynload_dir}/_testcap.pyd
|
|---|
| 538 |
|
|---|
| 539 | # We put the debug-gdb.py file inside /usr/lib/debug to avoid noise from
|
|---|
| 540 | # ldconfig (rhbz:562980).
|
|---|
| 541 | #
|
|---|
| 542 | # The /usr/lib/rpm/redhat/macros defines %__debug_package to use
|
|---|
| 543 | # debugfiles.list, and it appears that everything below /usr/lib/debug and
|
|---|
| 544 | # (/usr/src/debug) gets added to this file (via LISTFILES) in
|
|---|
| 545 | # /usr/lib/rpm/find-debuginfo.sh
|
|---|
| 546 | #
|
|---|
| 547 | # Hence by installing it below /usr/lib/debug we ensure it is added to the
|
|---|
| 548 | # -debuginfo subpackage
|
|---|
| 549 | # (if it doesn't, then the rpmbuild ought to fail since the debug-gdb.py
|
|---|
| 550 | # payload file would be unpackaged)
|
|---|
| 551 |
|
|---|
| 552 | %changelog
|
|---|