author | rohinis |
Tue, 29 Nov 2011 17:32:55 +0000 | |
branch | s11express-2010-11 |
changeset 22234 | c23e64da3e06 |
parent 20077 | 57e492d904be |
permissions | -rw-r--r-- |
14736 | 1 |
# |
2 |
# spec file for package SUNWPython26 |
|
3 |
# |
|
4 |
# includes module(s): Python |
|
5 |
# |
|
17766 | 6 |
# Copyright 2010 Sun Microsystems, Inc. |
14736 | 7 |
# This file and all modifications and additions to the pristine |
8 |
# package are under the same license as the package itself. |
|
9 |
# |
|
16434 | 10 |
%define owner laca |
15847 | 11 |
# bugdb: http://bugs.python.org/issue |
14736 | 12 |
# |
13 |
%include Solaris.inc |
|
14 |
||
16425 | 15 |
%define OSR 7954:2.4.4 |
16 |
||
14736 | 17 |
Name: SUNWPython26 |
17937
664c0536875a
Added tags IPS_package_name and Meta(info.consolidation)
davelam
parents:
17902
diff
changeset
|
18 |
IPS_package_name: runtime/python-26 |
664c0536875a
Added tags IPS_package_name and Meta(info.consolidation)
davelam
parents:
17902
diff
changeset
|
19 |
Meta(info.classification): %{classification_prefix}:Development/Python |
14736 | 20 |
Summary: The Python interpreter, libraries and utilities |
17126 | 21 |
Version: 2.6.4 |
17842 | 22 |
License: Python |
23 |
Vendor: Python.org |
|
14736 | 24 |
%define majmin 2.6 |
25 |
SUNW_BaseDir: %{_basedir} |
|
26 |
SUNW_Copyright: %{name}.copyright |
|
27 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
28 |
Source: http://www.python.org/ftp/python/%{version}/Python-%{version}.tar.bz2 |
|
29 |
# test script for the ucred module implemented in Python26-xx-ucred.diff |
|
30 |
Source1: ucredtest.py |
|
31 |
# test script for the dlpi module implemented in Python26-xx-dlpi.diff |
|
32 |
Source2: dlpitest.py |
|
16843 | 33 |
# test script for the rbac and privileges modules implemented in |
34 |
# Python-xx-privrbac.diff |
|
35 |
Source3: privrbactest.py |
|
14736 | 36 |
# date:2005-10-27 owner:laca type:bug |
37 |
# upstreamable |
|
38 |
Patch1: Python26-01-solaris-lib-dirs.diff |
|
39 |
# date:2005-10-30 owner:laca type:feature |
|
40 |
Patch2: Python26-02-pycc.diff |
|
41 |
# date:2006-09-18 owner:laca type:feature |
|
42 |
Patch3: Python26-03-distutils-pycc.diff |
|
43 |
# date:2006-09-18 owner:laca type:bug |
|
44 |
# upstreamable |
|
45 |
Patch4: Python26-04-distutils-log.diff |
|
46 |
# date:2006-09-18 owner:laca type:feature |
|
47 |
# maybe upstreamable |
|
48 |
Patch5: Python26-05-isalibs.diff |
|
49 |
# date:2006-09-18 owner:laca type:bug bugster:6463378 |
|
50 |
# maybe upstreamable |
|
51 |
Patch6: Python26-06-write_compiled_module-atomic.diff |
|
52 |
# date:2007-03-23 owner:laca type:feature |
|
53 |
# written by John.Levon ported to 2.5 by Peter C Norton |
|
54 |
Patch7: Python26-07-dtrace.diff |
|
55 |
# date:2008-05-23 owner:laca type:bug |
|
56 |
# upstreamable |
|
57 |
Patch8: Python26-08-ctypes.diff |
|
58 |
# date:2008-04-10 owner:laca type:feature bugster:6686506 |
|
59 |
# 2008/243 Python interface to ucred_get(3C)/getpeercred(3C) |
|
60 |
# written by [email protected] |
|
61 |
# maybe upstreamable |
|
62 |
Patch9: Python26-09-ucred.diff |
|
63 |
# date:2008-06-06 owner:laca type:bug bugster:6614467 bugid:837046 |
|
64 |
Patch10: Python26-10-gethostname.diff |
|
65 |
# date:2008-08-28 owner:laca type:feature |
|
66 |
# PSARC/2008/514 Python interface to dlpi(7P) |
|
67 |
# written by [email protected] |
|
68 |
Patch11: Python26-11-dlpi.diff |
|
14842 | 69 |
# date:2009-01-06 owner:fujiwara type:feature bugster:6776575 |
14975 | 70 |
Patch12: Python26-12-encoding-alias.diff |
14969 | 71 |
# date:2009-01-23 owner:laca type:bug |
72 |
Patch13: Python26-13-cflags.diff |
|
15372 | 73 |
# date:2009-02-18 owner:wangke type:bug bugid:5289 |
15136 | 74 |
Patch14: Python26-14-ctypes-util-find-library.diff |
16428 | 75 |
# date:2009-08-31 owner:laca type:bug bugster:6816108 |
76 |
Patch15: Python26-15-getcwd.diff |
|
16843 | 77 |
# date:2009-10-12 owner:laca type:feature bugster:6890801 |
78 |
# PSARC/2009/529 Python interface to privileges(5) & rbac(5) |
|
79 |
# written by [email protected] |
|
80 |
Patch16: Python26-16-privrbac.diff |
|
17065 | 81 |
# date:2009-12-01 owner:laca type:bug |
82 |
# netpacket/packet.h on Solaris is incompatible with |
|
83 |
# python's socketmodule.c |
|
84 |
Patch17: Python26-17-netpacket-packet-h.diff |
|
17126 | 85 |
# date:2009-12-02 owner:laca type:bug |
86 |
# enable readline support on Solaris |
|
87 |
Patch18: Python26-18-readline.diff |
|
17199 | 88 |
# date:2009-12-17 owner:laca type:feature bugster:6784248 |
89 |
Patch19: Python26-19-ext-stdio.diff |
|
17766 | 90 |
# date:2010-03-27 owner:laca type:feature bugster:6936333 |
91 |
Patch20: Python26-20-py_db.diff |
|
20077 | 92 |
# date:2010-09-08 owner:gheet type:feature bugster:6853801 |
93 |
Patch21: Python26-21-getpass.diff |
|
22234 | 94 |
# date:2011-11-29 owner:rohinis type:bug bugster:7085446 |
95 |
Patch22: Python26-22-audio.diff |
|
14736 | 96 |
|
97 |
%include default-depend.inc |
|
98 |
BuildRequires: SUNWTk |
|
99 |
BuildRequires: SUNWTcl |
|
100 |
BuildRequires: SUNWlexpt |
|
101 |
BuildRequires: SUNWopenssl-include |
|
102 |
BuildRequires: SUNWaudh |
|
103 |
BuildRequires: SUNWlibffi-devel |
|
16419 | 104 |
# for pkg-config: |
105 |
BuildRequires: SUNWgnome-common-devel |
|
18099 | 106 |
Requires: SUNWzlib |
15650 | 107 |
Requires: SUNWopensslr |
14736 | 108 |
Requires: SUNWTk |
109 |
Requires: SUNWTcl |
|
110 |
Requires: SUNWlexpt |
|
111 |
Requires: SUNWxwplt |
|
112 |
Requires: SUNWbzip |
|
17212 | 113 |
Requires: SUNWlibm |
14736 | 114 |
Requires: SUNWlibms |
115 |
Requires: SUNWzlib |
|
116 |
Requires: SUNWsqlite3 |
|
117 |
Requires: SUNWlibffi |
|
16364 | 118 |
Requires: SUNWncurses |
17126 | 119 |
Requires: SUNWgnu-readline |
14736 | 120 |
|
121 |
%package devel |
|
122 |
Summary: %{summary} - development files |
|
123 |
%include default-depend.inc |
|
124 |
Requires: %name |
|
125 |
||
126 |
%prep |
|
127 |
%setup -q -c -n %name-%version |
|
128 |
cd Python-%{version} |
|
129 |
%patch1 -p1 -b .solaris |
|
130 |
%patch2 -p1 |
|
131 |
%patch3 -p1 |
|
132 |
%patch4 -p1 |
|
133 |
%patch5 -p1 -b .isalibs |
|
134 |
%patch6 -p1 |
|
135 |
%patch7 -p1 |
|
136 |
%patch8 -p1 |
|
137 |
%patch9 -p1 |
|
138 |
%patch10 -p1 |
|
139 |
%patch11 -p1 |
|
14842 | 140 |
%patch12 -p1 |
14969 | 141 |
%patch13 -p1 |
15138 | 142 |
%patch14 -p1 |
16428 | 143 |
%patch15 -p1 |
16843 | 144 |
%patch16 -p1 |
16987 | 145 |
%patch17 -p1 |
17126 | 146 |
%patch18 -p1 -b .readline |
17199 | 147 |
%patch19 -p1 |
17766 | 148 |
%patch20 -p1 |
20077 | 149 |
%patch21 -p1 |
22234 | 150 |
%patch22 -p1 |
14736 | 151 |
cd .. |
152 |
||
153 |
echo fixing python binary name/path in python scripts: |
|
154 |
cat > %{_builddir}/%name-%version/is_python_script <<EOF |
|
155 |
#!/bin/sh |
|
156 |
||
157 |
head -1 \$1 | egrep -s '^#!.*python$' |
|
158 |
EOF |
|
159 |
chmod +x %{_builddir}/%name-%version/is_python_script |
|
160 |
||
161 |
cat > %{_builddir}/%name-%version/set_python_interpreter <<EOF |
|
162 |
#!/bin/bash |
|
163 |
interp=\$1 |
|
164 |
fname=\$2 |
|
165 |
line1=\$(head -1 \$fname) |
|
166 |
echo "Changing '\$line1' to '\$interp' (\$fname)"; |
|
167 |
chmod u+w \$fname |
|
168 |
sed -e "1s,^#!.*,#! \$interp," \$fname > \$fname.update-interp && \ |
|
169 |
cat \$fname.update-interp > \$fname && \ |
|
170 |
rm -f \$fname.update-interp || \ |
|
171 |
echo WARNING: set_python_interpreter failed for \$fname |
|
172 |
EOF |
|
173 |
chmod +x %{_builddir}/%name-%version/set_python_interpreter |
|
174 |
||
175 |
find Python-%{version}/Demo \ |
|
176 |
Python-%{version}/Tools \ |
|
177 |
Python-%{version}/Doc \ |
|
178 |
Python-%{version}/Lib \ |
|
179 |
-type f -exec %{_builddir}/%name-%version/is_python_script {} \; \ |
|
180 |
-exec %{_builddir}/%name-%version/set_python_interpreter %{_bindir}/python%{majmin} {} \; |
|
181 |
||
182 |
%ifarch sparcv9 amd64 |
|
183 |
cp -pr Python-%{version} Python-%{version}-64 |
|
184 |
%endif |
|
185 |
||
186 |
%build |
|
187 |
cd Python-%{version} |
|
188 |
autoheader |
|
189 |
autoconf |
|
16428 | 190 |
export CCSHARED="-KPIC" |
14736 | 191 |
export DFLAGS=-32 |
192 |
export CC="$CC -xregs=no%frameptr" |
|
193 |
export CXX="$CXX -xregs=no%frameptr -norunpath -compat=5" |
|
16364 | 194 |
export CFLAGS="-I/usr/include/ncurses %optflags -D_LARGEFILE64_SOURCE `pkg-config --cflags libffi`" |
14736 | 195 |
export CPPFLAGS="-D_LARGEFILE64_SOURCE `pkg-config --cflags libffi`" |
17126 | 196 |
export LDFLAGS="%_ldflags -L. -L/usr/gnu/lib" |
14736 | 197 |
|
198 |
./configure --prefix=%{_prefix} \ |
|
199 |
--libdir=%{_libdir} \ |
|
200 |
--mandir=%{_mandir} \ |
|
201 |
--datadir=%{_datadir} \ |
|
202 |
--infodir=%{_datadir}/info \ |
|
203 |
--enable-shared \ |
|
204 |
--with-system-ffi \ |
|
205 |
--disable-static %{?_with_pydebug} |
|
206 |
||
207 |
# These #define's break the build with gcc and cause problems when |
|
208 |
# building c99 compliant python modules |
|
209 |
perl -pi -e 's/^(#define _POSIX_C_SOURCE.*)/\/* $1 *\//' pyconfig.h |
|
210 |
perl -pi -e 's/^(#define _XOPEN_SOURCE.*)/\/* $1 *\//' pyconfig.h |
|
211 |
perl -pi -e 's/^(#define _XOPEN_SOURCE_EXTENDED.*)/\/* $1 *\//' pyconfig.h |
|
212 |
||
213 |
make |
|
17766 | 214 |
|
215 |
cd py_db |
|
216 |
make OPT="${OPT}" all32 |
|
217 |
cd .. |
|
218 |
||
14736 | 219 |
cd .. |
220 |
||
221 |
%ifarch sparcv9 amd64 |
|
222 |
cd Python-%{version}-64 |
|
223 |
||
224 |
export CXXFLAGS="%cxx_optflags64" |
|
17126 | 225 |
export CFLAGS="-I/usr/include/ncurses %optflags64 -D_LARGEFILE64_SOURCE `PKG_CONFIG_PATH=%{_libdir}/%{_arch64} pkg-config --cflags libffi`" |
226 |
export CPPFLAGS="-I/usr/include/ncurses -D_LARGEFILE64_SOURCE `PKG_CONFIG_PATH=%{_libdir}/%{_arch64} pkg-config --cflags libffi`" |
|
14736 | 227 |
export CC="$CC %optflags64" |
228 |
export CXX="$CXX %cxx_optflags64" |
|
229 |
export DFLAGS=-64 |
|
17126 | 230 |
export LDFLAGS="%_ldflags -L. -L/usr/gnu/lib/%{_arch64}" |
14736 | 231 |
|
232 |
autoheader |
|
233 |
autoconf |
|
234 |
./configure --prefix=%{_prefix} \ |
|
235 |
--libdir=%{_libdir}/%{_arch64} \ |
|
236 |
--mandir=%{_mandir} \ |
|
237 |
--datadir=%{_datadir} \ |
|
238 |
--infodir=%{_datadir}/info \ |
|
239 |
--enable-shared \ |
|
240 |
--with-system-ffi \ |
|
241 |
--disable-static %{?_with_pydebug} |
|
242 |
||
243 |
# These #define's break the build with gcc and cause problems when |
|
244 |
# building c99 compliant python modules |
|
245 |
perl -pi -e 's/^(#define _POSIX_C_SOURCE.*)/\/* $1 *\//' pyconfig.h |
|
246 |
perl -pi -e 's/^(#define _XOPEN_SOURCE.*)/\/* $1 *\//' pyconfig.h |
|
247 |
perl -pi -e 's/^(#define _XOPEN_SOURCE_EXTENDED.*)/\/* $1 *\//' pyconfig.h |
|
248 |
||
249 |
make |
|
17766 | 250 |
cd py_db |
251 |
make OPT="${OPT}" all64 |
|
252 |
cd .. |
|
253 |
||
14736 | 254 |
%endif |
255 |
||
256 |
%install |
|
257 |
rm -rf $RPM_BUILD_ROOT |
|
258 |
%ifarch sparcv9 amd64 |
|
259 |
cd Python-%{version}-64 |
|
260 |
make install DESTDIR=$RPM_BUILD_ROOT BINDIR=%{_bindir}/%{_arch64} |
|
17766 | 261 |
ginstall -m 555 -D py_db/libpython%{majmin}_db_64.so $RPM_BUILD_ROOT%{_libdir}/%{_arch64}/libpython%{majmin}_db.so.1.0 |
262 |
ln -s libpython%{majmin}_db.so.1.0 $RPM_BUILD_ROOT%{_libdir}/%{_arch64}/libpython%{majmin}_db.so |
|
263 |
ginstall -m 555 -D py_db/check_offset64 $RPM_BUILD_ROOT%{_libdir}/python%{majmin}/test/ |
|
14736 | 264 |
rm -f $RPM_BUILD_ROOT%{_bindir}/%{_arch64}/idle |
265 |
rm -f $RPM_BUILD_ROOT%{_bindir}/%{_arch64}/pydoc |
|
266 |
rm -f $RPM_BUILD_ROOT%{_bindir}/%{_arch64}/smtpd.py |
|
267 |
cd .. |
|
268 |
%endif |
|
269 |
||
270 |
cd Python-%{version} |
|
271 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
17766 | 272 |
ginstall -m 555 -D py_db/libpython%{majmin}_db.so $RPM_BUILD_ROOT%{_libdir}/libpython%{majmin}_db.so.1.0 |
273 |
ln -s libpython%{majmin}_db.so.1.0 $RPM_BUILD_ROOT%{_libdir}/libpython%{majmin}_db.so |
|
274 |
ginstall -m 555 -D py_db/check_offset $RPM_BUILD_ROOT%{_libdir}/python%{majmin}/test/ |
|
14736 | 275 |
|
276 |
# FIXME: delete while 2.5 is not the default: |
|
277 |
rm $RPM_BUILD_ROOT%{_bindir}/smtpd.py |
|
278 |
#mkdir -p $RPM_BUILD_ROOT%{_prefix}/demo/python |
|
279 |
#mv $RPM_BUILD_ROOT%{_bindir}/smtpd.py $RPM_BUILD_ROOT%{_prefix}/demo/python/ |
|
280 |
||
281 |
# FIXME: rename temporarily while 2.5 is not the default: |
|
282 |
mv $RPM_BUILD_ROOT%{_mandir}/man1/python.1 $RPM_BUILD_ROOT%{_mandir}/man1/python2.6.1 |
|
283 |
||
284 |
# the pycc script is a C/C++ compiler wrapper to be used in |
|
285 |
# the distutils Makefile |
|
286 |
install -m 755 -D pycc $RPM_BUILD_ROOT%{_libdir}/python%{majmin}/pycc |
|
287 |
(cd $RPM_BUILD_ROOT%{_libdir}/python%{majmin}; ln -s pycc pyCC) |
|
288 |
perl -pi -e 's|^(CC=\s*)/.*$|$1%{_libdir}/python%{majmin}/pycc|' \ |
|
289 |
$RPM_BUILD_ROOT%{_libdir}/python%{majmin}/config/Makefile |
|
290 |
perl -pi -e 's|^(CXX=\s*)/.*$|$1%{_libdir}/python%{majmin}/pyCC|' \ |
|
291 |
$RPM_BUILD_ROOT%{_libdir}/python%{majmin}/config/Makefile |
|
292 |
perl -pi -e 's|^(INSTALL=\s*)/.*$|$1install|' \ |
|
293 |
$RPM_BUILD_ROOT%{_libdir}/python%{majmin}/config/Makefile |
|
294 |
perl -pi -e 's|^(OPT=\s*).*$|$1-DNDEBUG|' \ |
|
295 |
$RPM_BUILD_ROOT%{_libdir}/python%{majmin}/config/Makefile |
|
296 |
perl -pi -e 's|^(RUNSHARED=\s*).*$|$1|' \ |
|
297 |
$RPM_BUILD_ROOT%{_libdir}/python%{majmin}/config/Makefile |
|
298 |
perl -pi -e "s|^(CONFIG_ARGS=\s*.*'CC=)[^']*('.*)\$|\$1%{_libdir}/python%{majmin}/pycc\$2|" \ |
|
299 |
$RPM_BUILD_ROOT%{_libdir}/python%{majmin}/config/Makefile |
|
300 |
perl -pi -e "s|^(CONFIG_ARGS=\s*.*'CFLAGS=)[^']*('.*)\$|\$1\$2|" \ |
|
301 |
$RPM_BUILD_ROOT%{_libdir}/python%{majmin}/config/Makefile |
|
302 |
perl -pi -e "s|^(CONFIG_ARGS=\s*.*'CPP=)[^']*('.*)\$|\$1%{_libdir}/python%{majmin}/pycc -E\$2|" \ |
|
303 |
$RPM_BUILD_ROOT%{_libdir}/python%{majmin}/config/Makefile |
|
304 |
||
305 |
# search for vendor packages in /usr/lib/python<version>/vendor-packages |
|
306 |
echo "import site; site.addsitedir('%{_libdir}/python%{majmin}/vendor-packages')" \ |
|
307 |
> $RPM_BUILD_ROOT%{_libdir}/python%{majmin}/site-packages/vendor-packages.pth |
|
308 |
mkdir -p $RPM_BUILD_ROOT%{_libdir}/python%{majmin}/vendor-packages |
|
309 |
||
310 |
# delete stuff that doesn't build/work on Solaris: |
|
311 |
rm $RPM_BUILD_ROOT%{_libdir}/python?.?/config/lib*.a |
|
312 |
rm -r $RPM_BUILD_ROOT%{_libdir}/python?.?/bsddb |
|
313 |
||
314 |
echo deleting pyo files |
|
315 |
find $RPM_BUILD_ROOT -name '*.pyo' -exec rm {} \; |
|
316 |
||
317 |
install -m 755 %SOURCE1 $RPM_BUILD_ROOT%{_libdir}/python%{majmin}/test/ |
|
318 |
install -m 755 %SOURCE2 $RPM_BUILD_ROOT%{_libdir}/python%{majmin}/test/ |
|
16843 | 319 |
install -m 755 %SOURCE3 $RPM_BUILD_ROOT%{_libdir}/python%{majmin}/test/ |
14736 | 320 |
|
321 |
# FIXME: because python 2.5 is not the default |
|
322 |
rm $RPM_BUILD_ROOT%{_bindir}/idle |
|
323 |
rm $RPM_BUILD_ROOT%{_bindir}/pydoc |
|
324 |
||
325 |
cd $RPM_BUILD_ROOT%{_bindir} |
|
326 |
rm python |
|
327 |
||
328 |
mkdir -p %{base_isa} |
|
329 |
mv python%{majmin} %{base_isa}/isapython%{majmin} |
|
330 |
ln -s %{base_isa}/isapython%{majmin} python%{majmin} |
|
331 |
||
332 |
%ifarch amd64 sparcv9 |
|
333 |
cd %{_arch64} |
|
334 |
rm python |
|
335 |
rm python-config |
|
336 |
mv python%{majmin} isapython%{majmin} |
|
337 |
ln -s isapython%{majmin} python%{majmin} |
|
17126 | 338 |
# this is the default python |
339 |
ln -s python%{majmin} python |
|
14736 | 340 |
# don't need a 64-bit version of this tool |
341 |
rm 2to3 |
|
342 |
cd .. |
|
343 |
%endif |
|
344 |
||
17126 | 345 |
# this becomes a hard link in the pkgmap, due to %hard |
14736 | 346 |
ln -s ../lib/isaexec isapython%{majmin} |
17126 | 347 |
|
348 |
# this is the default python |
|
349 |
ln -s python%{majmin} python |
|
14736 | 350 |
|
351 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
|
352 |
||
16446 | 353 |
# sanity check: verify that some tricky modules were successfully built: |
354 |
for f in _ctypes.so _curses.so _curses_panel.so _elementtree.so \ |
|
355 |
_multiprocessing.so _sqlite3.so _ssl.so _tkinter.so crypt.so \ |
|
17126 | 356 |
pyexpat.so sunaudiodev.so zlib.so dlpi.so ucred.so bz2.so; do |
357 |
test -f $RPM_BUILD_ROOT%{_libdir}/python%{majmin}/lib-dynload/$f || { |
|
358 |
echo ERROR: required module $f missing |
|
359 |
exit 1 |
|
360 |
} |
|
361 |
done |
|
362 |
||
363 |
%ifarch amd64 sparcv9 |
|
364 |
for f in 64/_ctypes.so 64/_curses.so 64/_curses_panel.so 64/_elementtree.so \ |
|
16446 | 365 |
64/_multiprocessing.so 64/_sqlite3.so 64/_ssl.so 64/_tkinter.so \ |
366 |
64/crypt.so 64/dlpi.so 64/ucred.so 64/pyexpat.so 64/bz2.so 64/zlib.so \ |
|
367 |
64/sunaudiodev.so; do |
|
368 |
test -f $RPM_BUILD_ROOT%{_libdir}/python%{majmin}/lib-dynload/$f || { |
|
369 |
echo ERROR: required module $f missing |
|
370 |
exit 1 |
|
371 |
} |
|
372 |
done |
|
17126 | 373 |
%endif |
16446 | 374 |
|
14736 | 375 |
%clean |
376 |
rm -rf $RPM_BUILD_ROOT |
|
377 |
||
378 |
%files |
|
379 |
%defattr (-, root, bin) |
|
380 |
%dir %attr (0755, root, bin) %{_bindir} |
|
381 |
%{_bindir}/python%{majmin} |
|
17126 | 382 |
%{_bindir}/python |
14736 | 383 |
# hard link to isaexec |
384 |
%hard %{_bindir}/isapython%{majmin} |
|
385 |
%dir %attr (0755, root, bin) %{_bindir}/%{base_isa} |
|
386 |
%{_bindir}/%{base_isa}/isapython%{majmin} |
|
387 |
# FIXME: conflicts with python2.4 |
|
388 |
#%{_prefix}/demo/python/smtpd.py |
|
389 |
%dir %attr (0755, root, bin) %{_libdir} |
|
390 |
%{_libdir}/python?.?/LICENSE.txt |
|
391 |
%{_libdir}/python?.?/*.py* |
|
392 |
%{_libdir}/python?.?/*.doc |
|
393 |
%{_libdir}/python?.?/compiler |
|
394 |
%{_libdir}/python?.?/email |
|
395 |
%{_libdir}/python?.?/encodings |
|
396 |
%{_libdir}/python?.?/hotshot |
|
397 |
%{_libdir}/python?.?/idlelib |
|
398 |
%{_libdir}/python?.?/json |
|
399 |
%{_libdir}/python?.?/lib-dynload |
|
400 |
%{_libdir}/python?.?/lib-tk |
|
401 |
%{_libdir}/python?.?/lib-old |
|
402 |
%{_libdir}/python?.?/logging |
|
403 |
%{_libdir}/python?.?/multiprocessing |
|
404 |
%{_libdir}/python?.?/plat-* |
|
405 |
%{_libdir}/python?.?/site-packages |
|
406 |
%{_libdir}/python?.?/vendor-packages |
|
407 |
%{_libdir}/python?.?/xml |
|
408 |
%{_libdir}/python?.?/curses |
|
409 |
%{_libdir}/python?.?/sqlite3 |
|
410 |
%{_libdir}/python?.?/wsgiref |
|
411 |
%{_libdir}/python?.?/wsgiref.egg-info |
|
412 |
%{_libdir}/python?.?/ctypes |
|
413 |
%{_libdir}/lib*.so* |
|
414 |
%ifarch sparcv9 amd64 |
|
415 |
%dir %attr(0755, root, bin) %{_libdir}/%{_arch64} |
|
416 |
%{_libdir}/%{_arch64}/lib*.so* |
|
417 |
%dir %attr(0755, root, bin) %{_bindir}/%{_arch64} |
|
418 |
%{_bindir}/%{_arch64}/python%{majmin} |
|
17126 | 419 |
%{_bindir}/%{_arch64}/python |
14736 | 420 |
%{_bindir}/%{_arch64}/isapython%{majmin} |
421 |
%endif |
|
422 |
%dir %attr(0755, root, sys) %{_datadir} |
|
423 |
%dir %attr(0755, root, bin) %{_mandir} |
|
424 |
%dir %attr(0755, root, bin) %{_mandir}/* |
|
425 |
%{_mandir}/*/* |
|
426 |
%doc(bzip2) -d Python-%{version} README |
|
427 |
%doc -d Python-%{version} LICENSE |
|
14819 | 428 |
%dir %attr (0755, root, other) %{_datadir}/doc |
14736 | 429 |
|
430 |
%files devel |
|
431 |
%defattr (-, root, bin) |
|
432 |
%dir %attr (0755, root, bin) %{_bindir} |
|
433 |
%{_bindir}/python*-config |
|
434 |
%{_bindir}/2to3 |
|
435 |
%ifarch sparcv9 amd64 |
|
436 |
%dir %attr(0755, root, bin) %{_bindir}/%{_arch64} |
|
437 |
%{_bindir}/%{_arch64}/python%{majmin}-config |
|
438 |
%endif |
|
439 |
%dir %attr (0755, root, bin) %{_includedir} |
|
440 |
%{_includedir}/* |
|
441 |
%{_libdir}/python?.?/config |
|
442 |
%{_libdir}/python?.?/distutils |
|
443 |
%{_libdir}/python?.?/lib2to3 |
|
444 |
%{_libdir}/python?.?/test |
|
445 |
%{_libdir}/python?.?/py[cC][cC] |
|
446 |
||
447 |
%changelog |
|
22234 | 448 |
* Tue Nov 29 2011 - [email protected] |
449 |
- add patch audio.diff, fixes 7085446 |
|
18099 | 450 |
* Tue Jun 08 2010 - [email protected] |
451 |
- Updated BuildRequires to fit SourceJuicer. |
|
17241 | 452 |
* Wed Dec 23 2009 - [email protected] |
453 |
- delete duplicate python-config from SUNWPython26, fixes 6912575 |
|
17199 | 454 |
* Thu Dec 17 2009 - [email protected] |
455 |
- add patch ext-stdio.diff, fixes 6784248 |
|
17126 | 456 |
* Thu Dec 3 2009 - [email protected] |
457 |
- bump to 2.6.4 |
|
458 |
- add patch readline.diff for enabling the build of the readline module |
|
459 |
- point /usr/bin/python to python2.6 |
|
17065 | 460 |
* Tue Dec 1 2009 - [email protected] |
461 |
- add a nicer fix for the netpacket/packet.h build issue |
|
16987 | 462 |
* Thu Nov 19 2009 - [email protected] |
463 |
- Add Python26-17-disable-netpacket_h. SUNWpacketh delivers |
|
464 |
/usr/include/netpacket/packet.h which is incompatible with this version of |
|
465 |
Python. Patch disables use of packet.h. |
|
16428 | 466 |
* Mon Aug 31 2009 - [email protected] |
467 |
- add patch getcwd.diff, fixes 6816108 and setting CCSHARED to -KPIC -zignore |
|
468 |
fixes 6871151 |
|
16364 | 469 |
* Mon Aug 24 2009 - [email protected] |
470 |
- bump to 2.6.2 |
|
15372 | 471 |
* Thu Mar 12 2009 - [email protected] |
472 |
- change bugdb to http://bugs.python.org/issue |
|
473 |
- correct the comment format of patch14 |
|
15136 | 474 |
* Wed Feb 18 2009 - [email protected] |
475 |
- add patch14 to make ctypes.util.find_library use crle instead of ldconfig |
|
14969 | 476 |
* Fri Jan 23 2009 - [email protected] |
477 |
- add patch cflags.diff, fixes 6792612 |
|
14849 | 478 |
* Tue Jan 06 2009 - [email protected] |
14842 | 479 |
- add patch encoding-alias.diff for Solaris encodings. |
14736 | 480 |
* Wed Sep 17 2008 - [email protected] |
481 |
- delete the python-config symlink until python 2.5 becomes the default |
|
482 |
- move %{_arch64}/python25-config to -devel |
|
483 |
* Thu Aug 28 2008 - [email protected] |
|
484 |
- add patch dlpi.diff |
|
485 |
* Mon Aug 18 2008 - [email protected] |
|
486 |
- port remaining patches from 2.4 |
|
487 |
* Wed Aug 8 2007 - [email protected] |
|
488 |
- add patch shared-expat.diff, fixes 6544688 |
|
489 |
* Tue Mar 27 2007 - [email protected] |
|
490 |
- set DFLAGS to fix phelper.d build |
|
491 |
* Wed Mar 23 2007 - [email protected] |
|
492 |
- add patches dtrace.diff and pty-leak.diff |
|
493 |
* Wed Mar 15 2007 - [email protected] |
|
494 |
- Removed CC64. Not needed anymore |
|
495 |
* Mon Feb 5 2007 - [email protected] |
|
496 |
- add --with-pydebug configure option if --with-debug option (of pkgbuild) |
|
497 |
is used |
|
498 |
* Mon Feb 5 2007 - [email protected] |
|
499 |
- restore some rm lines in %install that were accidentally deleted when |
|
500 |
I removed Python 2.3 |
|
501 |
* Mon Feb 5 2007 - [email protected] |
|
502 |
- Delete bsddb files if SUNWevolution-bdb-devel is not installed. |
|
503 |
* Sun Feb 4 2007 - [email protected] |
|
504 |
- remove python 2.3 as per PSARC/2006/666 |
|
505 |
- define bsddb subpkg which gets built if SUNWevolution-bdb-devel is |
|
506 |
installed |
|
507 |
* Tue Dec 05 2006 - [email protected] |
|
508 |
- Remove "-j$CPUS" from 'make' calls to fix (parallel) build errors. |
|
509 |
* Sat Nov 4 2006 - [email protected] |
|
510 |
- bump to 2.4.4. (also fixes 6483597) |
|
511 |
- add the curses module to %files |
|
512 |
* Tue Oct 3 2006 - [email protected] |
|
513 |
- add patch Python-06-write_compiled_module-atomic.diff, fixes 6463378 |
|
514 |
- make the patches not create .patch<n> backup files because some of them |
|
515 |
ended up in the packages |
|
516 |
- fix the path to the python interpreter in the .py files before they |
|
517 |
are compiled, fixes 6469243; |
|
518 |
* Mon Sep 18 2006 - [email protected] |
|
519 |
- 64-bit python changes |
|
520 |
- Python-01-solaris-lib-dirs.diff: (update) merge for 2.4.3 and fix ssl |
|
521 |
libdir part so that it uses a 64-bit libdir when built in 64-bit mode |
|
522 |
- Python-02-pycc.diff: (update) reset IFS correctly; use = not ==; |
|
523 |
add some hacks at the bottom to use the right gcc options, so 64-bit |
|
524 |
can build |
|
525 |
- Python-03-distutils-pycc.diff: force using pycc/pyCC so that CC/CXX |
|
526 |
CFLAGS/LDFLAGS are picked up from the environment |
|
527 |
- Python-04-distutils-log.diff: fix log.info commands so that they work |
|
528 |
when the '%' char appears in a compiler flags |
|
529 |
- Python-05-isalibs.diff: (new) make .so's be generated as foo.so, |
|
530 |
64/foo.so; some really nasty fixes to pyconfig.h: we cannot use the |
|
531 |
compile-time version of SIZEOF, so we hack them in using _LP64. |
|
532 |
We use PY_CHECK_SIZEOF to avoid autoconf automatically adding them |
|
533 |
to pyconfig.h; in the Makefile, make python obey libdir for libpython, |
|
534 |
but still put the generic stuff in /usr/lib/python2.4 |
|
535 |
(not /usr/lib/amd64/python2.4...) |
|
536 |
* Fri Jul 21 2006 - [email protected] |
|
537 |
- Bump to 2.4.3. |
|
538 |
* Tue Jun 20 2006 - [email protected] |
|
539 |
- Add BuildRequires of the openssl libraries package (already a 'Requires'). |
|
540 |
* Tue May 09 2006 - [email protected] |
|
541 |
- merge -share pkg(s) into the base pkg(s) |
|
542 |
* Sun Oct 30 2005 - [email protected] |
|
543 |
- change interpreter in python scripts to full path to the appropriate |
|
544 |
version (/usr/bin/python2.4 or /usr/sfw/bin/python2.3), fixes 6318475 |
|
545 |
- set the C/C++ compiler in the distutils Makefile to the pycc/pyCC |
|
546 |
wrapper scripts, fixes 6247860 |
|
547 |
* Fri Oct 28 2005 - [email protected] |
|
548 |
- update to 2.4.2 |
|
549 |
- build shared libpython and remove the static one, fixes 6199942 |
|
550 |
- remove XOPEN/POSIX defines from pyconfig.h: fixes 6240077 |
|
551 |
- add missing dependencies, fixes 6318436 |
|
552 |
* Tue Sep 27 2005 - [email protected] |
|
553 |
- omit some unnecessary compiler flags |
|
554 |
- remove .pyo files |
|
555 |
- add a pth file to site-packages that tells python to search for modules |
|
556 |
in the vendor-packages directory too |
|
557 |
- change default permissions to root:bin. |
|
558 |
* Wed Oct 19 2005 - [email protected] |
|
559 |
- Add another missing runtime dependency, SUNWlibmsr, fixes 6208617. |
|
560 |
- Move Pyrex to SUNWPython-extra.spec file. |
|
561 |
* Tue Sep 20 2005 - [email protected] |
|
562 |
- move python 2.4.1 to /usr and keep python 2.3 in /usr/sfw for backcompat |
|
563 |
- omit -xregs=no%frameptr as it breaks the build |
|
564 |
* Fri Aug 26 2005 - [email protected] |
|
565 |
- update to 2.4.1 |
|
566 |
* Tue Aug 02 2005 - [email protected] |
|
567 |
- added SUNWsfwhea build dependency needed for expat headers |
|
568 |
* Tue Aug 02 2005 - [email protected] |
|
569 |
- Add SUNWlexpt dependency as the Expat library is required for building. |
|
570 |
* Fri Jul 29 2005 - [email protected] |
|
571 |
- Add missing runtime dependencies, fixes 6208617. |
|
572 |
* Sun Nov 14 2004 - [email protected] |
|
573 |
- add /usr/sfw/lib to RPATH |
|
574 |
* Fri Oct 22 2004 - [email protected] |
|
575 |
- remove bsddb bits (won't work without bsd db itself), fixes 6176600 |
|
576 |
* Sat Oct 02 2004 - [email protected] |
|
577 |
- added %pkgbuild_postprocess |
|
578 |
* Sat Sep 18 2004 - [email protected] |
|
579 |
- move to /usr/sfw |
|
580 |
* Tue Jun 22 2004 - [email protected] |
|
581 |
- changed install location to /usr/lib and /usr/bin |
|
582 |
* Fri Mar 05 2005 - [email protected] |
|
583 |
- remove package root def'n |
|
584 |
* Thu Mar 04 2004 - [email protected] |
|
585 |
- initial version added to CVS |