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}
36 find . -type f -name .cvsignore | xargs rm -rf
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
42 cp -af {Auth,Crypto,Group,Membership,Prop}Sources Extensions GroupSource I18N \
43 PropertyEditor UserCache common dtml nullPlugin *.py *.gif version.txt \
44 $RPM_BUILD_ROOT%{_datadir}/%{name}
46 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
47 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
49 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
52 rm -rf $RPM_BUILD_ROOT
55 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
56 if [ -f /var/lock/subsys/zope ]; then
57 /etc/rc.d/init.d/zope restart >&2
61 if [ "$1" = "0" ]; then
62 /usr/sbin/installzopeproduct -d %{zope_subname}
63 if [ -f /var/lock/subsys/zope ]; then
64 /etc/rc.d/init.d/zope restart >&2
69 %defattr(644,root,root,755)
70 %doc doc LICENSE CHANGES.txt