%define zope_subname PloneExFile Summary: A Plone content type with an attachment Summary(pl.UTF-8): Typ Plone z załącznikami Name: Zope-%{zope_subname} Version: 3.02 Release: 1 License: ZPL Group: Development/Tools Source0: http://dl.sourceforge.net/ingeniweb/%{zope_subname}-%{version}.tar.gz # Source0-md5: 3e23b7fe5e365bfad5ba3dcfa753ab85 URL: http://sourceforge.net/projects/ingeniweb/ BuildRequires: rpmbuild(macros) >= 1.268 %pyrequires_eq python-modules Requires(post,postun): /usr/sbin/installzopeproduct Requires: Zope Requires: Zope-ZAttachmentAttribute >= 2.0 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description A Plone content type with an attachment. %description -l pl.UTF-8 Typ Plone z załącznikami. %prep %setup -q -n %{zope_subname} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_datadir}/%{name} cp -af Extensions i18n skins website *.py *.txt \ $RPM_BUILD_ROOT%{_datadir}/%{name} %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name} %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name} %clean rm -rf $RPM_BUILD_ROOT %post /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname} %service -q zope restart %postun if [ "$1" = "0" ]; then /usr/sbin/installzopeproduct -d %{zope_subname} %service -q zope restart fi %files %defattr(644,root,root,755) %doc ABOUT CHANGES CREDITS ChangeLog README.txt doc/* %{_datadir}/%{name}