]>
Commit | Line | Data |
---|---|---|
71d1a09d | 1 | %define zope_subname CMFQuickInstallerTool |
4145e939 | 2 | Summary: A Zope product independent from the former CMFQuickInstaller |
de3eb09e | 3 | Summary(pl.UTF-8): Dodatek do Zope niezależny od poprzedniego CMFQuickInstallera |
71d1a09d | 4 | Name: Zope-%{zope_subname} |
dbafa192 | 5 | Version: 1.5.7 |
3b65be77 | 6 | Release: 1 |
20981f62 | 7 | License: GPL |
71d1a09d | 8 | Group: Development/Tools |
dbafa192 | 9 | Source0: http://plone.org/products/cmfquickinstallertool/releases/%{version}/%{zope_subname}-%{version}.tar.gz |
10 | # Source0-md5: 1f662098e304c11167a2c5e8ed46eb14 | |
ba87d57e | 11 | URL: http://sourceforge.net/projects/collective/ |
6f11422c | 12 | BuildRequires: python |
d23d1524 | 13 | BuildRequires: rpmbuild(macros) >= 1.268 |
71d1a09d | 14 | %pyrequires_eq python-modules |
98c6a803 | 15 | Requires(post,postun): /usr/sbin/installzopeproduct |
d23d1524 ER |
16 | Requires: Zope |
17 | Requires: Zope-CMF | |
18 | Conflicts: CMF | |
71d1a09d | 19 | BuildArch: noarch |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %define product_dir /usr/lib/zope/Products | |
23 | ||
24 | %description | |
25 | CMFQuickInstallerTool is a Zope product independent from the former | |
26 | CMFQuickInstaller. The main difference to CMFQuickInstaller the | |
27 | tracking of what a product creates during install. | |
28 | ||
0c0583f6 JR |
29 | %description -l pl.UTF-8 |
30 | CMFQuickInstallerTool jest dodatkiem do Zope niezależnym od | |
31 | poprzedniego CMFQuickInstallera. Główna różnica w stosunku do | |
32 | CMFQuickInstallera to możliwość śledzenia, co tworzy dany produkt w | |
0f377ba3 | 33 | czasie instalacji. |
71d1a09d | 34 | |
35 | %prep | |
20981f62 | 36 | %setup -q -n %{zope_subname} |
71d1a09d | 37 | |
71d1a09d | 38 | %install |
39 | rm -rf $RPM_BUILD_ROOT | |
98c6a803 | 40 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name} |
3af97f29 | 41 | |
83a60904 | 42 | cp -af {Extensions,forms,interfaces,tests,*.py,*.gif,version.txt,actions,properties} $RPM_BUILD_ROOT%{_datadir}/%{name} |
71d1a09d | 43 | |
98c6a803 JK |
44 | %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name} |
45 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
71d1a09d | 46 | |
d78c1cd3 | 47 | # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;; |
71d1a09d | 48 | |
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %post | |
98c6a803 | 53 | /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname} |
d23d1524 | 54 | %service -q zope restart |
71d1a09d | 55 | |
71d1a09d | 56 | %postun |
98c6a803 JK |
57 | if [ "$1" = "0" ]; then |
58 | /usr/sbin/installzopeproduct -d %{zope_subname} | |
d23d1524 | 59 | %service -q zope restart |
71d1a09d | 60 | fi |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
3b65be77 | 64 | %doc AUTHORS README.txt ChangeLog DEPENDS HISTORY.txt PLIP.TXT READMEPATCH.TXT |
98c6a803 | 65 | %{_datadir}/%{name} |