| 1 | Summary: Python Programming Language |
|---|
| 2 | Name: Python |
|---|
| 3 | Version: 2.6.4 |
|---|
| 4 | Release: 1 |
|---|
| 5 | Group: Development/Languages |
|---|
| 6 | License: Modified CNRI Open Source License |
|---|
| 7 | Distribution: LightCube OS |
|---|
| 8 | Vendor: LightCube Solutions |
|---|
| 9 | URL: http://www.python.org |
|---|
| 10 | Source0: http://dev.lightcube.us/~jhuntwork/sources/%{name}/%{name}-%{version}.tar.bz2 |
|---|
| 11 | |
|---|
| 12 | Requires: base-layout, glibc |
|---|
| 13 | BuildRequires: digest(%{SOURCE0}) = fee5408634a54e721a93531aba37f8c1 |
|---|
| 14 | Provides: python(abi) = 2.6 |
|---|
| 15 | |
|---|
| 16 | %description |
|---|
| 17 | Python is an interpreted, interactive, object-oriented programming |
|---|
| 18 | language. |
|---|
| 19 | |
|---|
| 20 | %package devel |
|---|
| 21 | Summary: The libraries and header files needed for Python extension development. |
|---|
| 22 | Requires: %{name} = %{version} |
|---|
| 23 | Group: Development/Libraries |
|---|
| 24 | |
|---|
| 25 | %description devel |
|---|
| 26 | The Python programming language's interpreter can be extended with |
|---|
| 27 | dynamically loaded extensions and can be embedded in other programs. |
|---|
| 28 | This package contains the header files and libraries needed to do |
|---|
| 29 | these types of tasks. |
|---|
| 30 | |
|---|
| 31 | %prep |
|---|
| 32 | %setup -q |
|---|
| 33 | %ifarch x86_64 |
|---|
| 34 | for file in $(grep "lib" Lib/* -Rl) ; do sed -i 's/"lib"/"lib64"/g' $file; done |
|---|
| 35 | sed -i 's@/lib/@/lib64/@' setup.py |
|---|
| 36 | for file in $(grep lib\/python Lib/* Modules/* -Rl) ; do sed -i 's@lib/python@lib64/python@g' $file ; done |
|---|
| 37 | for file in $(grep "prefix)/lib" * -Rl) ; do sed -i 's@prefix)/lib@&64@g' $file ; done |
|---|
| 38 | %endif |
|---|
| 39 | |
|---|
| 40 | %build |
|---|
| 41 | ./configure --prefix=/usr --enable-shared |
|---|
| 42 | make |
|---|
| 43 | |
|---|
| 44 | %install |
|---|
| 45 | make DESTDIR=%{buildroot} install |
|---|
| 46 | sed -i '/#!/s@/local@@' %{buildroot}/usr/%{_lib}/python2.6/cgi.py |
|---|
| 47 | find %{buildroot}/usr/%{_lib}/python2.6 -maxdepth 1 -mindepth 1 -not -name config >libfiles |
|---|
| 48 | sed -i 's@%{buildroot}@@' libfiles |
|---|
| 49 | |
|---|
| 50 | %clean |
|---|
| 51 | rm -rf %{buildroot} |
|---|
| 52 | |
|---|
| 53 | %files -f libfiles |
|---|
| 54 | %defattr(-,root,root) |
|---|
| 55 | /usr/bin/2to3 |
|---|
| 56 | /usr/bin/idle |
|---|
| 57 | /usr/bin/pydoc |
|---|
| 58 | /usr/bin/python |
|---|
| 59 | /usr/bin/python-config |
|---|
| 60 | /usr/bin/python2.6 |
|---|
| 61 | /usr/bin/python2.6-config |
|---|
| 62 | /usr/bin/smtpd.py |
|---|
| 63 | %dir /usr/%{_lib}/python2.6 |
|---|
| 64 | /usr/%{_lib}/libpython2.6.so |
|---|
| 65 | /usr/%{_lib}/libpython2.6.so.1.0 |
|---|
| 66 | /usr/share/man/man1/python.1 |
|---|
| 67 | |
|---|
| 68 | %files devel |
|---|
| 69 | %defattr(-,root,root) |
|---|
| 70 | /usr/include/python2.6 |
|---|
| 71 | /usr/%{_lib}/python2.6/config |
|---|
| 72 | |
|---|
| 73 | %changelog |
|---|
| 74 | * Tue Dec 29 2009 Jeremy Huntwork <jhuntwork@lightcubesolutions.com> - 2.6.4-1 |
|---|
| 75 | - Upgrade to 2.6.4 |
|---|
| 76 | |
|---|
| 77 | * Sun Oct 25 2009 Jeremy Huntwork <jhuntwork@lightcubesolutions.com> - 2.6.3-1 |
|---|
| 78 | - Upgrade to 2.6.3 |
|---|
| 79 | |
|---|
| 80 | * Tue Sep 8 2009 Jeremy Huntwork <jhuntwork@lightcubesolutions.com> - |
|---|
| 81 | - Initial version |
|---|