1 %define zope_subname PloneExFile
2 Summary: A Plone content type with an attachment
3 Summary(pl): Typ Plone z za³±cznikami
4 Name: Zope-%{zope_subname}
8 Group: Development/Tools
9 Source0: http://dl.sourceforge.net/ingeniweb/%{zope_subname}-%{version}.tar.gz
10 # Source0-md5: 3e23b7fe5e365bfad5ba3dcfa753ab85
11 URL: http://sourceforge.net/projects/ingeniweb/
12 %pyrequires_eq python-modules
14 Requires: Zope-ZAttachmentAttribute >= 2.0
15 Requires(post,postun): /usr/sbin/installzopeproduct
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 A Plone content type with an attachment.
23 Typ Plone z za³±cznikami.
26 %setup -q -n %{zope_subname}
29 rm -rf $RPM_BUILD_ROOT
30 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
32 cp -af Extensions i18n skins website *.py *.txt \
33 $RPM_BUILD_ROOT%{_datadir}/%{name}
35 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
36 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
39 rm -rf $RPM_BUILD_ROOT
42 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
43 if [ -f /var/lock/subsys/zope ]; then
44 /etc/rc.d/init.d/zope restart >&2
48 if [ "$1" = "0" ]; then
49 /usr/sbin/installzopeproduct -d %{zope_subname}
50 if [ -f /var/lock/subsys/zope ]; then
51 /etc/rc.d/init.d/zope restart >&2
56 %defattr(644,root,root,755)
57 %doc ABOUT CHANGES CREDITS ChangeLog README.txt doc/*