File: python-MySQLdb.spec

package info (click to toggle)
python-mysqldb 0.1.1-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 264 kB
  • ctags: 244
  • sloc: ansic: 1,320; python: 1,079; makefile: 47; sh: 14
file content (57 lines) | stat: -rw-r--r-- 1,692 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
%define ver 0.0.0
%define rel 0
Summary: (Yet another) Python interface to MySQL 
Name: python-MySQLdb
Version: %ver
Release: %rel
Copyright: Comstar Communications Corporation, free software
Group: Development/Languages/Python 
Source: MySQLdb-%ver.tar.gz
Requires: python >= 1.5 
Requires: MySQL-devel >= 3.22
BuildRoot: /tmp/mysqldb-root
Packager: Andy Dustman <adustman@comstar.net>
Icon: linux-python-db-icon.gif

%changelog

* Tue Apr 06 1999 Andy Dustman <adustman@comstar.net>

- initial release

- mostly this spec is ripped off from Oli Andrich.

%description
(Yet another) Python interface to MySQL

MySQLdb is an interface to the popular MySQL database server for Python.
The design goals are:

-     Compliance with Python database API version 2.0 
-     Thread-safety 
-     Thread-friendliness (threads will not block each other) 
-     Compatibility with MySQL 3.22

This module should be mostly compatible with an older interface
written by Joe Skinner and others. However, the older version is
a) not thread-friendly, b) written for MySQL 3.21, c) apparently
not actively maintained. No code from that version is used in
MySQLdb. MySQLdb is distributed free of charge under a license
derived from the Python license.
%prep
%setup -n MySQLdb-%ver

%build
python build.py

%install
mkdir -p $RPM_BUILD_ROOT/usr/lib/python1.5/site-packages
make install prefix=$RPM_BUILD_ROOT/usr
cp MySQLdb.py{,c,o} $RPM_BUILD_ROOT/usr/lib/python1.5/site-packages
%clean
%files
%doc README build.py license.py
/usr/lib/python1.5/site-packages/MySQLdb.py
/usr/lib/python1.5/site-packages/MySQLdb.pyc
/usr/lib/python1.5/site-packages/MySQLdb.pyo
/usr/lib/python1.5/site-packages/_mysqlmodule.so