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
16 %pyrequires_eq python-modules
18 Requires: Zope-CMF >= 1:1.4.2
19 Requires: Zope-CMFPlone >= 2.0
20 Requires: Zope-archetypes >= 1.2.5
21 Requires: Zope-stripogram
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Extensible User Folder is a user folder that requires the
27 authentication of users to be removed from the storage of properties
31 Rozszerzalne foldery u¿ytkowników s± folderami u¿ytkowników
32 wymagaj±cymi autoryzacji oddzielonej od kont u¿ytkowników.
35 %setup -q -n %{zope_subname}
37 find . -type f -name .cvsignore | xargs rm -rf
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
43 cp -af {Auth,Crypto,Group,Membership,Prop}Sources Extensions GroupSource I18N \
44 PropertyEditor UserCache common dtml nullPlugin *.py *.gif version.txt \
45 $RPM_BUILD_ROOT%{_datadir}/%{name}
47 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
48 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
50 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
53 rm -rf $RPM_BUILD_ROOT
56 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
57 if [ -f /var/lock/subsys/zope ]; then
58 /etc/rc.d/init.d/zope restart >&2
62 if [ "$1" = "0" ]; then
63 /usr/sbin/installzopeproduct -d %{zope_subname}
64 if [ -f /var/lock/subsys/zope ]; then
65 /etc/rc.d/init.d/zope restart >&2
70 %defattr(644,root,root,755)
71 %doc doc LICENSE CHANGES.txt