forked from pool/python-psycopg2
- Spec file changes:
* Added LICENSE and NEWS files * Added ZPL license to preamble (psycopg2 is dual-licensed) * Use upstream description * Fixed SLE build errors * Repacked tarball to bzip2 - Update to version 2.4 * Added support for Python 3.1 and 3.2. The conversion has also brought several improvements: * Improvements to the named cusors and data handling * Fixed adaptation of None in composite types (ticket #26). Bug report by Karsten Hilbert. * Fixed several reference leaks in less common code paths. * Fixed segfault when a large object is closed and its connection no more available. * Added missing icon to ZPsycopgDA package, not available in Zope 2.12.9 (ticket #30). Bug report and patch by Pumukel. * Fixed conversion of negative infinity (ticket #40). Bug report and patch by Marti Raudsepp. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=26
This commit is contained in:
committed by
Git OBS Bridge
parent
de567a60c0
commit
7dca1725a7
3
psycopg2-2.4.tar.bz2
Normal file
3
psycopg2-2.4.tar.bz2
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:d1274b9c1e68e600ca3834622dab43212fc080995516289d380ed3173e5a3314
|
||||||
|
size 464145
|
@@ -1,3 +1,26 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Feb 28 07:52:40 UTC 2011 - saschpe@suse.de
|
||||||
|
|
||||||
|
- Spec file changes:
|
||||||
|
* Added LICENSE and NEWS files
|
||||||
|
* Added ZPL license to preamble (psycopg2 is dual-licensed)
|
||||||
|
* Use upstream description
|
||||||
|
* Fixed SLE build errors
|
||||||
|
* Repacked tarball to bzip2
|
||||||
|
- Update to version 2.4
|
||||||
|
* Added support for Python 3.1 and 3.2. The conversion has also
|
||||||
|
brought several improvements:
|
||||||
|
* Improvements to the named cusors and data handling
|
||||||
|
* Fixed adaptation of None in composite types (ticket #26). Bug
|
||||||
|
report by Karsten Hilbert.
|
||||||
|
* Fixed several reference leaks in less common code paths.
|
||||||
|
* Fixed segfault when a large object is closed and its connection no
|
||||||
|
more available.
|
||||||
|
* Added missing icon to ZPsycopgDA package, not available in Zope
|
||||||
|
2.12.9 (ticket #30). Bug report and patch by Pumukel.
|
||||||
|
* Fixed conversion of negative infinity (ticket #40). Bug report and
|
||||||
|
patch by Marti Raudsepp.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Dec 27 15:01:00 UTC 2010 - elchevive@opensuse.org
|
Tue Dec 27 15:01:00 UTC 2010 - elchevive@opensuse.org
|
||||||
|
|
||||||
|
@@ -1,6 +1,8 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-psycopg2
|
# spec file for package python-psycopg2
|
||||||
#
|
#
|
||||||
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
# upon. The license for this file, and modifications and additions to the
|
# upon. The license for this file, and modifications and additions to the
|
||||||
@@ -10,92 +12,84 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
#
|
#
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
# norootforbuild
|
# norootforbuild
|
||||||
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||||
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||||
|
|
||||||
|
%define mod_name psycopg2
|
||||||
|
|
||||||
%define modname psycopg2
|
Name: python-%{mod_name}
|
||||||
|
Version: 2.4
|
||||||
Name: python-psycopg2
|
Release: 0
|
||||||
Summary: A PostgreSQL database adapter for Python
|
|
||||||
Version: 2.3.2
|
|
||||||
Release: %{release}
|
|
||||||
Url: http://initd.org/psycopg/
|
Url: http://initd.org/psycopg/
|
||||||
License: LGPLv3+ with exceptions
|
Summary: Python-PostgreSQL Database Adapter
|
||||||
# The exceptions allow linking to OpenSSL and PostgreSQL's libpq
|
License: LGPLv3+ or ZPL
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Source: %{modname}-%{version}.tar.gz
|
Source: %{mod_name}-%{version}.tar.bz2
|
||||||
Source1: %{name}-rpmlintrc
|
Source1: %{name}-rpmlintrc
|
||||||
%{py_requires}
|
|
||||||
BuildRequires: postgresql-devel python-devel >= 2.4 dos2unix fdupes
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildRequires: python-devel >= 2.4
|
||||||
|
BuildRequires: postgresql-devel
|
||||||
|
%if 0%{?suse_version}
|
||||||
|
%py_requires
|
||||||
|
%if 0%{?suse_version} > 1010
|
||||||
|
BuildRequires: fdupes
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
psycopg is a PostgreSQL database adapter for the Python programming language.
|
psycopg2 is a PostgreSQL database adapter for the Python programming
|
||||||
This is version 2, a complete rewrite of the original code to provide
|
language. psycopg2 was written with the aim of being very small and fast,
|
||||||
new-style classes for connection and cursor objects and other sweet candies.
|
and stable as a rock.
|
||||||
Like the original, psycopg 2 was written with the aim of being very small and
|
|
||||||
fast, and stable as a rock.
|
|
||||||
|
|
||||||
psycopg is different from the other database adapter because it was designed
|
|
||||||
for heavily multi-threaded applications that create and destroy lots of
|
|
||||||
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 <fog@initd.org>
|
|
||||||
|
|
||||||
|
|
||||||
|
psycopg2 is different from the other database adapter because it was
|
||||||
|
designed for heavily multi-threaded applications that create and destroy
|
||||||
|
lots of cursors and make a conspicuous number of concurrent INSERTs or
|
||||||
|
UPDATEs. psycopg2 also provide full asycronous operations and support
|
||||||
|
for coroutine libraries.
|
||||||
|
|
||||||
%package doc
|
%package doc
|
||||||
License: LGPLv3+
|
License: LGPLv3+ or ZPL
|
||||||
Summary: Documentation for psycopg python PostgreSQL database adapter
|
Summary: Documentation for psycopg python PostgreSQL database adapter
|
||||||
Group: Documentation/HTML
|
Group: Documentation/HTML
|
||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
%description doc
|
%description doc
|
||||||
Documentation and example files for the psycopg python PostgreSQL database adapter.
|
Documentation and example files for the psycopg python PostgreSQL database adapter.
|
||||||
|
|
||||||
|
|
||||||
Authors:
|
|
||||||
--------
|
|
||||||
Federico Di Gregorio <fog@initd.org>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{modname}-%{version}
|
%setup -q -n %{mod_name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||||
%{__python} setup.py build
|
python setup.py build
|
||||||
%{__rm} -rf doc/src
|
rm -rf doc/src
|
||||||
%{__rm} doc/html/.buildinfo
|
rm doc/html/.buildinfo
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{__python} setup.py install \
|
%if 0%{?sles_version}
|
||||||
--prefix=%{_prefix} \
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||||
--root=$RPM_BUILD_ROOT \
|
%else
|
||||||
--optimize=2
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot} --optimize=2
|
||||||
|
%endif
|
||||||
|
%if 0%{?suse_version} > 1010
|
||||||
# create symlinks for man pages
|
%fdupes -s %{buildroot}/%_mandir # create symlinks for man pages
|
||||||
%fdupes -s $RPM_BUILD_ROOT/%_mandir
|
%fdupes %{buildroot} # create hardlinks for the rest
|
||||||
# create hardlinks for the rest
|
%endif
|
||||||
%fdupes $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root,-)
|
||||||
%doc AUTHORS ChangeLog PKG-INFO README
|
%doc AUTHORS ChangeLog LICENSE NEWS PKG-INFO README
|
||||||
%{python_sitearch}/psycopg2
|
%python_sitearch/%{mod_name}*
|
||||||
%{python_sitearch}/psycopg2-%{version}-py%{py_ver}.egg-info
|
%if 0%{?sles_version} > 10
|
||||||
|
%python_sitearch/*.egg-info
|
||||||
|
%endif
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
Reference in New Issue
Block a user