File zope-ExtFile.spec of Package zope-ExtFile
%define product ExtFile
%define version 1.4.4
%define release 4
%define zope_home %{_prefix}/lib/zope
%define software_home %{zope_home}/lib/python
Summary: A Zope product to store larges files outside the ZODB
Name: zope-%{product}
Version: %{version}
Release: %{release}
License: GPL
Group: System/Servers
Source0: %{product}-%{version}.tar.bz2
URL: http://www.zope.org/Members/shh/ExtFile
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-rootdir
BuildArch: noarch
Requires: zope python-imaging
Conflicts: ExtFile
#----------------------------------------------------------------------
%description
A Zope product to store larges files outside the ZODB.
#----------------------------------------------------------------------
%prep
%setup -c
%build
%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, zope, zope, 0755)
%doc %{product}/README.txt %{product}/CHANGES.txt %{product}/UPGRADE.txt %{product}/version.txt
%{software_home}/Products/*
#----------------------------------------------------------------------
%changelog
* Mon Jan 22 2007 Kevin Deldycke <kevin@nexedi.com> 1.4.4-4mdv2007.0
- Rebuild for Mandriva 2007.0
* Thu Mar 09 2006 Kevin Deldycke <kevin@nexedi.com> 1.4.4-3mdk
- Add a conflict statement with ExtFile
* Wed Feb 01 2006 Kevin Deldycke <kevin@nexedi.com> 1.4.4-2mdk
- Give ownership to zope
* Wed Jan 18 2006 Kevin Deldycke <kevin@nexedi.com> 1.4.4-1mdk
- New release for Mandriva 2006
- Spec file updated
- Update to version 1.4.4
* Fri May 13 2005 Nicolas L�ureuil <neoclust@mandriva.org> 1.1.3-4mdk
- Rebuild
* Wed Sep 05 2003 Sebastien Robin <seb@nexedi.com> 1.1.3-3mdk
- Update spec in order to follows Mandrake Rules
* Wed Apr 25 2003 Sebastien Robin <seb@nexedi.com> 1.1.3-2nxd
- Clean the spec file
* Mon Feb 3 2003 Jean-Paul Smets <jp@nexedi.com> 1.1.3-1nxd
- Initial release