SPECS: python-psycopg2.spec - copied from python-psycopg.spec (on ...

wrobell wrobell at pld-linux.org
Wed Jun 21 13:45:46 CEST 2006


Author: wrobell                      Date: Wed Jun 21 11:45:46 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- copied from python-psycopg.spec (on server side) and merged from DEVEL

---- Files affected:
SPECS:
   python-psycopg2.spec (1.43 -> 1.44) 

---- Diffs:

================================================================
Index: SPECS/python-psycopg2.spec
diff -u SPECS/python-psycopg2.spec:1.43 SPECS/python-psycopg2.spec:1.44
--- SPECS/python-psycopg2.spec:1.43	Mon Nov 14 13:12:57 2005
+++ SPECS/python-psycopg2.spec	Wed Jun 21 13:45:38 2006
@@ -1,27 +1,30 @@
 # $Revision$, $Date$
+#
+# todo:
+# - zope adapter
+# - lib64 patch
+#
 
-%define 	module	psycopg
+%define 	module	psycopg2
+%define		beta	b8
 
 Summary:	psycopg is a PostgreSQL database adapter for Python
 Summary(pl):	psycopg jest przeznaczonym dla Pythona interfejsem do bazy PostgreSQL
 Name:		python-%{module}
-Version:	1.1.21
-Release:	1
+Version:	2.0
+Release:	0.%{beta}.1
 License:	GPL
 Group:		Libraries/Python
-Source0:	http://initd.org/pub/software/psycopg/%{module}-%{version}.tar.gz
-# Source0-md5:	a31f79f68d6d32898d6f24e11369a106
-Patch0:		%{name}-lib64.patch
+Source0:	http://initd.org/pub/software/psycopg/%{module}-%{version}%{beta}.tar.gz
+# Source0-md5:	f16d464e184351cac9c11814501083bc
+#Patch0:		%{name}-lib64.patch
 URL:		http://www.initd.org/software/psycopg/
 BuildRequires:	autoconf
 BuildRequires:	postgresql-backend-devel
 BuildRequires:	postgresql-devel
 BuildRequires:	python-devel
-BuildRequires:	python-mx-DateTime-devel
-BuildRequires:	rpm-pythonprov
 Requires:	postgresql-libs
 %pyrequires_eq	python-modules
-Requires:	python-mx-DateTime
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define zope_subname ZPsycopgDA
@@ -54,56 +57,55 @@
 Interfejs bazy danych PostgreSQL do Zope.
 
 %prep
-%setup -q -n %{module}-%{version}
-%if "%{_lib}" == "lib64"
-%patch0 -p1
-%endif
+%setup -q -n %{module}-%{version}%{beta}
+#%if "%{_lib}" == "lib64"
+#%patch0 -p1
+#%endif
 
 %build
-%{__autoconf}
-
-%configure \
-	--with-python=%{_bindir}/python \
-	--with-mxdatetime-includes=%{py_incdir}/mx \
-	--with-postgres-includes=%{_includedir}/postgresql/server
-%{__make}
+python setup.py build
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{py_sitedir},%{_datadir}/Zope-%{zope_subname}}
 
-install psycopgmodule.so $RPM_BUILD_ROOT%{py_sitedir}
+python setup.py install --optimize=2 --root=$RPM_BUILD_ROOT
+
+find $RPM_BUILD_ROOT%{py_libdir} -type f -name "*.py" | xargs rm
 
-cp -ar %{zope_subname}/* $RPM_BUILD_ROOT%{_datadir}/Zope-%{zope_subname}
-%py_comp $RPM_BUILD_ROOT%{_datadir}/Zope-%{zope_subname}
-%py_ocomp $RPM_BUILD_ROOT%{_datadir}/Zope-%{zope_subname}
-rm -f $RPM_BUILD_ROOT%{_datadir}/Zope-%{zope_subname}/*.py
+#install -d $RPM_BUILD_ROOT%{_datadir}/Zope-%{zope_subname}
+
+#cp -ar %{zope_subname}/* $RPM_BUILD_ROOT%{_datadir}/Zope-%{zope_subname}
+#%py_comp $RPM_BUILD_ROOT%{_datadir}/Zope-%{zope_subname}
+#%py_ocomp $RPM_BUILD_ROOT%{_datadir}/Zope-%{zope_subname}
+#rm -f $RPM_BUILD_ROOT%{_datadir}/Zope-%{zope_subname}/*.py
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post -n Zope-%{zope_subname}
-/usr/sbin/installzopeproduct %{_datadir}/Zope-%{zope_subname} %{zope_subname}
-if [ -f /var/lock/subsys/zope ]; then
-	/etc/rc.d/init.d/zope restart >&2
-fi
-
-%postun -n Zope-%{zope_subname}
-if [ "$1" = "0" ]; then
-	/usr/sbin/installzopeproduct -d %{zope_subname} 
-	if [ -f /var/lock/subsys/zope ]; then
-		/etc/rc.d/init.d/zope restart >&2
-	fi
-fi
+#%post -n Zope-%{zope_subname}
+#/usr/sbin/installzopeproduct %{_datadir}/Zope-%{zope_subname} %{zope_subname}
+#if [ -f /var/lock/subsys/zope ]; then
+#	/etc/rc.d/init.d/zope restart >&2
+#fi
+
+#%postun -n Zope-%{zope_subname}
+#if [ "$1" = "0" ]; then
+#	/usr/sbin/installzopeproduct -d %{zope_subname} 
+#	if [ -f /var/lock/subsys/zope ]; then
+#		/etc/rc.d/init.d/zope restart >&2
+#	fi
+#fi
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS CREDITS FAQ NEWS README RELEASE-1.0 SUCCESS TODO doc
-%attr(755,root,root) %{py_sitedir}/*.so
-
-%files -n Zope-%{zope_subname}
-%defattr(644,root,root,755)
-%{_datadir}/Zope-%{zope_subname}
+%doc ChangeLog AUTHORS README doc/HACKING doc/SUCCESS doc/TODO
+%dir %{py_sitedir}/%{module}
+%attr(755,root,root) %{py_sitedir}/%{module}/*.so
+%{py_sitedir}/%{module}/*.py[co]
+
+#%files -n Zope-%{zope_subname}
+#%defattr(644,root,root,755)
+#%{_datadir}/Zope-%{zope_subname}
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -111,6 +113,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.44  2006/06/21 11:45:38  wrobell
+- copied from python-psycopg.spec (on server side) and merged from DEVEL
+
 Revision 1.43  2005/11/14 12:12:57  qboosh
 - BR: rpm-pythonprov, removed second BuildRoot
 
@@ -131,6 +136,36 @@
 
 Revision 1.37  2004/12/12 21:18:19  saq
 - up to 1.1.17
+
+Revision 1.36.2.10  2006/05/29 09:17:35  wrobell
+- ver. 2.0 beta 8
+
+Revision 1.36.2.9  2005/11/11 16:46:32  wrobell
+- ver. 2.0 beta5
+
+Revision 1.36.2.8  2005/05/26 00:09:04  wrobell
+- ver. 2.0 beta2
+
+Revision 1.36.2.7  2005/05/10 02:01:31  wrobell
+- 2.0 beta1
+
+Revision 1.36.2.6  2005/03/17 05:51:41  wrobell
+- ver. 1.99.13
+
+Revision 1.36.2.5  2004/12/20 06:04:30  wrobell
+- ver. 1.99.11
+
+Revision 1.36.2.4  2004/11/08 15:38:49  wrobell
+- added missing directory
+
+Revision 1.36.2.3  2004/11/08 14:55:26  wrobell
+- ver. 1.99.10
+
+Revision 1.36.2.2  2004/09/17 13:16:49  wrobell
+- ver. 1.99.9
+
+Revision 1.36.2.1  2004/09/05 11:50:02  wrobell
+- ver. 1.99.8
 
 Revision 1.36  2004/08/30 07:45:54  zboczuch
 - stable release 1.1.15
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/python-psycopg2.spec?r1=1.43&r2=1.44&f=u



More information about the pld-cvs-commit mailing list