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
12 BuildRequires: rpmbuild(macros) >= 1.268
13 Requires(post,postun): /usr/sbin/installzopeproduct
14 %pyrequires_eq python-modules
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 This is a patch-product that modifies ObjectManager to allow folders
21 to be ordered by the user.
24 Poprawka modyfikuj±ca ObjectManagera, aby pozwala³ na sortowanie
25 folderów przez u¿ytkownika.
28 %setup -q -n %{zope_subname}
31 rm -rf $RPM_BUILD_ROOT
32 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
34 cp -af *.py $RPM_BUILD_ROOT%{_datadir}/%{name}
36 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
37 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
39 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
42 rm -rf $RPM_BUILD_ROOT
45 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
46 %service -q zope restart
49 if [ "$1" = "0" ]; then
50 /usr/sbin/installzopeproduct -d %{zope_subname}
51 %service -q zope restart
55 %defattr(644,root,root,755)
56 %doc CHANGES HISTORY LICENSE.txt README.txt