Name:               CMFPhoto
Summary:            A Zope product to manage images better...
Version:            1.2.3
Release:            5mdk
Group:              Development/Python
Requires:           zope
License:            GPL
URL:                http://www.zope.org
Packager:           Sebastien Robin <seb@nexedi.com>
BuildRoot:          %{_tmppath}/%{name}-%{version}-rootdir
Buildarch:          noarch

Source: %{name}-%{version}.tar.bz2

#----------------------------------------------------------------------
%description

This product provides a Photo object and a Photo Folder object for
managing digital images in Zope.

#----------------------------------------------------------------------
%prep


rm -rf $RPM_BUILD_ROOT
%setup -a 0

#----------------------------------------------------------------------
%build

#----------------------------------------------------------------------
%install

install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}
install %{name}-%{version}/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}

install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/plone_photo
install %{name}-%{version}/skins/plone_photo/*.pt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/plone_photo
install %{name}-%{version}/skins/plone_photo/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/plone_photo

install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Extensions
install %{name}-%{version}/Extensions/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Extensions

%clean
rm -rf $RPM_BUILD_ROOT

#----------------------------------------------------------------------
%files
%defattr(-,root,root,0755)
%doc README

%{_libdir}/zope/lib/python/Products/%{name}/

#----------------------------------------------------------------------
%changelog
* Wed Sep 12 2003 Sebastien Robin <seb@nexedi.com> 1.2.3-5mdk
- Make now signed rpm

* Thu Sep 04 2003 Sebatien Robin <seb@nexedi.com> 1.2.3-4mdk
- change in the spec file '/usr/lib' by %{_libdir}

* Wed Sep 03 2003 Sébastien Robin <seb@nexedi.com> 1.2.3-3mdk
- Update this rpm in order to follows Mandrake rules

* Wed Apr 25 2003 Sébastien Robin <seb@nexedi.com> 1.2.3-2nxd
- Clean the spec file

* Mon Feb 3 2003 Jean-Paul Smets <jp@nexedi.com> 1.2.3-1nxd
- Initial release
