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

Revision 7, 2.2 KB (checked in by jhuntwork, 8 months ago)

Version updates and initial powerpc support

Line 
1Summary: Python Programming Language
2Name: Python
3Version: 2.6.4
4Release: 1
5Group: Development/Languages
6License: Modified CNRI Open Source License
7Distribution: LightCube OS
8Vendor: LightCube Solutions
9URL: http://www.python.org
10Source0: http://dev.lightcube.us/~jhuntwork/sources/%{name}/%{name}-%{version}.tar.bz2
11
12Requires: base-layout, glibc
13BuildRequires:  digest(%{SOURCE0}) = fee5408634a54e721a93531aba37f8c1
14Provides: python(abi) = 2.6
15
16%description
17Python is an interpreted, interactive, object-oriented programming
18language.
19
20%package devel
21Summary: The libraries and header files needed for Python extension development.
22Requires: %{name} = %{version}
23Group: Development/Libraries
24
25%description devel
26The Python programming language's interpreter can be extended with
27dynamically loaded extensions and can be embedded in other programs.
28This package contains the header files and libraries needed to do
29these types of tasks.
30
31%prep
32%setup -q
33%ifarch x86_64
34for file in $(grep "lib" Lib/* -Rl) ; do sed -i 's/"lib"/"lib64"/g' $file; done
35sed -i 's@/lib/@/lib64/@' setup.py
36for file in $(grep lib\/python Lib/* Modules/* -Rl) ; do sed -i 's@lib/python@lib64/python@g' $file ; done
37for 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
42make
43
44%install
45make DESTDIR=%{buildroot} install
46sed -i '/#!/s@/local@@' %{buildroot}/usr/%{_lib}/python2.6/cgi.py
47find %{buildroot}/usr/%{_lib}/python2.6 -maxdepth 1 -mindepth 1 -not -name config >libfiles
48sed -i 's@%{buildroot}@@' libfiles
49
50%clean
51rm -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
Note: See TracBrowser for help on using the browser.