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 cd %{zope_subname}-%{version}
48 mv -f ArchExample/ChangeLog ../docs/ArchExample
49 mv -f ArchGenXML/README ../docs/ArchGenXML
50 mv -f Archetypes/{docs/*,AUTHORS,ChangeLog,README.txt,TODO.txt} ../docs/Archetypes
51 rm -rf Archetypes/docs
52 mv -f generator/{ChangeLog,README} ../docs/generator
53 mv -f validation/{ChangeLog,README} ../docs/validation
56 rm -rf $RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
59 cp -af %{zope_subname}-%{version}/{ArchExample,ArchGenXML,Archetypes,generator,validation} $RPM_BUILD_ROOT%{_datadir}/%{name}
61 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
62 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
64 rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/docs
67 rm -rf $RPM_BUILD_ROOT
70 for p in ArchExample ArchGenXML Archetypes generator validation ; do
71 /usr/sbin/installzopeproduct %{_datadir}/%{name}/$p
73 if [ -f /var/lock/subsys/zope ]; then
74 /etc/rc.d/init.d/zope restart >&2
78 if [ "$1" = "0" ]; then
79 for p in ArchExample ArchGenXML Archetypes generator validation; do
80 /usr/sbin/installzopeproduct -d $p
83 if [ -f /var/lock/subsys/zope ]; then
84 /etc/rc.d/init.d/zope restart >&2
88 %defattr(644,root,root,755)