Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 86d95acd9a2dad5d8a5f2af605e81553 > files > 2

plone-Faq-0.1-1mdk.src.rpm

%define product		Faq
%define version		0.1
%define release		1mdk

%define zope_minver	2.7
%define plone_minver	2.0

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

Summary:	This is a simple Faq product that shows questions and answers
Name:		plone-%{product}
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		System/Servers
Source:		http://aleron.dl.sourceforge.net/sourceforge/collective/faq-%{version}.tar.bz2
URL:		http://sourceforge.net/projects/collective/
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch:	noarch
Requires:	zope >= %{zope_minver}
Requires:	plone >= %{plone_minver}

%description
This is a simple Faq product that shows questions and answers.
The product contains two new types, FaqFolder and FaqEntry.
FaqFolder is used for making categories of questions.

If you don't want the questions to show up in the navtree
you can disable 'showNonFolderishObject' in portal_properties/
navtree_properties.


%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
* Sun Jan 30 2005 Gaetan Lehmann <gaetan.lehmann@jouy.inra.fr> 0.1-1mdk
- initial contrib