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