]> git.pld-linux.org Git - packages/Zope-OrderedFolderSupportPatch.git/blob - Zope-OrderedFolderSupportPatch.spec
- remove R:python
[packages/Zope-OrderedFolderSupportPatch.git] / Zope-OrderedFolderSupportPatch.spec
1 %define         zope_subname    OrderedFolderSupportPatch
2 Summary:        Patch-product that modifies ObjectManager
3 Summary(pl):    Poprawka modyfikuj±ca ObjectManagera
4 Name:           Zope-%{zope_subname}
5 Version:        1.0
6 Release:        3
7 License:        GPL
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
13 Requires:       Zope >= 2.6
14 BuildArch:      noarch
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 This is a patch-product that modifies ObjectManager to allow folders
19 to be ordered by the user.
20
21 %description -l pl
22 Poprawka modyfikuj±ca ObjectManagera, aby pozwala³ na sortowanie
23 folderów przez u¿ytkownika.
24
25 %prep
26 %setup -q -n %{zope_subname}
27
28 %install
29 rm -rf $RPM_BUILD_ROOT
30 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
31
32 cp -af *.py $RPM_BUILD_ROOT%{_datadir}/%{name}
33
34 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
35 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
36
37 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
38
39 %clean
40 rm -rf $RPM_BUILD_ROOT
41
42 %post
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
46 fi
47
48 %postun
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
53         fi
54 fi
55
56 %files
57 %defattr(644,root,root,755)
58 %doc CHANGES HISTORY LICENSE.txt README.txt
59 %{_datadir}/%{name}
This page took 0.058902 seconds and 3 git commands to generate.