Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 3ae7ca7b57d5421166210367d3a3e833 > files > 2

zope-CMFFormController-1.0.4-1mdk.src.rpm

%define product		CMFFormController
%define version		1.0.4
%define release		1mdk

%define zope_minver	2.6

%define zope_home	%{_libdir}/zope
%define software_home	%{zope_home}/lib/python

Summary:	CMFFormController replaces the portal_form form validation mechanism from Plone
Name:		zope-%{product}
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		System/Servers
Source:		http://belnet.dl.sourceforge.net/sourceforge/collective/CMFFormController-%{version}.tar.bz2
URL:		http://sourceforge.net/projects/collective
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch:	noarch
Requires:	zope >= %{zope_minver}
Requires:	zope-CMF >= 1.3

%description
CMFFormController replaces the portal_form form validation
mechanism from Plone. It should work just fine in plain CMF as
well.

%prep
%setup -c

%build
# Not much, eh? :-)


%install
%{__rm} -rf %{buildroot}
%{__mkdir_p} %{buildroot}/%{software_home}/Products
%{__cp} -a * %{buildroot}%{software_home}/Products/


%clean
%{__rm} -rf %{buildroot}

%post
if [ "`%{_prefix}/bin/zopectl status`" != "daemon manager not running" ] ; then
	service zope restart
fi

%postun
if [ -f "%{_prefix}/bin/zopectl" ] && [ "`%{_prefix}/bin/zopectl status`" != "daemon manager not running" ] ; then
	service zope restart
fi

%files
%defattr(0644, root, root, 0755)
%{software_home}/Products/*


%changelog
* Thu Jan 27 2005 Gaetan Lehmann <gaetan.lehmann@jouy.inra.fr> 1.0.4-1mdk
- initial contrib