14
0
Pavol Rusnak
2011-01-03 00:42:53 +00:00
committed by Git OBS Bridge
parent bdcf7a3f62
commit 0687e0fc3a
5 changed files with 56 additions and 15 deletions

3
_service Normal file
View File

@@ -0,0 +1,3 @@
<services>
<service name="download_url"><param name="path">/psycopg/tarballs/PSYCOPG-2-3/psycopg2-2.3.2.tar.gz</param><param name="host">initd.org</param></service>
</services>

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:31874c7cb0de8d88498b5c9f576fcbd7a64f6b3f9cd8c346eed5d7201429dd82
size 416652

View File

@@ -0,0 +1,2 @@
#
addFilter("non-executable-script")

View File

@@ -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 Wed Oct 27 02:43:22 UTC 2010 - termim@gmail.com

View File

@@ -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 # 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
@@ -9,23 +9,26 @@
# case the license is the MIT License). An "Open Source License" is a # case the license is the MIT License). An "Open Source License" is a
# 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.
#
# norootforbuild
%define modname psycopg2 %define modname psycopg2
Name: python-psycopg2 Name: python-psycopg2
Summary: A PostgreSQL database adapter for Python Summary: A PostgreSQL database adapter for Python
Version: 2.2.2 Version: 2.3.2
Release: 1 Release: %{release}
Url: http://initd.org/tracker/psycopg Url: http://initd.org/psycopg/
License: GPL with exceptions or ZPL License: LGPLv3+ with exceptions
# The exceptions allow linking to OpenSSL and PostgreSQL's libpq
Group: Development/Languages/Python Group: Development/Languages/Python
Source: %{modname}-%{version}.tar.bz2 Source: %{modname}-%{version}.tar.gz
Source1: %{name}-rpmlintrc
%{py_requires} %{py_requires}
BuildRequires: postgresql-devel python-devel >= 2.4 dos2unix BuildRequires: postgresql-devel python-devel >= 2.4 dos2unix fdupes
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
#Vendor: Federico Di Gregorio <fog@initd.org>
%description %description
psycopg is a PostgreSQL database adapter for the Python programming language. 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 psycopg 2 also provide full asycronous operations for the really brave
programmer. programmer.
Authors: Authors:
-------- --------
Federico Di Gregorio <fog@initd.org> Federico Di Gregorio <fog@initd.org>
%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 <fog@initd.org>
%prep %prep
%setup -q -n %{modname}-%{version} %setup -q -n %{modname}-%{version}
@@ -52,19 +74,31 @@ Authors:
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%{__python} setup.py build %{__python} setup.py build
%{__rm} -rf doc/src %{__rm} -rf doc/src
%{__rm} doc/html/.buildinfo
%install %install
%{__python} setup.py install \ %{__python} setup.py install \
--prefix=%{_prefix} \ --prefix=%{_prefix} \
--root=$RPM_BUILD_ROOT \ --root=$RPM_BUILD_ROOT \
--record-rpm=INSTALLED_FILES \
--optimize=2 --optimize=2
# create symlinks for man pages
%fdupes -s $RPM_BUILD_ROOT/%_mandir
# create hardlinks for the rest
%fdupes $RPM_BUILD_ROOT
%clean %clean
rm -rf %{buildroot} rm -rf %{buildroot}
%files -f INSTALLED_FILES %files
%defattr(-,root,root) %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 %changelog