%define zope_subname CMFQuickInstallerTool Summary: A Zope product independent from the former CMFQuickInstaller Summary(pl): Dodatek do Zope niezależny od poprzedniego CMFQuickInstallera Name: Zope-%{zope_subname} Version: 1.5.3 Release: 1 License: GPL Group: Development/Tools Source0: http://dl.sourceforge.net/collective/%{zope_subname}-%{version}.tgz # Source0-md5: 4e2a481f2092858129b0901293fcf88d URL: http://sourceforge.net/projects/collective/ BuildRequires: python %pyrequires_eq python-modules Requires: Zope-CMF Requires: Zope Requires(post,postun): /usr/sbin/installzopeproduct BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) Conflicts: CMF %define product_dir /usr/lib/zope/Products %description CMFQuickInstallerTool is a Zope product independent from the former CMFQuickInstaller. The main difference to CMFQuickInstaller the tracking of what a product creates during install. %description -l pl CMFQuickInstallerTool jest dodatkiem do Zope niezależnym od poprzedniego CMFQuickInstallera. Główna różnica w stosunku do CMFQuickInstallera to możliwość śledzenia, co tworzy dany produkt w czasie instalacji. %prep %setup -q -n %{zope_subname} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_datadir}/%{name} cp -af {Extensions,forms,interfaces,tests,*.py,*.gif,version.txt,actions,properties} $RPM_BUILD_ROOT%{_datadir}/%{name} %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name} %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name} # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;; %clean rm -rf $RPM_BUILD_ROOT %post /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname} if [ -f /var/lock/subsys/zope ]; then /etc/rc.d/init.d/zope restart >&2 fi %postun if [ "$1" = "0" ]; then /usr/sbin/installzopeproduct -d %{zope_subname} if [ -f /var/lock/subsys/zope ]; then /etc/rc.d/init.d/zope restart >&2 fi fi %files %defattr(644,root,root,755) %doc AUTHORS README.txt ChangeLog DEPENDS HISTORY.txt PLIP.TXT READMEPATCH.TXT %{_datadir}/%{name}