rpms/python-psycopg/devel python-psycopg.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Shahms King (shahms) fedora-extras-commits at redhat.com
Tue Mar 15 20:52:08 UTC 2005


Author: shahms

Update of /cvs/extras/rpms/python-psycopg/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv23995/devel

Modified Files:
	.cvsignore sources 
Added Files:
	python-psycopg.spec 
Log Message:
auto-import python-psycopg-1.1.18-1 on branch devel from python-psycopg-1.1.18-1.src.rpm


--- NEW FILE python-psycopg.spec ---
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}

%define srcname psycopg

Name:           python-psycopg
Version:        1.1.18
Release:        1
Summary:        PostgreSQL database adapter for Python

Group:          Development/Libraries
License:        GPL
URL:            http://www.initd.org/software/initd/psycopg
Source0:        http://initd.org/pub/software/psycopg/psycopg-1.1.18.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  python-devel postgresql-devel mx
Requires:   python-abi = %(%{__python} -c "import sys ; print sys.version[:3]") mx postgresql-libs

%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.

%prep
%setup -n %{srcname}-%{version}

%build
if [ -x /usr/bin/pg_config ]; then
	POSTGRESQLINC=$(/usr/bin/pg_config --includedir-server)
	POSTGRESQLLIB=$(/usr/bin/pg_config --libdir)
else
	POSTGRESQLINC=/usr/include/pgsql
	POSTGRESQLLIB=/usr/lib
fi
%configure --with-python=%{__python} \
      --with-mxdatetime-includes=%{_includedir}  \
      --with-postgres-includes=$POSTGRESQLINC \
      --with-postgres-libs=$POSTGRESQLLIB
make

%install
mkdir -p $RPM_BUILD_ROOT%{python_sitelib}
install -m 555 psycopgmodule.so $RPM_BUILD_ROOT%{python_sitelib}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc AUTHORS  COPYING  CREDITS  FAQ  INSTALL  NEWS  README  RELEASE-1.0  SUCCESS  TODO doc
%{python_sitearch}/*.so

%changelog
* Tue Mar 01 2005 Shahms E. King <shahms at shahms.com> 1.1.18-1
- Repackage for Extras
- Update to 1.1.18


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/python-psycopg/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	15 Mar 2005 20:51:46 -0000	1.1
+++ .cvsignore	15 Mar 2005 20:52:06 -0000	1.2
@@ -0,0 +1 @@
+psycopg-1.1.18.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/python-psycopg/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	15 Mar 2005 20:51:46 -0000	1.1
+++ sources	15 Mar 2005 20:52:06 -0000	1.2
@@ -0,0 +1 @@
+8e5cd2925a25a5aa80cd83418d6a5f09  psycopg-1.1.18.tar.gz




More information about the fedora-extras-commits mailing list