1 %define zope_subname GroupUserFolder
2 %define part_name groupuserfolder-3-5
3 Summary: A Zope product, a convenient tool to manage groups of users within Zope
4 Summary(pl.UTF-8): Dodatek do Zope z wygodnym narzędziem do zarządzaniem grupami i użytkownikami w Zope
5 Name: Zope-%{zope_subname}
7 # %%define sub_ver Beta2
11 Group: Development/Tools
12 Source0: http://plone.org/products/groupuserfolder/releases/%{version}/%{part_name}-tar.gz
13 # Source0-md5: bbde3e369202eed37c833d37f176af26
14 URL: http://ingeniweb.sourceforge.net/Products/GroupUserFolder/
16 BuildRequires: rpmbuild(macros) >= 1.268
17 # Patch0: Zope-GroupUserFolder-bad_path_python.patch
18 %pyrequires_eq python-modules
19 Requires(post,postun): /usr/sbin/installzopeproduct
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 GroupUserFolder is a Zope product that is a convenient tool to manage
26 groups of users within Zope.
28 %description -l pl.UTF-8
29 GroupUserFolder jest dodatkiem dla Zope zawierającym wygodne narzędzie
30 do zarządzania grupami i użytkownikami zawartymi w Zope.
33 %setup -q -n %{zope_subname}
35 rm -f interfaces/.cvsignore
36 rm -f doc/py2htmldoc.py.orig
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
42 cp -af {Extensions,doc,dtml,interfaces,skins,tests,www,*.py,*.gif,refresh.txt,version.txt,PRODUCT_NAME,product.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 %service -q zope restart
58 if [ "$1" = "0" ]; then
59 /usr/sbin/installzopeproduct -d %{zope_subname}
60 %service -q zope restart
64 %defattr(644,root,root,755)
65 %doc ABOUT CHANGES CONTRIBUTORS README.txt TODO INSTALL.txt design.txt