|
rayvd |
c416da5 |
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
rayvd |
c416da5 |
|
|
rayvd |
c416da5 |
Name: pyodbc
|
|
rayvd |
207aafe |
Version: 2.1.1
|
|
rayvd |
207aafe |
Release: 1%{?dist}
|
|
rayvd |
c416da5 |
Summary: Python DB API 2.0 Module for ODBC
|
|
rayvd |
c416da5 |
Group: Development/Languages
|
|
rayvd |
c416da5 |
License: MIT
|
|
rayvd |
207aafe |
URL: http://code.google.com/p/pyodbc/
|
|
rayvd |
207aafe |
Source0: http://pyodbc.googlecode.com/files/%{name}-%{version}.zip
|
|
rayvd |
c416da5 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
rayvd |
c416da5 |
Requires: python >= 2.4, unixODBC
|
|
rayvd |
c416da5 |
BuildRequires: unixODBC-devel, python-devel >= 2.4
|
|
rayvd |
c416da5 |
|
|
rayvd |
c416da5 |
%description
|
|
rayvd |
c416da5 |
A Python DB API 2 module for ODBC. This project provides an up-to-date,
|
|
rayvd |
c416da5 |
convenient interface to ODBC using native data types like datetime and
|
|
rayvd |
c416da5 |
decimal.
|
|
rayvd |
c416da5 |
|
|
rayvd |
c416da5 |
%prep
|
|
rayvd |
c416da5 |
%setup -q
|
|
rayvd |
c416da5 |
|
|
rayvd |
c416da5 |
%build
|
|
rayvd |
c416da5 |
%{__python} setup.py build
|
|
rayvd |
c416da5 |
|
|
rayvd |
c416da5 |
%install
|
|
rayvd |
c416da5 |
%{__rm} -rf %{buildroot}
|
|
rayvd |
c416da5 |
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
|
rayvd |
c416da5 |
|
|
rayvd |
c416da5 |
%clean
|
|
rayvd |
c416da5 |
%{__rm} -rf %{buildroot}
|
|
rayvd |
c416da5 |
|
|
rayvd |
c416da5 |
%files
|
|
rayvd |
c416da5 |
%defattr(-,root,root,-)
|
|
rayvd |
207aafe |
%doc README.txt LICENSE.txt
|
|
rayvd |
c416da5 |
%{python_sitearch}/*
|
|
rayvd |
c416da5 |
|
|
rayvd |
c416da5 |
%changelog
|
|
rayvd |
207aafe |
* Mon Dec 03 2008 Ray Van Dolson <rayvd@fedoraproject.org> - 2.1.1-1
|
|
rayvd |
207aafe |
- New upstream version and homepage
|
|
|
66878dc |
|
|
rayvd |
c416da5 |
* Mon Jun 02 2008 Ray Van Dolson <rayvd@fedoraproject.org> - 2.0.58-3
|
|
rayvd |
c416da5 |
- Removed silly python BuildRequires
|
|
rayvd |
c416da5 |
|
|
rayvd |
c416da5 |
* Mon Jun 02 2008 Ray Van Dolson <rayvd@fedoraproject.org> - 2.0.58-2
|
|
rayvd |
c416da5 |
- Added python and python-devel to BuildRequires
|
|
rayvd |
c416da5 |
|
|
rayvd |
c416da5 |
* Fri May 30 2008 Ray Van Dolson <rayvd@fedoraproject.org> - 2.0.58-1
|
|
rayvd |
c416da5 |
- Initial package
|