Jeremy Hylton | 355e2f2 | 2000-10-16 15:34:52 +0000 | [diff] [blame] | 1 | %define name BeOpen-Python |
| 2 | %define version 2.0 |
| 3 | %define release 1 |
| 4 | %define __prefix /usr/local |
| 5 | |
| 6 | Summary: An interpreted, interactive, object-oriented programming language. |
| 7 | Name: %{name} |
| 8 | Version: %{version} |
| 9 | Release: %{release} |
| 10 | Copyright: Modified CNRI Open Source License |
| 11 | Group: Development/Languages |
| 12 | Source: %{name}-%{version}.tar.bz2 |
| 13 | Source1: html-%{version}.tar.bz2 |
| 14 | Patch0: %{name}-%{version}-Setup.patch |
| 15 | BuildRoot: /var/tmp/%{name}-%{version}-root |
| 16 | Prefix: %{__prefix} |
| 17 | URL: http://www.pythonlabs.com/ |
Andrew M. Kuchling | f3b9430 | 2001-08-13 15:14:13 +0000 | [diff] [blame] | 18 | Vendor: PythonLabs |
| 19 | Packager: Jeremy Hylton <jeremy@zope.com> |
Jeremy Hylton | 355e2f2 | 2000-10-16 15:34:52 +0000 | [diff] [blame] | 20 | |
| 21 | %description |
| 22 | Python is an interpreted, interactive, object-oriented programming |
| 23 | language. It incorporates modules, exceptions, dynamic typing, very high |
| 24 | level dynamic data types, and classes. Python combines remarkable power |
| 25 | with very clear syntax. It has interfaces to many system calls and |
| 26 | libraries, as well as to various window systems, and is extensible in C or |
| 27 | C++. It is also usable as an extension language for applications that need |
| 28 | a programmable interface. Finally, Python is portable: it runs on many |
| 29 | brands of UNIX, on PCs under Windows, MS-DOS, and OS/2, and on the |
| 30 | Mac. |
| 31 | |
| 32 | %changelog |
| 33 | * Mon Oct 9 2000 Jeremy Hylton <jeremy@beopen.com> |
| 34 | - updated for 2.0c1 |
| 35 | - build audioop, imageop, and rgbimg extension modules |
| 36 | - include xml.parsers subpackage |
| 37 | - add test.xml.out to files list |
| 38 | |
| 39 | * Thu Oct 5 2000 Jeremy Hylton <jeremy@beopen.com> |
| 40 | - added bin/python2.0 to files list (suggested by Martin v. Lรถwis) |
| 41 | |
| 42 | * Tue Sep 26 2000 Jeremy Hylton <jeremy@beopen.com> |
| 43 | - updated for release 1 of 2.0b2 |
| 44 | - use .bz2 version of Python source |
| 45 | |
| 46 | * Tue Sep 12 2000 Jeremy Hylton <jeremy@beopen.com> |
| 47 | - Version 2 of 2.0b1 |
| 48 | - Make the package relocatable. Thanks to Suchandra Thapa. |
| 49 | - Exclude Tkinter from main RPM. If it is in a separate RPM, it is |
| 50 | easier to track Tk releases. |
| 51 | |
| 52 | %prep |
| 53 | %setup -n Python-%{version} |
| 54 | %patch0 |
| 55 | %setup -D -T -a 1 -n Python-%{version} |
| 56 | # This command drops the HTML files in the top-level build directory. |
| 57 | # That's not perfect, but it will do for now. |
| 58 | |
| 59 | %build |
| 60 | ./configure |
| 61 | make |
| 62 | |
| 63 | %install |
| 64 | [ -d $RPM_BUILD_ROOT ] && rm -fr $RPM_BUILD_ROOT |
| 65 | mkdir -p $RPM_BUILD_ROOT%{__prefix} |
| 66 | make prefix=$RPM_BUILD_ROOT%{__prefix} install |
| 67 | |
| 68 | %clean |
| 69 | rm -fr $RPM_BUILD_ROOT |
| 70 | |
| 71 | %files |
| 72 | %defattr(-, root, root) |
| 73 | %{__prefix}/bin/python |
| 74 | %{__prefix}/bin/python2.0 |
| 75 | %{__prefix}/man/man1/python.1 |
| 76 | %doc Misc/README Misc/HYPE Misc/cheatsheet Misc/unicode.txt Misc/Porting |
| 77 | %doc LICENSE Misc/ACKS Misc/BLURB.* Misc/HISTORY Misc/NEWS |
| 78 | %doc index.html modindex.html api dist doc ext inst lib mac ref tut icons |
| 79 | |
| 80 | %dir %{__prefix}/include/python2.0 |
| 81 | %{__prefix}/include/python2.0/*.h |
| 82 | %dir %{__prefix}/lib/python2.0/ |
| 83 | %{__prefix}/lib/python2.0/*.py* |
| 84 | %{__prefix}/lib/python2.0/pdb.doc |
| 85 | %{__prefix}/lib/python2.0/profile.doc |
| 86 | %dir %{__prefix}/lib/python2.0/config |
| 87 | %{__prefix}/lib/python2.0/config/Makefile |
| 88 | %{__prefix}/lib/python2.0/config/Makefile.pre.in |
| 89 | %{__prefix}/lib/python2.0/config/Setup |
| 90 | %{__prefix}/lib/python2.0/config/Setup.config |
| 91 | %{__prefix}/lib/python2.0/config/Setup.local |
| 92 | %{__prefix}/lib/python2.0/config/config.c |
| 93 | %{__prefix}/lib/python2.0/config/config.c.in |
| 94 | %{__prefix}/lib/python2.0/config/install-sh |
| 95 | %{__prefix}/lib/python2.0/config/libpython2.0.a |
| 96 | %{__prefix}/lib/python2.0/config/makesetup |
| 97 | %{__prefix}/lib/python2.0/config/python.o |
| 98 | %dir %{__prefix}/lib/python2.0/curses |
| 99 | %{__prefix}/lib/python2.0/curses/*.py* |
| 100 | %dir %{__prefix}/lib/python2.0/distutils |
| 101 | %{__prefix}/lib/python2.0/distutils/*.py* |
| 102 | %{__prefix}/lib/python2.0/distutils/README |
| 103 | %dir %{__prefix}/lib/python2.0/distutils/command |
| 104 | %{__prefix}/lib/python2.0/distutils/command/*.py* |
| 105 | %{__prefix}/lib/python2.0/distutils/command/command_template |
| 106 | %dir %{__prefix}/lib/python2.0/encodings |
| 107 | %{__prefix}/lib/python2.0/encodings/*.py* |
| 108 | %dir %{__prefix}/lib/python2.0/lib-dynload |
| 109 | %dir %{__prefix}/lib/python2.0/lib-tk |
| 110 | %{__prefix}/lib/python2.0/lib-tk/*.py* |
| 111 | %{__prefix}/lib/python2.0/lib-dynload/_codecsmodule.so |
| 112 | %{__prefix}/lib/python2.0/lib-dynload/_cursesmodule.so |
| 113 | %{__prefix}/lib/python2.0/lib-dynload/_localemodule.so |
| 114 | %{__prefix}/lib/python2.0/lib-dynload/arraymodule.so |
| 115 | %{__prefix}/lib/python2.0/lib-dynload/audioop.so |
| 116 | %{__prefix}/lib/python2.0/lib-dynload/binascii.so |
| 117 | %{__prefix}/lib/python2.0/lib-dynload/cPickle.so |
| 118 | %{__prefix}/lib/python2.0/lib-dynload/cStringIO.so |
| 119 | %{__prefix}/lib/python2.0/lib-dynload/cmathmodule.so |
| 120 | %{__prefix}/lib/python2.0/lib-dynload/errnomodule.so |
| 121 | %{__prefix}/lib/python2.0/lib-dynload/fcntlmodule.so |
| 122 | %{__prefix}/lib/python2.0/lib-dynload/gdbmmodule.so |
| 123 | %{__prefix}/lib/python2.0/lib-dynload/grpmodule.so |
| 124 | %{__prefix}/lib/python2.0/lib-dynload/imageop.so |
| 125 | %{__prefix}/lib/python2.0/lib-dynload/linuxaudiodev.so |
| 126 | %{__prefix}/lib/python2.0/lib-dynload/mathmodule.so |
| 127 | %{__prefix}/lib/python2.0/lib-dynload/md5module.so |
| 128 | %{__prefix}/lib/python2.0/lib-dynload/mmapmodule.so |
| 129 | %{__prefix}/lib/python2.0/lib-dynload/newmodule.so |
| 130 | %{__prefix}/lib/python2.0/lib-dynload/operator.so |
| 131 | %{__prefix}/lib/python2.0/lib-dynload/parsermodule.so |
| 132 | %{__prefix}/lib/python2.0/lib-dynload/pwdmodule.so |
| 133 | %{__prefix}/lib/python2.0/lib-dynload/pyexpat.so |
| 134 | %{__prefix}/lib/python2.0/lib-dynload/readline.so |
| 135 | %{__prefix}/lib/python2.0/lib-dynload/resource.so |
| 136 | %{__prefix}/lib/python2.0/lib-dynload/rgbimgmodule.so |
| 137 | %{__prefix}/lib/python2.0/lib-dynload/rotormodule.so |
| 138 | %{__prefix}/lib/python2.0/lib-dynload/selectmodule.so |
| 139 | %{__prefix}/lib/python2.0/lib-dynload/shamodule.so |
| 140 | %{__prefix}/lib/python2.0/lib-dynload/_socketmodule.so |
| 141 | %{__prefix}/lib/python2.0/lib-dynload/stropmodule.so |
| 142 | %{__prefix}/lib/python2.0/lib-dynload/structmodule.so |
| 143 | %{__prefix}/lib/python2.0/lib-dynload/syslogmodule.so |
| 144 | %{__prefix}/lib/python2.0/lib-dynload/termios.so |
| 145 | %{__prefix}/lib/python2.0/lib-dynload/timemodule.so |
| 146 | %{__prefix}/lib/python2.0/lib-dynload/ucnhash.so |
| 147 | %{__prefix}/lib/python2.0/lib-dynload/unicodedata.so |
| 148 | %{__prefix}/lib/python2.0/lib-dynload/zlibmodule.so |
| 149 | %dir %{__prefix}/lib/python2.0/lib-old |
| 150 | %{__prefix}/lib/python2.0/lib-old/*.py* |
| 151 | %dir %{__prefix}/lib/python2.0/plat-linux2 |
| 152 | %{__prefix}/lib/python2.0/plat-linux2/*.py* |
| 153 | %{__prefix}/lib/python2.0/plat-linux2/regen |
| 154 | %dir %{__prefix}/lib/python2.0/site-packages |
| 155 | %{__prefix}/lib/python2.0/site-packages/README |
| 156 | %dir %{__prefix}/lib/python2.0/test |
| 157 | %{__prefix}/lib/python2.0/test/*.py* |
| 158 | %{__prefix}/lib/python2.0/test/README |
| 159 | %{__prefix}/lib/python2.0/test/audiotest.au |
| 160 | %{__prefix}/lib/python2.0/test/greyrgb.uue |
| 161 | %{__prefix}/lib/python2.0/test/test.xml |
| 162 | %{__prefix}/lib/python2.0/test/test.xml.out |
| 163 | %{__prefix}/lib/python2.0/test/testimg.uue |
| 164 | %{__prefix}/lib/python2.0/test/testimgr.uue |
| 165 | %{__prefix}/lib/python2.0/test/testrgb.uue |
| 166 | %dir %{__prefix}/lib/python2.0/test/output |
| 167 | %{__prefix}/lib/python2.0/test/output/test_* |
| 168 | %dir %{__prefix}/lib/python2.0/xml |
| 169 | %{__prefix}/lib/python2.0/xml/*.py* |
| 170 | %dir %{__prefix}/lib/python2.0/xml/dom |
| 171 | %{__prefix}/lib/python2.0/xml/dom/*.py* |
| 172 | %dir %{__prefix}/lib/python2.0/xml/parsers |
| 173 | %{__prefix}/lib/python2.0/xml/parsers/*.py* |
| 174 | %dir %{__prefix}/lib/python2.0/xml/sax |
| 175 | %{__prefix}/lib/python2.0/xml/sax/*.py* |