Update of /cvsroot/pypgsql/pypgsql
In directory usw-pr-cvs1:/tmp/cvs-serv7350
Modified Files:
pyPgSQL.spec
Log Message:
16SEP2002 gh Updated .spec file from jafo. Closes patch #605455.
Index: pyPgSQL.spec
===================================================================
RCS file: /cvsroot/pypgsql/pypgsql/pyPgSQL.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** pyPgSQL.spec 8 Sep 2002 15:31:26 -0000 1.1
--- pyPgSQL.spec 16 Sep 2002 05:33:46 -0000 1.2
***************
*** 1,5 ****
%define name pyPgSQL
%define version 2.2
! %define release 1
Summary: pyPgSQL - A Python DB-API 2.0 compliant interface to PostgreSQL.
--- 1,5 ----
%define name pyPgSQL
%define version 2.2
! %define release 2
Summary: pyPgSQL - A Python DB-API 2.0 compliant interface to PostgreSQL.
***************
*** 16,19 ****
--- 16,22 ----
Requires: egenix-mx-base
Requires: python2
+ Requires: postgresql-libs
+ BuildPrereq: python2-devel
+ BuildPrereq: postgresql-devel
%description
***************
*** 32,35 ****
--- 35,47 ----
env CFLAGS="$RPM_OPT_FLAGS" /usr/bin/python2 setup.py build
+ # change the path in the test/examples
+ find test examples -type f | while read file
+ do
+ echo "Fixing path in $file"
+ sed 's|^#!.*|#!/usr/bin/env python2|' <$file >/tmp/pathrep.$$
+ cat </tmp/pathrep.$$ >$file
+ rm -f /tmp/pathrep.$$
+ done
+
%install
/usr/bin/python2 setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
***************
*** 39,50 ****
%files -f INSTALLED_FILES
! %doc README
%defattr(-,root,root)
%changelog
* Sun Sep 08 2002 Gerhard Häring <ger...@gm...>
- - Updated to version 2.1.
- Changed copyright to 'BSD'
! - Added README to %doc
* Fri Sep 06 2002 Sean Reifschneider <jaf...@tu...>
- Updated to version 2.1.
--- 51,70 ----
%files -f INSTALLED_FILES
! %doc README Announce ChangeLog
! %doc examples test
%defattr(-,root,root)
%changelog
+ * Sun Sep 08 2002 Sean Reifschneider <jaf...@tu...>
+ - Updated to version 2.2.
+ - Added README to %doc (suggested by Gerhard Häring)
+ - Added examples, test, Announce and ChangeLog to %doc
+ - Added postgresql-devel to BuildPrereq and postgresql-libs to requires
+ (suggested by Gerhard Häring).
+ - Fix the path in the examples.
+
* Sun Sep 08 2002 Gerhard Häring <ger...@gm...>
- Changed copyright to 'BSD'
!
* Fri Sep 06 2002 Sean Reifschneider <jaf...@tu...>
- Updated to version 2.1.
|