Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > 2596d2362165e5811cca528647453f13 > files > 3

python-psycopg2-2.0.13-1mdv2010.1.src.rpm

%define module psycopg2

Summary:        PostgreSQL database adapter for Python
Name:           python-%module
Version:        2.0.13
Release:        %mkrel 1
Group:          Development/Python
License:        GPLv2 and ZPLv2.1 and BSD
URL:            http://www.initd.org/software/initd/psycopg
Source0:        http://initd.org/pub/software/psycopg/%{module}-%{version}.tar.gz
Source1:        http://initd.org/pub/software/psycopg/%{module}-%{version}.tar.gz.asc
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
# for DateTime
Requires:       python-egenix-mx-base
BuildRequires:  python-devel
BuildRequires:  postgresql-devel
BuildRequires:  python-egenix-mx-base

%description
psycopg is a PostgreSQL database adapter for the Python programming
language (just like pygresql and popy.) It was written from scratch with
the aim of being very small and fast, and stable as a rock. The main
advantages of psycopg are that it supports the full Python DBAPI-2.0 and
being thread safe at level 2.

psycopg2 is an almost complete rewrite of the psycopg 1.1.x branch.

%prep
%setup -q -n %{module}-%{version}

%build
export CFLAGS="$RPM_OPT_FLAGS"
python setup.py build

%install
python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES

%clean
rm -rf $RPM_BUILD_ROOT

%files -f INSTALLED_FILES
%defattr(-,root,root,-)
%doc AUTHORS examples/ ChangeLog  LICENSE  README


%changelog
* Sat Nov 07 2009 Frederik Himpe <fhimpe@mandriva.org> 2.0.13-1mdv2010.1
+ Revision: 462522
- update to new version 2.0.13

* Sun Aug 09 2009 Frederik Himpe <fhimpe@mandriva.org> 2.0.12-1mdv2010.0
+ Revision: 413417
- update to new version 2.0.12

* Mon May 18 2009 Frederik Himpe <fhimpe@mandriva.org> 2.0.11-1mdv2010.0
+ Revision: 377268
- Update to new version 2.0.11

* Thu Mar 05 2009 Frederik Himpe <fhimpe@mandriva.org> 2.0.9-1mdv2009.1
+ Revision: 349096
- Update to new version 2.0.9

* Sun Jan 04 2009 Jérôme Soyer <saispo@mandriva.org> 2.0.8-1mdv2009.1
+ Revision: 324057
- New upstream release

* Fri Aug 08 2008 Thierry Vignaud <tvignaud@mandriva.com> 2.0.7-2mdv2009.0
+ Revision: 269038
- rebuild early 2009.0 package (before pixel changes)

* Sun May 04 2008 Frederik Himpe <fhimpe@mandriva.org> 2.0.7-1mdv2009.0
+ Revision: 200808
- New upstream version

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

  + Thierry Vignaud <tvignaud@mandriva.com>
    - kill re-definition of %%buildroot on Pixel's request

* Tue Jul 17 2007 Bogdano Arendartchuk <bogdano@mandriva.com> 2.0.6-1mdv2008.0
+ Revision: 53010
- Import python-psycopg2