Logoj0ke.net Open Build Service > Projects > devel:python > python-psycopg2 > Changes
Sign Up | Log In

Changes of Revision 3

[-] Added python-psycopg2.spec
x
 
1
@@ -0,0 +1,65 @@
2
+%define modname psycopg2
3
+Name:           python-%{modname}
4
+URL:            http://initd.org/projects/psycopg1
5
+Summary:        A PostgreSQL database adapter for Python
6
+Version:        2.0.8
7
+Release:        1
8
+License:        GPL
9
+Group:          Development/Libraries/Python
10
+Source:         %{modname}-%{version}.tar.bz2
11
+BuildRoot:      %{_tmppath}/%{name}-%{version}-root
12
+%{py_requires}
13
+BuildRequires:  python-devel postgresql-devel
14
+
15
+%description
16
+psycopg is a PostgreSQL database adapter for the Python programming language.
17
+This is version 2, a complete rewrite of the original code to provide
18
+new-style classes for connection and cursor objects and other sweet candies.
19
+Like the original, psycopg 2 was written with the aim of being very small and
20
+fast, and stable as a rock.
21
+
22
+psycopg is different from the other database adapter because it was designed
23
+for heavily multi-threaded applications that create and destroy lots of
24
+cursors and make a conspicuous number of concurrent INSERTs or UPDATEs.
25
+psycopg 2 also provide full asycronous operations for the really brave
26
+programmer.
27
+
28
+Authors:
29
+--------
30
+    Federico Di Gregorio <fog@initd.org>
31
+
32
+%prep
33
+%setup -q -n %{modname}-%{version}
34
+
35
+%build
36
+export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
37
+%{__python} setup.py build
38
+
39
+%install
40
+rm -rf %{buildroot}
41
+%{__python} setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
42
+
43
+%clean
44
+rm -rf %{buildroot}
45
+
46
+%files -f INSTALLED_FILES
47
+%defattr(-,root,root)
48
+%doc doc examples AUTHORS ChangeLog PKG-INFO README
49
+
50
+%changelog
51
+
52
+* Thu Nov 20 2008 - James Oakley <jfunk@funktronics.ca> - 2.0.8-1
53
+- Update to 2.0.8
54
+
55
+* Fri Jan 19 2007 - Cristian Rodriguez <judas_iscariote@shorewall.net> - 2.0.5.1-1
56
+- Update version
57
+- compile with -fno-strict-aliasing otherwise gcc complains.
58
+- deactivate unneeded patches.
59
+* Wed Jul 26 2006 - James Oakley <jfunk@funktronics.ca> - 2.0.2-10
60
+- Disable debugging
61
+
62
+* Thu Jun 22 2006 - James Oakley <jfunk@funktronics.ca> - 2.0.2-1
63
+- Update
64
+
65
+* Wed Oct 19 2005 - James Oakley <jfunk@funktronics.ca> - 2.0-ft.1
66
+- Initial release
67