SPECS: python-pyodbc.spec (NEW) - initial version
wiget
wiget at pld-linux.org
Thu Nov 2 17:35:29 CET 2006
Author: wiget Date: Thu Nov 2 16:35:29 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- initial version
---- Files affected:
SPECS:
python-pyodbc.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/python-pyodbc.spec
diff -u /dev/null SPECS/python-pyodbc.spec:1.1
--- /dev/null Thu Nov 2 17:35:29 2006
+++ SPECS/python-pyodbc.spec Thu Nov 2 17:35:24 2006
@@ -0,0 +1,61 @@
+# $Revision$, $Date$
+%define module pyodbc
+Summary: DB API 2.0 Module for ODBC
+Name: python-%{module}
+Version: 2.0.30
+Release: 1
+License: MIT
+Group: Libraries/Python
+Source0: http://dl.sourceforge.net/pyodbc/%{module}-%{version}.zip
+# Source0-md5: 348a7481c615c2db6d2f10a002e8a93a
+Patch0: %{name}-py25.patch
+URL: http://pyodbc.sourceforge.net/
+BuildRequires: unixODBC-devel
+BuildRequires: python-devel >= 1:2.5
+BuildRequires: rpmbuild(macros) >= 1.174
+%pyrequires_eq python-modules
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+pyodbc is a Python module that allows you to access ODBC databases. It
+implements the Python Database API Specification v2.0.
+Some notable features include:
+ - The library is free for commercial and personal use.
+ - It conforms to the DB API standard.
+ - No 3rd party libraries are required. Only native Python datatypes are used,
+ such as decimal and datetime.
+ - Additional features have been added to simplify database programming with
+ Python.
+
+%prep
+%setup -q -n %{module}-%{version}
+%patch -p1
+
+%build
+python setup.PY build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+python setup.PY install \
+ --optimize=2 \
+ --root $RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.txt
+%attr(755,root,root) %{py_sitedir}/*.so
+%{py_sitedir}/*.egg-info
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2006/11/02 16:35:24 wiget
+- initial version
+
================================================================
More information about the pld-cvs-commit
mailing list