python.spec
author hh150184
Tue, 24 Jan 2006 11:56:37 +0000
branchgnome-2-12
changeset 19207 b59a653a3329
parent 6200 19ff8721b8f2
child 6923 45fbffcf5f44
permissions -rw-r--r--
* evolution-jescs.spec: Bump to 2.4.4, Remove unused define evolution_imagesdir and evolution_libsdir, Remove hard code 1.2, 2.4. * Solaris/SUNWevolution-jescs.spec: Remove *.la under /usr/lib when install, s/evolution-data-server-1.2/evolution-data-server-*/g.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5560
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
     1
#
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
     2
# spec file for package python
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
     3
#
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
     4
# includes module(s): Python
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
     5
#
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
     6
# Copyright (c) 2004 Sun Microsystems, Inc.
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
     7
# This file and all modifications and additions to the pristine
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
     8
# package are under the same license as the package itself.
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
     9
#
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    10
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    11
%define majorver 2.4
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    12
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    13
Name:         python
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    14
License:      Python
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    15
Group:        Development/Languages/Python
6186
9c7b302cef1a * brltty.spec: Bump to 3.7.
dc144907
parents: 5563
diff changeset
    16
Version:      2.4.2
5560
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    17
Release:      1
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    18
Distribution: Java Desktop System
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    19
Vendor:       Sun Microsystems, Inc.
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    20
Summary:      The Python interpreter, libraries and utilities
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    21
Source:       http://www.python.org/ftp/python/%{version}/Python-%{version}.tar.bz2
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    22
URL:          http://www.python.org
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    23
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    24
Docdir:       %{_defaultdocdir}/doc
5563
5b5609b51a12 * Change Autoreqprov from off to on.
dc144907
parents: 5560
diff changeset
    25
Autoreqprov:  off
5560
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    26
Prereq:       /sbin/ldconfig
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    27
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    28
%description 
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    29
Python is an interpreted, object-oriented programming language, and is
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    30
often compared to Tcl, Perl, Scheme, or Java.  You can find an overview
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    31
of Python in the documentation and tutorials included in the python-doc
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    32
(HTML) or python-doc-pdf (PDF) packages.
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    33
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    34
If you want to install third party modules using distutils, you need to
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    35
install python-devel package.
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    36
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    37
%package devel
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    38
Summary:      Include files and libraries mandatory for building Python modules.
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    39
Group:        Development/Languages/Python
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    40
Requires:     %{name} >= %{version}
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    41
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    42
%description devel
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    43
The Python programming language's interpreter can be extended with
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    44
dynamically loaded extensions and can be embedded in other programs.
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    45
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    46
This package contains header files, a static library, and development
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    47
tools for building Python modules, extending the Python interpreter or
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    48
embedding Python in applications.
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    49
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    50
%package tk
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    51
Summary:      TkInter - Python Tk interface
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    52
Group:        Development/Libraries/Python
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    53
Requires:     %{name} >= %{version}
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    54
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    55
%description tk
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    56
Python interface to Tk. Tk is the GUI toolkit that comes with Tcl.
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    57
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    58
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    59
%package xml
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    60
Summary:      Python XML interface
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    61
Group:        Development/Libraries/Python
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    62
Requires:     %{name} >= %{version}
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    63
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    64
%description xml
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    65
The expat-module is a Python interface to expat XML parser.
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    66
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    67
%prep
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    68
%setup -n Python-%{version}
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    69
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    70
%build
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    71
%ifos linux
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    72
if [ -x /usr/bin/getconf ]; then
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    73
  CPUS=`getconf _NPROCESSORS_ONLN`
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    74
fi
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    75
%else
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    76
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    77
%endif
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    78
if test "x$CPUS" = "x" -o $CPUS = 0; then
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    79
    CPUS=1
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    80
fi
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    81
export RPM_OPT_FLAGS="$CFLAGS"
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    82
./configure --prefix=%{_prefix} --exec-prefix=%{_prefix} --mandir=%{_mandir}
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    83
make -j$CPUS
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    84
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    85
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    86
%install
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    87
make install DESTDIR=$RPM_BUILD_ROOT
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    88
6193
011617068c65 2005-10-27 Laszlo Peter <[email protected]>
laca
parents: 6186
diff changeset
    89
# search for vendor packages in /usr/lib/python<version>/vendor-packages
011617068c65 2005-10-27 Laszlo Peter <[email protected]>
laca
parents: 6186
diff changeset
    90
echo "import site; site.addsitedir('%{_libdir}/python%{majorver}/vendor-packages')" \
011617068c65 2005-10-27 Laszlo Peter <[email protected]>
laca
parents: 6186
diff changeset
    91
    > $RPM_BUILD_ROOT%{_libdir}/python%{majorver}/site-packages/vendor-packages.pth
011617068c65 2005-10-27 Laszlo Peter <[email protected]>
laca
parents: 6186
diff changeset
    92
mkdir -p $RPM_BUILD_ROOT%{_libdir}/python%{majorver}/vendor-packages
5560
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    93
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    94
%clean
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    95
rm -rf $RPM_BUILD_ROOT
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    96
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    97
%files
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    98
%defattr(-, root, root)
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
    99
%{_bindir}
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
   100
%{_libdir}/python%{majorver}/LICENSE.txt
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
   101
%{_libdir}/python%{majorver}/*.py*
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
   102
%{_libdir}/python%{majorver}/*.doc
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
   103
%{_libdir}/python%{majorver}/bsddb
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
   104
%{_libdir}/python%{majorver}/compiler
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
   105
%{_libdir}/python%{majorver}/curses
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
   106
%{_libdir}/python%{majorver}/lib-dynload
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
   107
%{_libdir}/python%{majorver}/email
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
   108
%{_libdir}/python%{majorver}/encodings
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
   109
%{_libdir}/python%{majorver}/hotshot
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
   110
%{_libdir}/python%{majorver}/idlelib
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
   111
%{_libdir}/python%{majorver}/lib-old
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
   112
%{_libdir}/python%{majorver}/logging
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
   113
%{_libdir}/python%{majorver}/plat-linux2
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
   114
%{_libdir}/python%{majorver}/site-packages
6193
011617068c65 2005-10-27 Laszlo Peter <[email protected]>
laca
parents: 6186
diff changeset
   115
%dir %{_libdir}/python%{majorver}/vendor-packages
5560
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
   116
%{_mandir}
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
   117
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
   118
%files devel
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
   119
%defattr(-, root, root)
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
   120
%{_includedir}
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
   121
%{_libdir}/python%{majorver}/config
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
   122
%{_libdir}/python%{majorver}/distutils
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
   123
%{_libdir}/python%{majorver}/test
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
   124
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
   125
%files tk
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
   126
%defattr(-, root, root)
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
   127
%{_libdir}/python%{majorver}/lib-tk
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
   128
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
   129
%files xml
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
   130
%defattr(-, root, root)
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
   131
%{_libdir}/python%{majorver}/xml
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
   132
1425256700b6 * python.spec: Linux spec file for the Python interpreter.
dc144907
parents:
diff changeset
   133
%changelog
6200
19ff8721b8f2 add %changelog entries (:
laca
parents: 6193
diff changeset
   134
* Thu Oct 27 2005 - [email protected]
19ff8721b8f2 add %changelog entries (:
laca
parents: 6193
diff changeset
   135
- add vendor-packages dir
19ff8721b8f2 add %changelog entries (:
laca
parents: 6193
diff changeset
   136
- add a pth file to site-packages that tells python to search for
19ff8721b8f2 add %changelog entries (:
laca
parents: 6193
diff changeset
   137
  modules in the vendor-packages directory too
19ff8721b8f2 add %changelog entries (:
laca
parents: 6193
diff changeset
   138
6186
9c7b302cef1a * brltty.spec: Bump to 3.7.
dc144907
parents: 5563
diff changeset
   139
* Wed Oct 26 2005 - [email protected]
9c7b302cef1a * brltty.spec: Bump to 3.7.
dc144907
parents: 5563
diff changeset
   140
- Bump to 2.4.2.
9c7b302cef1a * brltty.spec: Bump to 3.7.
dc144907
parents: 5563
diff changeset
   141
5563
5b5609b51a12 * Change Autoreqprov from off to on.
dc144907
parents: 5560
diff changeset
   142
* Tue Aug 23 2005 - [email protected]
5b5609b51a12 * Change Autoreqprov from off to on.
dc144907
parents: 5560
diff changeset
   143
- Change Autoreqprov from on to off.
5b5609b51a12 * Change Autoreqprov from off to on.
dc144907
parents: 5560
diff changeset
   144
5b5609b51a12 * Change Autoreqprov from off to on.
dc144907
parents: 5560
diff changeset
   145
* Thu Aug 18 2005 - [email protected]
5b5609b51a12 * Change Autoreqprov from off to on.
dc144907
parents: 5560
diff changeset
   146
- Initial version.