Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 6d855f7c5af85c83dfaa171d3bfa876f > files > 3

zope-CPSSkins-2.3.2-1mdk.src.rpm

%define product		CPSSkins
%define version		2.3.2
%define release		1mdk

%define zope_minver	2.7

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

Summary:	CPSSkins is a visual theme editor for CMF, CPS and Plone
Name:		zope-%{product}
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		System/Servers
Source0:	http://www.medic.chalmers.se/~jmo/CPS/CPSSkins%{version}.tar.bz2
Source1:	http://www.medic.chalmers.se/~jmo/CPS/CPSSkins-Book.pdf
URL:		http://www.medic.chalmers.se/~jmo/CPS/
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch:	noarch
Requires:	zope >= %{zope_minver}

%description
CPSSkins is a visual theme editor for CMF, CPS and Plone

%prep
%setup -c

mkdir doc
cp %{SOURCE1} doc

%build
# Not much, eh? :-)


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

%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/*
%doc doc/*

%changelog
* Sun Mar  6 2005 Gaetan Lehmann <gaetan.lehmann@jouy.inra.fr> 2.3.2-1mdk
- 2.3.2
- remove skins sources

* Fri Feb 11 2005 Gaetan Lehmann <gaetan.lehmann@jouy.inra.fr> 2.2.2-1mdk
- initial contrib