diff --git a/_service b/_service
new file mode 100644
index 0000000..50de008
--- /dev/null
+++ b/_service
@@ -0,0 +1,3 @@
+
+ /psycopg/tarballs/PSYCOPG-2-3/psycopg2-2.3.2.tar.gzinitd.org
+
\ No newline at end of file
diff --git a/_service:download_url:psycopg2-2.3.2.tar.gz b/_service:download_url:psycopg2-2.3.2.tar.gz
new file mode 100644
index 0000000..15efc14
--- /dev/null
+++ b/_service:download_url:psycopg2-2.3.2.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7da36f7b04e58c6f80665b715fe2b1d7ab307c3019390a27f2363a7c3acaf429
+size 587987
diff --git a/psycopg2-2.2.2.tar.bz2 b/psycopg2-2.2.2.tar.bz2
deleted file mode 100644
index 202947c..0000000
--- a/psycopg2-2.2.2.tar.bz2
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:31874c7cb0de8d88498b5c9f576fcbd7a64f6b3f9cd8c346eed5d7201429dd82
-size 416652
diff --git a/python-psycopg2-rpmlintrc b/python-psycopg2-rpmlintrc
new file mode 100644
index 0000000..2eb6f9d
--- /dev/null
+++ b/python-psycopg2-rpmlintrc
@@ -0,0 +1,2 @@
+#
+addFilter("non-executable-script")
diff --git a/python-psycopg2.changes b/python-psycopg2.changes
index 143f1ba..489c965 100644
--- a/python-psycopg2.changes
+++ b/python-psycopg2.changes
@@ -1,3 +1,8 @@
+-------------------------------------------------------------------
+Tue Dec 27 15:01:00 UTC 2010 - elchevive@opensuse.org
+
+- Update to version 2.3.2
+
-------------------------------------------------------------------
Wed Oct 27 02:43:22 UTC 2010 - termim@gmail.com
diff --git a/python-psycopg2.spec b/python-psycopg2.spec
index 1606822..1244d33 100644
--- a/python-psycopg2.spec
+++ b/python-psycopg2.spec
@@ -1,5 +1,5 @@
#
-# spec file for package python
+# spec file for package python-psycopg2
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -9,23 +9,26 @@
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-
+#
+# norootforbuild
%define modname psycopg2
Name: python-psycopg2
Summary: A PostgreSQL database adapter for Python
-Version: 2.2.2
-Release: 1
-Url: http://initd.org/tracker/psycopg
-License: GPL with exceptions or ZPL
+Version: 2.3.2
+Release: %{release}
+Url: http://initd.org/psycopg/
+License: LGPLv3+ with exceptions
+# The exceptions allow linking to OpenSSL and PostgreSQL's libpq
Group: Development/Languages/Python
-Source: %{modname}-%{version}.tar.bz2
+Source: %{modname}-%{version}.tar.gz
+Source1: %{name}-rpmlintrc
%{py_requires}
-BuildRequires: postgresql-devel python-devel >= 2.4 dos2unix
+BuildRequires: postgresql-devel python-devel >= 2.4 dos2unix fdupes
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-#Vendor: Federico Di Gregorio
+
%description
psycopg is a PostgreSQL database adapter for the Python programming language.
@@ -40,11 +43,30 @@ cursors and make a conspicuous number of concurrent INSERTs or UPDATEs.
psycopg 2 also provide full asycronous operations for the really brave
programmer.
+
Authors:
--------
Federico Di Gregorio
+
+%package doc
+License: LGPLv3+
+Summary: Documentation for psycopg python PostgreSQL database adapter
+Group: Documentation/HTML
+Requires: %{name} = %{version}
+BuildArch: noarch
+
+%description doc
+Documentation and example files for the psycopg python PostgreSQL database adapter.
+
+
+Authors:
+--------
+ Federico Di Gregorio
+
+
+
%prep
%setup -q -n %{modname}-%{version}
@@ -52,19 +74,31 @@ Authors:
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%{__python} setup.py build
%{__rm} -rf doc/src
+%{__rm} doc/html/.buildinfo
%install
%{__python} setup.py install \
--prefix=%{_prefix} \
--root=$RPM_BUILD_ROOT \
- --record-rpm=INSTALLED_FILES \
--optimize=2
+
+# create symlinks for man pages
+%fdupes -s $RPM_BUILD_ROOT/%_mandir
+# create hardlinks for the rest
+%fdupes $RPM_BUILD_ROOT
+
%clean
rm -rf %{buildroot}
-%files -f INSTALLED_FILES
+%files
%defattr(-,root,root)
-%doc doc examples AUTHORS ChangeLog PKG-INFO README
+%doc AUTHORS ChangeLog PKG-INFO README
+%{python_sitearch}/psycopg2
+%{python_sitearch}/psycopg2-%{version}-py%{py_ver}.egg-info
+
+%files doc
+%defattr(-,root,root)
+%doc doc examples/
%changelog