]> git.pld-linux.org Git - packages/Zope-CMFQuickInstallerTool.git/blob - Zope-CMFQuickInstallerTool.spec
e9b70985f5f662f7414655c03e72e431093f5c7b
[packages/Zope-CMFQuickInstallerTool.git] / Zope-CMFQuickInstallerTool.spec
1 %define         zope_subname    CMFQuickInstallerTool
2 Summary:        A Zope product independent from the former CMFQuickInstaller
3 Summary(pl):    Dodatek do Zope niezale¿ny od poprzedniego CMFQuickInstallera
4 Name:           Zope-%{zope_subname}
5 Version:        1.5.1
6 Release:        2
7 License:        GPL
8 Group:          Development/Tools
9 Source0:        http://dl.sourceforge.net/collective/%{zope_subname}-%{version}.tgz
10 # Source0-md5:  c31d26cbfb515fb90169aafe17f0bdfa
11 URL:            http://sourceforge.net/projects/collective/
12 %pyrequires_eq  python-modules
13 Requires:       Zope-CMF
14 Requires:       Zope
15 Requires(post,postun):  /usr/sbin/installzopeproduct
16 BuildArch:      noarch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 Conflicts:      CMF
19
20 %define         product_dir     /usr/lib/zope/Products
21
22 %description
23 CMFQuickInstallerTool is a Zope product independent from the former
24 CMFQuickInstaller. The main difference to CMFQuickInstaller the
25 tracking of what a product creates during install.
26
27 %description -l pl
28 CMFQuickInstallerTool jest dodatkiem do Zope niezale¿nym od
29 poprzedniego CMFQuickInstallera. G³ówna ró¿nica w stosunku do
30 CMFQuickInstallera to mo¿liwo¶æ ¶ledzenia, co tworzy dany produkt w
31 czasie instalacji.
32
33 %prep
34 %setup -q -n %{zope_subname}
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
39
40 cp -af {forms,interfaces,*.py,*.gif,version.txt,refresh.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
41
42 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
43 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
44
45 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %post
51 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
52 if [ -f /var/lock/subsys/zope ]; then
53         /etc/rc.d/init.d/zope restart >&2
54 fi
55
56 %postun
57 if [ "$1" = "0" ]; then
58         /usr/sbin/installzopeproduct -d %{zope_subname}
59         if [ -f /var/lock/subsys/zope ]; then
60                 /etc/rc.d/init.d/zope restart >&2
61         fi
62 fi
63
64 %files
65 %defattr(644,root,root,755)
66 %doc AUTHORS README.txt ChangeLog DEPENDS
67 %{_datadir}/%{name}
This page took 0.090298 seconds and 3 git commands to generate.