SPECS: Zope3-psycopgda.spec (NEW) - new spec: PostgreSQL database ...

jajcus jajcus at pld-linux.org
Tue Aug 30 14:31:00 CEST 2005


Author: jajcus                       Date: Tue Aug 30 12:31:00 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new spec: PostgreSQL database adapter for Zope 3

---- Files affected:
SPECS:
   Zope3-psycopgda.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/Zope3-psycopgda.spec
diff -u /dev/null SPECS/Zope3-psycopgda.spec:1.1
--- /dev/null	Tue Aug 30 14:31:00 2005
+++ SPECS/Zope3-psycopgda.spec	Tue Aug 30 14:30:55 2005
@@ -0,0 +1,84 @@
+# $Revision$, $Date$
+%define		zope_subname	psycopgda
+Summary:	PostgreSQL database adapter for Zope 3
+Summary(pl):	Adapter bazy danych PostgreSQL dla Zope 3
+Name:		Zope3-%{zope_subname}
+Version:	1.0.0
+Release:	1
+License:	ZPL 2.1
+Group:		Development/Tools
+Source0:	http://www.zope.org/Products/Zope3-Packages/%{zope_subname}/%{version}/%{zope_subname}-%{version}.tgz
+# Source0-md5:	da55609e4612f2c6d431b00dfa57c369
+Patch0:		%{name}-python_2_4_1.patch
+URL:		http://www.zope.org/Products/Zope3-Packages/psycopgda/view
+BuildRequires:	python
+%pyrequires_eq	python-modules
+Requires:	Zope3
+Requires(post,postun):	/usr/sbin/installzope3package
+Requires(post,postun):	rc-scripts
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		zope_libdir /usr/lib/zope3
+%define		zope_pyscriptdir /usr/share/zope3/lib/python
+
+%description
+PostgreSQL database adapter for Zope 3.
+
+%description -l pl
+Adapter bazy danych PostgreSQL dla Zope 3
+
+%prep
+%setup -q -n %{zope_subname}-%{version}
+%patch0 -p1
+
+%build
+./configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/zope3
+
+python install.py install \
+	--root="$RPM_BUILD_ROOT" \
+	--install-purelib="%{zope_pyscriptdir}"
+
+mv $RPM_BUILD_ROOT%{_prefix}/zopeskel $RPM_BUILD_ROOT%{_sysconfdir}/zope3
+
+%py_comp $RPM_BUILD_ROOT%{zope_pyscriptdir}
+%py_ocomp $RPM_BUILD_ROOT%{zope_pyscriptdir}
+
+find $RPM_BUILD_ROOT -type f -name "*.py" | xargs rm
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+/usr/sbin/installzope3package %{zope_subname}
+if [ -f /var/lock/subsys/zope3 ]; then
+	/etc/rc.d/init.d/zope3 restart >&2
+fi
+
+%postun
+if [ "$1" = "0" ]; then
+	/usr/sbin/installzope3package -d %{zope_subname}
+	if [ -f /var/lock/subsys/zope3 ]; then
+		/etc/rc.d/init.d/zope3 restart >&2
+	fi
+fi
+
+%files
+%defattr(644,root,root,755)
+%{zope_pyscriptdir}
+%{_sysconfdir}/zope3/zopeskel%{_sysconfdir}/package-includes/*.zcml
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2005/08/30 12:30:55  jajcus
+- new spec: PostgreSQL database adapter for Zope 3
+
================================================================



More information about the pld-cvs-commit mailing list