1 %define zope_subname OrderedFolderSupportPatch
2 Summary: Patch-product that modifies ObjectManager
3 Summary(pl): Poprawka modyfikuj±ca ObjectManagera
4 Name: Zope-%{zope_subname}
8 Group: Development/Tools
9 Source0: OrderedFolderSupportPatch.tar.gz
10 URL: http://www.nuxeo.org
11 Requires(post,postun): /usr/sbin/installzopeproduct
12 %pyrequires_eq python-modules
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 This is a patch-product that modifies ObjectManager to allow folders
19 to be ordered by the user.
22 Poprawka modyfikuj±ca ObjectManagera, aby pozwala³ na sortowanie
23 folderów przez u¿ytkownika.
26 %setup -q -n %{zope_subname}
29 rm -rf $RPM_BUILD_ROOT
30 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
32 cp -af *.py $RPM_BUILD_ROOT%{_datadir}/%{name}
34 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
35 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
37 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
40 rm -rf $RPM_BUILD_ROOT
43 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
44 if [ -f /var/lock/subsys/zope ]; then
45 /etc/rc.d/init.d/zope restart >&2
49 if [ "$1" = "0" ]; then
50 /usr/sbin/installzopeproduct -d %{zope_subname}
51 if [ -f /var/lock/subsys/zope ]; then
52 /etc/rc.d/init.d/zope restart >&2
57 %defattr(644,root,root,755)
58 %doc CHANGES HISTORY LICENSE.txt README.txt