From c416da51437239b2b5ac26468f1534625fab6ead Mon Sep 17 00:00:00 2001 From: rayvd Date: Tue, 3 Jun 2008 22:38:24 +0000 Subject: [PATCH] Initial import --- .cvsignore | 1 + import.log | 1 + pyodbc.spec | 46 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 49 insertions(+) create mode 100644 import.log create mode 100644 pyodbc.spec diff --git a/.cvsignore b/.cvsignore index e69de29..7e1b0c4 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +pyodbc-2.0.58.zip diff --git a/import.log b/import.log new file mode 100644 index 0000000..38e82f5 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +pyodbc-2_0_58-3:HEAD:pyodbc-2.0.58-3.src.rpm:1212532690 diff --git a/pyodbc.spec b/pyodbc.spec new file mode 100644 index 0000000..257ff75 --- /dev/null +++ b/pyodbc.spec @@ -0,0 +1,46 @@ +%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} + +Name: pyodbc +Version: 2.0.58 +Release: 3%{?dist} +Summary: Python DB API 2.0 Module for ODBC +Group: Development/Languages +License: MIT +URL: http://pyodbc.sourceforge.net/ +Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.zip +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: python >= 2.4, unixODBC +BuildRequires: unixODBC-devel, python-devel >= 2.4 + +%description +A Python DB API 2 module for ODBC. This project provides an up-to-date, +convenient interface to ODBC using native data types like datetime and +decimal. + +%prep +%setup -q + +%build +%{__python} setup.py build + +%install +%{__rm} -rf %{buildroot} +%{__python} setup.py install -O1 --skip-build --root %{buildroot} + +%clean +%{__rm} -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc README.txt +%{python_sitearch}/* + +%changelog +* Mon Jun 02 2008 Ray Van Dolson - 2.0.58-3 +- Removed silly python BuildRequires + +* Mon Jun 02 2008 Ray Van Dolson - 2.0.58-2 +- Added python and python-devel to BuildRequires + +* Fri May 30 2008 Ray Van Dolson - 2.0.58-1 +- Initial package diff --git a/sources b/sources index e69de29..987856c 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +7252737ef4748a3cac50338cf9de9b96 pyodbc-2.0.58.zip