-%include /usr/lib/rpm/macros.python
+#
+# TODO
+# - Zope starting but connection refused (on WWW)! archetypes problem?
+#
%define zope_subname archetypes
-Summary: A framework for developing new content types in Plone
-Summary(pl): Nowe ¶rodowisko pracy dla twórców serwisów Plone
+Summary: Framework designed to facilitate the building of applications for Plone and CMF.
+Summary(pl): ¦rodowsko u³atwiaj±ce budowanie aplikacji dla Plone i CMF.
Name: Zope-%{zope_subname}
Version: 1.2.0
-Release: 1
+Release: 4
License: GPL
Group: Development/Tools
Source0: http://dl.sourceforge.net/%{zope_subname}/%{zope_subname}-%{version}.tgz
# Source0-md5: b25fdf747a286488b17e512205f4f1ac
URL: http://dreamcatcher.homeunix.org/
%pyrequires_eq python-modules
-Requires: Zope-CMF
-Requires: Zope-CMFPlone
Requires: Zope
+Requires: Zope-CMFPlone
+Requires: Zope-CMF
+Requires: Zope-PortalTransforms
Requires(post,postun): /usr/sbin/installzopeproduct
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Conflicts: Plone
%description
-Archetypes is a framework for developing new content types in
-Plone. The power of Archetypes is, first, in automatically generating
-forms; second, in providing a library of stock field types, form
-widgets, and field validators; third, in easily integrating custom
-fields, widgets, and validators; and fourth, in automating
-transformations of rich content.
+Archetypes (formerly known as CMFTypes) is a framework designed
+to facilitate the building of applications for Plone and CMF.
+Its main purpose is to provide a common method for building
+content objects, based on schema definitions.
%description -l pl
-Archetypes jest nowym ¶rodowiskiem pracy dla twórców serwisów
-Plone. Si³± Archetypes s± automatycznie generowane formularze,
-zarz±dzalne biblioteki pól typów, kontrolek i korektorów pól, a tak¿e
-³atwa integracja zaawansowanych mo¿liwo¶ci z w/w typami. Posiada
-równie¿ bogat± automatykê.
+Archetypes (poprzednio znany jako CMFTypes) jest ¶rodowskiem
+u³atwiaj±cym budowanie aplikacji dla Plone i CMF.
+G³ównym zadaniem jest dostarczenie podstawowych metod
+do zbudowania obiektów typu content opartych na zdefiniowanych
+schematach.
%prep
%setup -q -c
rm -f %{zope_subname}-%{version}/ArchGenXML/.cvsignore
+find . -type d -name debian | xargs rm -rf
%build
install -d docs/{ArchExample,ArchGenXML,Archetypes,generator,validation}
-cd %{zope_subname}-%{version}
-mv -f ArchExample/ChangeLog ../docs/ArchExample
-mv -f ArchGenXML/README ../docs/ArchGenXML
-mv -f Archetypes/{docs/*,AUTHORS,ChangeLog,README.txt,TODO.txt} ../docs/Archetypes
-rm -rf Archetypes/docs
-mv -f generator/{ChangeLog,README} ../docs/generator
-mv -f validation/{ChangeLog,README} ../docs/validation
+mv -f %{zope_subname}-%{version}/ArchExample/ChangeLog docs/ArchExample
+mv -f %{zope_subname}-%{version}/ArchGenXML/README docs/ArchGenXML
+mv -f %{zope_subname}-%{version}/Archetypes/{AUTHORS,ChangeLog,README.txt,TODO.txt} docs/Archetypes
+mv -f %{zope_subname}-%{version}/generator/{ChangeLog,README} docs/generator
+mv -f %{zope_subname}-%{version}/validation/{ChangeLog,README} docs/validation
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
-# should {Archetypes,validation}/tests and */version.txt be installed or not?
+install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
cp -af %{zope_subname}-%{version}/{ArchExample,ArchGenXML,Archetypes,generator,validation} $RPM_BUILD_ROOT%{_datadir}/%{name}
%py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
%py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
-# find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm: -rf {} \;;
-rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/docs
+# rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/docs
%clean
rm -rf $RPM_BUILD_ROOT
%post
-for p in ArchExample ArchGenXML Archetypes generator validation ; do
+for p in ArchExample ArchGenXML Archetypes generator validation; do
/usr/sbin/installzopeproduct %{_datadir}/%{name}/$p
done
if [ -f /var/lock/subsys/zope ]; then
%postun
if [ "$1" = "0" ]; then
- for p in ArchExample ArchGenXML Archetypes generator validation ; do
+ for p in ArchExample ArchGenXML Archetypes generator validation; do
/usr/sbin/installzopeproduct -d $p
done
fi
%files
%defattr(644,root,root,755)
-%doc docs/*
+%doc docs/*
%{_datadir}/%{name}