3 # - Zope starting but connection refused (on WWW)! archetypes problem?
5 %define zope_subname archetypes
6 Summary: Framework designed to facilitate the building of applications for Plone and CMF.
7 Summary(pl): ¦rodowsko u³atwiaj±ce budowanie aplikacji dla Plone i CMF.
8 Name: Zope-%{zope_subname}
12 Group: Development/Tools
13 Source0: http://dl.sourceforge.net/%{zope_subname}/%{zope_subname}-%{version}.tgz
14 # Source0-md5: b25fdf747a286488b17e512205f4f1ac
15 URL: http://dreamcatcher.homeunix.org/
16 %pyrequires_eq python-modules
18 Requires: Zope-CMFPlone
20 Requires: Zope-PortalTransforms
21 Requires(post,postun): /usr/sbin/installzopeproduct
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 Archetypes (formerly known as CMFTypes) is a framework designed
29 to facilitate the building of applications for Plone and CMF.
30 Its main purpose is to provide a common method for building
31 content objects, based on schema definitions.
34 Archetypes (poprzednio znany jako CMFTypes) jest ¶rodowskiem
35 u³atwiaj±cym budowanie aplikacji dla Plone i CMF.
36 G³ównym zadaniem jest dostarczenie podstawowych metod
37 do zbudowania obiektów typu content opartych na zdefiniowanych
42 rm -f %{zope_subname}-%{version}/ArchGenXML/.cvsignore
43 find . -type d -name debian | xargs rm -rf
46 install -d docs/{ArchExample,ArchGenXML,Archetypes,generator,validation}
47 mv -f %{zope_subname}-%{version}/ArchExample/ChangeLog docs/ArchExample
48 mv -f %{zope_subname}-%{version}/ArchGenXML/README docs/ArchGenXML
49 mv -f %{zope_subname}-%{version}/Archetypes/{AUTHORS,ChangeLog,README.txt,TODO.txt} docs/Archetypes
50 mv -f %{zope_subname}-%{version}/generator/{ChangeLog,README} docs/generator
51 mv -f %{zope_subname}-%{version}/validation/{ChangeLog,README} docs/validation
54 rm -rf $RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
57 cp -af %{zope_subname}-%{version}/{ArchExample,ArchGenXML,Archetypes,generator,validation} $RPM_BUILD_ROOT%{_datadir}/%{name}
59 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
60 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
62 # rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/docs
65 rm -rf $RPM_BUILD_ROOT
68 for p in ArchExample ArchGenXML Archetypes generator validation; do
69 /usr/sbin/installzopeproduct %{_datadir}/%{name}/$p
71 if [ -f /var/lock/subsys/zope ]; then
72 /etc/rc.d/init.d/zope restart >&2
76 if [ "$1" = "0" ]; then
77 for p in ArchExample ArchGenXML Archetypes generator validation; do
78 /usr/sbin/installzopeproduct -d $p
81 if [ -f /var/lock/subsys/zope ]; then
82 /etc/rc.d/init.d/zope restart >&2
86 %defattr(644,root,root,755)