rpms/python-psycopg2/EL-4 python-psycopg2.spec,1.7,1.8

Toshio Kuratomi (toshio) fedora-extras-commits at redhat.com
Tue Mar 27 20:15:49 UTC 2007


On Tue, 2007-03-27 at 16:00 -0400, Devrim GÜNDÜZ wrote:
> Author: devrim
> 
> Update of /cvs/extras/rpms/python-psycopg2/EL-4
> In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv25308
> 
> Modified Files:
> 	python-psycopg2.spec 
> Log Message:
> Updated spec file for EL4
> 
> 
> 
> Index: python-psycopg2.spec
> ===================================================================
> RCS file: /cvs/extras/rpms/python-psycopg2/EL-4/python-psycopg2.spec,v
> retrieving revision 1.7
> retrieving revision 1.8
> diff -u -r1.7 -r1.8
> --- python-psycopg2.spec	9 Dec 2006 19:17:46 -0000	1.7
> +++ python-psycopg2.spec	27 Mar 2007 20:00:07 -0000	1.8
> @@ -8,7 +8,7 @@
>  Summary:	A PostgreSQL database adapter for Python
>  Name:		python-psycopg2
>  Version:	2.0.5.1
> -Release:	7%{?dist}
> +Release:	8%{?dist}
>  Source0:	http://initd.org/pub/software/psycopg/psycopg2-%{version}.tar.gz
>  License:	GPL (with Exceptions)
>  Group:		Applications/Databases
> @@ -66,9 +66,7 @@
>  %doc AUTHORS ChangeLog INSTALL LICENSE MANIFEST README
>  %dir %{python_sitearch}/psycopg2
>  %{python_sitearch}/psycopg2/*.py
> -%{python_sitearch}/psycopg2/*.pyc
>  %{python_sitearch}/psycopg2/*.so
> -%{python_sitearch}/psycopg2/*.pyo
>  
>  %files doc
>  %defattr(-,root,root)
> @@ -78,12 +76,13 @@
>  %defattr(-,root,root)
>  %dir %{ZPsycopgDAdir}
>  %{ZPsycopgDAdir}/*.py
> -%{ZPsycopgDAdir}/*.pyo
> -%{ZPsycopgDAdir}/*.pyc
>  %{ZPsycopgDAdir}/dtml/*
>  %{ZPsycopgDAdir}/icons/*
>  
>  %changelog
> +* Tue Mar 27 2007 - Devrim GUNDUZ <devrim at commandprompt.com> 2.0.5.1-8
> +- Fixed spec file for EL4
> +
Err... This does not fix things for EL4.  The .pyo and .pyc files can be
generated if root imports psycopg2 which will then leave the files on
the filesystem.

You need to generate the .pyo and .pyc files in the spec file for EL4.

I've updated this page with information that what applies for Fedora <
FC4 also applies to RHEL4 in this case::

http://fedoraproject.org/wiki/Packaging/Python#head-b0fc6f14e88db17db3633889f31880adcefb9cb8

-Toshio
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-extras-commits/attachments/20070327/8723c3b6/attachment-0001.sig>


More information about the fedora-extras-commits mailing list