1 %include /usr/lib/rpm/macros.python
3 %define zope_subname archetypes
5 Summary: Archetypes - a framework for developing new content types in Plone
6 Summary(pl): Archetypes - nowe ¶rodowisko pracy dla twórców serwisów Plone
7 Name: Zope-%{zope_subname}
11 Group: Development/Tools
12 Source0: http://dl.sourceforge.net/%{zope_subname}/%{zope_subname}-%{version}.tgz
13 # Source0-md5: 53f3ccf5a88ce3a91b50e8a82165c2de
14 URL: http://dreamcatcher.homeunix.org/
15 %pyrequires_eq python-modules
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define product_dir /usr/lib/zope/Products
25 Archetypes is a framework for developing new content types in
26 Plone. The power of Archetypes is, first, in automatically generating
27 forms; second, in providing a library of stock field types, form
28 widgets, and field validators; third, in easily integrating custom
29 fields, widgets, and validators; and fourth, in automating
30 transformations of rich content.
33 Archetypes jest nowym ¶rodowiskiem pracy dla twórców serwisów
34 Plone. Si³± Archetypes s± automatycznie generowane formularze,
35 zarz±dzalne biblioteki pól typów, kontrolek i korektorów pól, a tak¿e
36 ³atwa integracja zaawansowanych mo¿liwo¶ci z w/w typami. Posiada
37 równie¿ bogat± automatykê.
40 %setup -q -c %{zope_subname}-%{version}
43 mkdir docs docs/ArchExample docs/ArchGenXML docs/Archetypes docs/generator docs/validation
44 cd %{zope_subname}-%{version}
46 mv -f ArchExample/ChangeLog ../docs/ArchExample
47 mv -f ArchGenXML/README ../docs/ArchGenXML
48 mv -f Archetypes/{/docs/*,AUTHORS,ChangeLog,README.txt,TODO.txt} ../docs/Archetypes
49 rm -rf Archetypes/docs
50 mv -f generator/{ChangeLog,MANIFEST.in,README} ../docs/generator
51 mv -f validation/{ChangeLog,MANIFEST.in,README} ../docs/validation
54 rm -rf $RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT%{product_dir}
57 cd %{zope_subname}-%{version}
58 cp -af * $RPM_BUILD_ROOT%{product_dir}
60 %py_comp $RPM_BUILD_ROOT%{product_dir}
61 %py_ocomp $RPM_BUILD_ROOT%{product_dir}
63 find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
64 rm -rf $RPM_BUILD_ROOT%{product_dir}/docs
67 rm -rf $RPM_BUILD_ROOT
70 if [ -f /var/lock/subsys/zope ]; then
71 /etc/rc.d/init.d/zope restart >&2
75 if [ -f /var/lock/subsys/zope ]; then
76 /etc/rc.d/init.d/zope restart >&2
80 %defattr(644,root,root,755)
82 %{product_dir}/ArchExample
83 %{product_dir}/ArchGenXML
84 %{product_dir}/Archetypes
85 %{product_dir}/generator
86 %{product_dir}/validation