1 %define fversion %(echo %{version} |tr . _)
2 %define zope_subname exUserFolder
3 Summary: Extensible User Folder
4 Summary(pl): Rozszerzalne foldery u¿ytkowników
5 Name: Zope-%{zope_subname}
9 Group: Development/Tools
10 Source0: http://dl.sourceforge.net/exuserfolder/%{zope_subname}-%{fversion}.tgz
11 # Source0-md5: da885980aa9f7f8d19bf3f260242b2fe
12 Patch0: %{name}-user_is_a_member.patch
13 URL: http://www.zope.org/Members/TheJester/exUserFolder/
14 Requires(post,postun): /usr/sbin/installzopeproduct
15 %pyrequires_eq python-modules
17 Requires: Zope-CMF >= 1.4.2
18 Requires: Zope-CMFPlone >= 2.0
19 Requires: Zope-archetypes >= 1.2.5
20 Requires: Zope-stripogram
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Extensible User Folder is a user folder that requires the
26 authentication of users to be removed from the storage of properties
30 Rozszerzalne foldery u¿ytkowników s± folderami u¿ytkowników
31 wymagaj±cymi autoryzacji oddzielonej od kont u¿ytkowników.
34 %setup -q -n %{zope_subname}
38 rm -rf $RPM_BUILD_ROOT
39 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
41 cp -af {Auth,Crypto,Group,Membership,Prop}Sources Extensions GroupSource I18N \
42 PropertyEditor UserCache common dtml nullPlugin *.py *.gif version.txt \
43 $RPM_BUILD_ROOT%{_datadir}/%{name}
45 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
46 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
48 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
51 rm -rf $RPM_BUILD_ROOT
54 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
55 if [ -f /var/lock/subsys/zope ]; then
56 /etc/rc.d/init.d/zope restart >&2
60 if [ "$1" = "0" ]; then
61 /usr/sbin/installzopeproduct -d %{zope_subname}
62 if [ -f /var/lock/subsys/zope ]; then
63 /etc/rc.d/init.d/zope restart >&2
68 %defattr(644,root,root,755)
69 %doc doc LICENSE CHANGES.txt