root/lightcube_os/trunk/packages/Python/Python.spec @ 5

Revision 5, 2.1 KB (checked in by jhuntwork, 11 months ago)

Upgraded Python to 2.6.3, added Linux-PAM

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