From 2b5183f426800ed5e682ee6cff0badc17ccf8bf5 Mon Sep 17 00:00:00 2001 From: undefine Date: Wed, 8 Jun 2005 15:31:12 +0000 Subject: [PATCH] - initital Changed files: Zope-PloneExFile.spec -> 1.1 --- Zope-PloneExFile.spec | 61 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Zope-PloneExFile.spec diff --git a/Zope-PloneExFile.spec b/Zope-PloneExFile.spec new file mode 100644 index 0000000..4ad5355 --- /dev/null +++ b/Zope-PloneExFile.spec @@ -0,0 +1,61 @@ +%define zope_subname PloneExFile +Summary: A Plone content type with an attachment +Summary(pl): Typ Plone z za³±cznikami +Name: Zope-%{zope_subname} +Version: 2.03 +Release: 1 +License: ZPL +Group: Development/Tools +Source0: http://dl.sourceforge.net/ingeniweb/%{zope_subname}-%{version}.tar.gz +# Source0-md5: d866d1e8460d168f9b262a58d637ea7f +URL: http://sourceforge.net/projects/ingeniweb/ +%pyrequires_eq python-modules +Requires: Zope +Requires: Zope-ZAttachmentAttribute >= 2.0 +Requires(post,postun): /usr/sbin/installzopeproduct +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +A Plone content type with an attachment. + +%description -l pl +Typ Plone z za³±cznikami. + +%prep +%setup -q -n %{zope_subname} + +%build + +%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} +if [ -f /var/lock/subsys/zope ]; then + /etc/rc.d/init.d/zope restart >&2 +fi + +%postun +if [ "$1" = "0" ]; then + /usr/sbin/installzopeproduct -d %{zope_subname} + if [ -f /var/lock/subsys/zope ]; then + /etc/rc.d/init.d/zope restart >&2 + fi +fi + +%files +%defattr(644,root,root,755) +%doc CHANGES ChangeLog README.txt TODO.txt doc/* +%{_datadir}/%{name} -- 2.44.0