1 %define zope_subname psycopgda
2 Summary: PostgreSQL database adapter for Zope 3
3 Summary(pl): Adapter bazy danych PostgreSQL dla Zope 3
4 Name: Zope3-%{zope_subname}
8 Group: Development/Tools
9 Source0: http://www.zope.org/Products/Zope3-Packages/psycopgda/%{version}/%{zope_subname}-%{version}.tgz
10 # Source0-md5: da55609e4612f2c6d431b00dfa57c369
11 Patch0: %{name}-python_ver.patch
12 URL: http://www.zope.org/Products/Zope3-Packages/psycopgda/view
14 Requires(post,postun): /usr/sbin/installzope3package
15 Requires(post,postun): rc-scripts
16 %pyrequires_eq python-modules
18 Requires: python-psycopg
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define zope_libdir /usr/lib/zope3
23 %define zope_pyscriptdir /usr/share/zope3/lib/python
26 PostgreSQL database adapter for Zope 3.
29 Adapter bazy danych PostgreSQL dla Zope 3.
32 %setup -q -n %{zope_subname}-%{version}
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT%{_sysconfdir}/zope3
43 python install.py install \
44 --root="$RPM_BUILD_ROOT" \
45 --install-purelib="%{zope_pyscriptdir}"
47 mv $RPM_BUILD_ROOT%{_prefix}/zopeskel $RPM_BUILD_ROOT%{_sysconfdir}/zope3
49 %py_comp $RPM_BUILD_ROOT%{zope_pyscriptdir}
50 %py_ocomp $RPM_BUILD_ROOT%{zope_pyscriptdir}
52 find $RPM_BUILD_ROOT -type f -name "*.py" | xargs rm
55 rm -rf $RPM_BUILD_ROOT
58 /usr/sbin/installzope3package %{zope_subname}
59 if [ -f /var/lock/subsys/zope3 ]; then
60 /etc/rc.d/init.d/zope3 restart >&2
64 if [ "$1" = "0" ]; then
65 /usr/sbin/installzope3package -d %{zope_subname}
66 if [ -f /var/lock/subsys/zope3 ]; then
67 /etc/rc.d/init.d/zope3 restart >&2
72 %defattr(644,root,root,755)
74 %{_sysconfdir}/zope3/zopeskel%{_sysconfdir}/package-includes/*.zcml