Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 517f770882a2c7f4a02de4f9f2579ac9 > files > 2

zope-mxmCounter-1.1.0-1mdk.src.rpm

%define product		mxmCounter
%define version		1.1.0
%define release		1mdk

%define zope_minver	2.7

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

Summary:	A simple filesystem based hit counter for Zope, CMF & Plone, for multiple pages
Name:		zope-%{product}
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		System/Servers
Source:		http://www.mxm.dk/products/public/mxmCounter/files/mxmCounter.%{version}.tar.bz2
URL:		http://www.mxm.dk/products/public/mxmCounter/
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch:	noarch
Requires:	zope >= %{zope_minver}

%description
A simple filesystem based hit counter for Zope, CMF & Plone, for multiple pages.

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