| 1 |
Summary: An interface to MySQL
|
| 2 |
Name: MySQL-python
|
| 3 |
Version: 1.2.3
|
| 4 |
Release: 0.3.c1%{?dist}
|
| 5 |
License: GPLv2+
|
| 6 |
Group: Development/Libraries
|
| 7 |
URL: http://sourceforge.net/projects/mysql-python/
|
| 8 |
|
| 9 |
Source0: http://prdownloads.sourceforge.net/mysql-python/MySQL-python-%{version}c1.tar.gz
|
| 10 |
Patch2: escape-fix.patch
|
| 11 |
|
| 12 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
| 13 |
BuildRequires: python-devel python-setuptools
|
| 14 |
BuildRequires: mysql-devel zlib-devel
|
| 15 |
# is this still needed?
|
| 16 |
# Requires: mx
|
| 17 |
|
| 18 |
%description
|
| 19 |
Python interface to MySQL
|
| 20 |
|
| 21 |
MySQLdb is an interface to the popular MySQL database server for Python.
|
| 22 |
The design goals are:
|
| 23 |
|
| 24 |
- Compliance with Python database API version 2.0
|
| 25 |
- Thread-safety
|
| 26 |
- Thread-friendliness (threads will not block each other)
|
| 27 |
- Compatibility with MySQL 3.23 and up
|
| 28 |
|
| 29 |
This module should be mostly compatible with an older interface
|
| 30 |
written by Joe Skinner and others. However, the older version is
|
| 31 |
a) not thread-friendly, b) written for MySQL 3.21, c) apparently
|
| 32 |
not actively maintained. No code from that version is used in MySQLdb.
|
| 33 |
|
| 34 |
%prep
|
| 35 |
%setup -q -n %{name}-%{version}c1
|
| 36 |
|
| 37 |
%patch2 -p1
|
| 38 |
|
| 39 |
%build
|
| 40 |
rm -f doc/*~
|
| 41 |
export libdirname=%{_lib}
|
| 42 |
CFLAGS="$RPM_OPT_FLAGS" python setup.py build
|
| 43 |
|
| 44 |
%install
|
| 45 |
rm -rf $RPM_BUILD_ROOT
|
| 46 |
|
| 47 |
export libdirname=%{_lib}
|
| 48 |
python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
|
| 49 |
|
| 50 |
%clean
|
| 51 |
rm -rf $RPM_BUILD_ROOT
|
| 52 |
|
| 53 |
%files -f INSTALLED_FILES
|
| 54 |
%defattr(-,root,root)
|
| 55 |
%doc README GPL doc/*
|
| 56 |
%dir %{_libdir}/python?.?/site-packages/MySQLdb
|
| 57 |
%{_libdir}/python?.?/site-packages/MySQLdb/*.pyo
|
| 58 |
%{_libdir}/python?.?/site-packages/MySQLdb/constants/*.pyo
|
| 59 |
%{_libdir}/python?.?/site-packages/*.pyo
|
| 60 |
%dir /usr/%{_lib}/python?.?/site-packages/MySQLdb/constants
|
| 61 |
|
| 62 |
%changelog
|
| 63 |
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 1.2.3-0.3.c1
|
| 64 |
- rebuilt with new openssl
|
| 65 |
|
| 66 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-0.2.c1
|
| 67 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
| 68 |
|
| 69 |
* Sun Jun 28 2009 Tom Lane <tgl@redhat.com> 1.2.3-0.1.c1
|
| 70 |
- Update to release candidate 1.2.3c1 for better mysql 5.1 and python 2.6
|
| 71 |
compatibility
|
| 72 |
Resolves: #505611
|
| 73 |
- Use python-setuptools instead of distutils, stop using old setup.py
|
| 74 |
Resolves: #467510
|
| 75 |
- Remove unnecessary manual Requires: specifications
|
| 76 |
Resolves: #507750
|
| 77 |
|
| 78 |
* Wed Apr 15 2009 Karsten Hopp <karsten@redhat.com> 1.2.2-11
|
| 79 |
- bump release and rebuild for s390x
|
| 80 |
|
| 81 |
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.2-10
|
| 82 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
| 83 |
|
| 84 |
* Thu Jan 22 2009 Tom Lane <tgl@redhat.com> 1.2.2-9
|
| 85 |
- Rebuild for mysql 5.1
|
| 86 |
|
| 87 |
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.2.2-8
|
| 88 |
- Rebuild for Python 2.6
|
| 89 |
|
| 90 |
* Thu Jun 19 2008 Tom Lane <tgl@redhat.com> 1.2.2-7
|
| 91 |
- Fix broken escape() method
|
| 92 |
Resolves: #331021
|
| 93 |
|
| 94 |
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.2.2-6
|
| 95 |
- Autorebuild for GCC 4.3
|
| 96 |
|
| 97 |
* Wed Dec 5 2007 Tom Lane <tgl@redhat.com> 1.2.2-5
|
| 98 |
- Rebuild for new openssl
|
| 99 |
|
| 100 |
* Thu Aug 2 2007 Tom Lane <tgl@redhat.com> 1.2.2-4
|
| 101 |
- Update License tag to match code.
|
| 102 |
|
| 103 |
* Tue Jul 3 2007 Tom Lane <tgl@redhat.com> 1.2.2-3
|
| 104 |
- Ooops, previous fix for quoting bug was wrong, because it converted the
|
| 105 |
version_info tuple to a string in Python's eyes
|
| 106 |
Resolves: #246366
|
| 107 |
|
| 108 |
* Tue Jun 12 2007 Tom Lane <tgl@redhat.com> 1.2.2-2
|
| 109 |
- Fix quoting bug in use of older setup.py: need to quote version_info now
|
| 110 |
Resolves: #243877
|
| 111 |
|
| 112 |
* Fri Apr 20 2007 Tom Lane <tgl@redhat.com> 1.2.2-1
|
| 113 |
- Update to 1.2.2, but not 1.2.2 setup.py (since we don't ship setuptools yet)
|
| 114 |
|
| 115 |
* Thu Dec 7 2006 Jeremy Katz <katzj@redhat.com> - 1.2.1_p2-2
|
| 116 |
- rebuild for python 2.5
|
| 117 |
|
| 118 |
* Wed Dec 6 2006 Tom Lane <tgl@redhat.com> 1.2.1_p2-1
|
| 119 |
- Update to 1.2.1_p2
|
| 120 |
|
| 121 |
* Fri Jul 21 2006 Tom Lane <tgl@redhat.com> 1.2.1-1
|
| 122 |
- Update to 1.2.1
|
| 123 |
- Remove hardwired python version number in favor of asking Python
|
| 124 |
|
| 125 |
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.2.0-3.2.2.1
|
| 126 |
- rebuild
|
| 127 |
|
| 128 |
* Mon Feb 13 2006 Jesse Keating <jkeating@redhat.com> - 1.2.0-3.2.2
|
| 129 |
- rebump for build order issues during double-long bump
|
| 130 |
|
| 131 |
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.2.0-3.2.1
|
| 132 |
- bump again for double-long bug on ppc(64)
|
| 133 |
|
| 134 |
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.2.0-3.2
|
| 135 |
- rebuilt for new gcc4.1 snapshot and glibc changes
|
| 136 |
|
| 137 |
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
|
| 138 |
- rebuilt
|
| 139 |
|
| 140 |
* Wed Nov 9 2005 Tom Lane <tgl@redhat.com> 1.2.0-3
|
| 141 |
- Rebuild due to mysql 5.0 update and openssl library update.
|
| 142 |
|
| 143 |
* Wed Aug 03 2005 Karsten Hopp <karsten@redhat.de> 1.2.0-2
|
| 144 |
- package all python files. INSTALLED_FILES doesn't contain files created
|
| 145 |
by the brp-python-bytecompile script
|
| 146 |
|
| 147 |
* Thu Apr 21 2005 Tom Lane <tgl@redhat.com> 1.2.0-1
|
| 148 |
- Update to 1.2.0, per bug #155341
|
| 149 |
- Link against mysql 4.x not 3.x, per bug #150828
|
| 150 |
|
| 151 |
* Sun Mar 6 2005 Tom Lane <tgl@redhat.com> 1.0.0-3
|
| 152 |
- Rebuild with gcc4.
|
| 153 |
|
| 154 |
* Thu Nov 11 2004 Tom Lane <tgl@redhat.com> 1.0.0-2
|
| 155 |
- bring us to python 2.4
|
| 156 |
|
| 157 |
* Thu Nov 11 2004 Tom Lane <tgl@redhat.com> 1.0.0-1
|
| 158 |
- update to 1.0.0; rebuild against mysqlclient10
|
| 159 |
|
| 160 |
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
|
| 161 |
- rebuilt
|
| 162 |
|
| 163 |
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
|
| 164 |
- rebuilt
|
| 165 |
|
| 166 |
* Fri Feb 20 2004 Tom Lane <tgl@redhat.com>
|
| 167 |
- reinstate (and update) patch for /usr/lib64 compatibility
|
| 168 |
- rebuilt
|
| 169 |
|
| 170 |
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
|
| 171 |
- rebuilt
|
| 172 |
|
| 173 |
* Tue Nov 25 2003 Patrick Macdonald <patrickm@redhat.com> 0.9.2-1
|
| 174 |
- update to 0.9.2
|
| 175 |
- remove patches (no longer applicable)
|
| 176 |
|
| 177 |
* Sat Nov 15 2003 Tom "spot" Callaway <tcallawa@redhat.com> 0.9.1-10
|
| 178 |
- bring us to python 2.3
|
| 179 |
|
| 180 |
* Thu Jul 03 2003 Patrick Macdonald <patrickm@redhat.com> 0.9.1-9
|
| 181 |
- rebuilt
|
| 182 |
|
| 183 |
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com> 0.9.1-8
|
| 184 |
- rebuilt
|
| 185 |
|
| 186 |
* Tue Mar 04 2003 Patrick Macdonald <patrickm@redhat.com> 0.9.1-7
|
| 187 |
- explicitly define the constants directory in case a more
|
| 188 |
restrictive umask is encountered (#74019)
|
| 189 |
|
| 190 |
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
|
| 191 |
- rebuilt
|
| 192 |
|
| 193 |
* Wed Dec 11 2002 Tim Powers <timp@redhat.com> 0.9.1-5
|
| 194 |
- lib64'ize
|
| 195 |
|
| 196 |
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
|
| 197 |
- automated rebuild
|
| 198 |
|
| 199 |
* Thu May 23 2002 Tim Powers <timp@redhat.com>
|
| 200 |
- automated rebuild
|
| 201 |
|
| 202 |
* Mon May 13 2002 Trond Eivind Glomsrd <teg@redhat.com> 0.9.1-2
|
| 203 |
- Build for newer python
|
| 204 |
|
| 205 |
* Wed Mar 13 2002 Trond Eivind Glomsrd <teg@redhat.com> 0.9.1-1
|
| 206 |
- 0.9.1
|
| 207 |
|
| 208 |
* Tue Feb 26 2002 Trond Eivind Glomsrd <teg@redhat.com> 0.9.0-6
|
| 209 |
- Rebuild
|
| 210 |
|
| 211 |
* Thu Jan 31 2002 Elliot Lee <sopwith@redhat.com> 0.9.0-5
|
| 212 |
- Change python conflicts to requires
|
| 213 |
- Use pybasever/pynextver macros.
|
| 214 |
|
| 215 |
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
|
| 216 |
- automated rebuild
|
| 217 |
|
| 218 |
* Fri Sep 14 2001 Trond Eivind Glomsrd <teg@redhat.com> 0.9.0-3
|
| 219 |
- Build for Python 2.2
|
| 220 |
|
| 221 |
* Mon Jul 23 2001 Trond Eivind Glomsrd <teg@redhat.com>
|
| 222 |
- Add zlib-devel to buildrequires (#49788)
|
| 223 |
|
| 224 |
* Tue Jun 19 2001 Trond Eivind Glomsrd <teg@redhat.com>
|
| 225 |
- Initial build
|