1 %define zope_subname PloneExFile
2 Summary: A Plone content type with an attachment
3 Summary(pl.UTF-8): 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 BuildRequires: rpmbuild(macros) >= 1.268
13 %pyrequires_eq python-modules
14 Requires(post,postun): /usr/sbin/installzopeproduct
16 Requires: Zope-ZAttachmentAttribute >= 2.0
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 A Plone content type with an attachment.
23 %description -l pl.UTF-8
24 Typ Plone z załącznikami.
27 %setup -q -n %{zope_subname}
30 rm -rf $RPM_BUILD_ROOT
31 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
33 cp -af Extensions i18n skins website *.py *.txt \
34 $RPM_BUILD_ROOT%{_datadir}/%{name}
36 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
37 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
40 rm -rf $RPM_BUILD_ROOT
43 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
44 %service -q zope restart
47 if [ "$1" = "0" ]; then
48 /usr/sbin/installzopeproduct -d %{zope_subname}
49 %service -q zope restart
53 %defattr(644,root,root,755)
54 %doc ABOUT CHANGES CREDITS ChangeLog README.txt doc/*