]> git.pld-linux.org Git - packages/Zope-CMFQuickInstallerTool.git/blobdiff - Zope-CMFQuickInstallerTool.spec
- upgraded to version 1.5.0
[packages/Zope-CMFQuickInstallerTool.git] / Zope-CMFQuickInstallerTool.spec
index 898d3e2cce037e8ac56091bb48da5e9429fcc969..dd0ce11278e44f45b2716afbe5dad0084b849432 100644 (file)
@@ -1,22 +1,22 @@
 %include       /usr/lib/rpm/macros.python
-
 %define                zope_subname    CMFQuickInstallerTool
-
-Summary:       CMFQuickInstallerTool is a Zope product independent from the former CMFQuickInstaller
-Summary(pl):   CMFQuickInstallerTool jest dodatkiem do Zope niezale¿nym od formy CMFQuickInstaller
+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.2.1
+Version:       1.5.0
 Release:       1
-License:       GNU
+License:       GPL
 Group:         Development/Tools
-Source0:       http://switch.dl.sourceforge.net/sourceforge/collective/%{zope_subname}_%{version}.tgz
-# Source0-md5: baf0d7949c238ecfe604bdcfb2398de0
-URL:           http://cvs.bluedynamics.org/viewcvs/CMFQuickInstallerTool/
+Source0:       http://dl.sourceforge.net/collective/%{zope_subname}-%{version}.tgz
+# Source0-md5: 904c062a91f4fa0502fc78072b38767e
+URL:           http://sourceforge.net/projects/collective/
 %pyrequires_eq python-modules
+Requires:      Zope-CMF
 Requires:      Zope
-Requires:      CMF
+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
 
@@ -26,49 +26,43 @@ CMFQuickInstaller. The main difference to CMFQuickInstaller the
 tracking of what a product creates during install.
 
 %description -l pl
-CMFQuickInstallerToolL jest dodatkiem do Zope niezale¿nym od formy
-CMFQuickInstaller. Dodatek w stosunku do CMFQuickInstaller umo¿liwa
-¶ledzenie zmian produktów podczas tworzenia instalacji.
+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 -c %{zope_subname}-%{version}
-
-%build
-cd %{zope_subname}
-rm -rf `find . -type d -name CVS`
-rm -rf .cvsignore
-mkdir docs
-mv -f AUTHORS README.txt docs/
-
+%setup -q -n %{zope_subname}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{product_dir}
+install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
 
-cp -af * $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
+cp -af {forms,interfaces,*.py,*.gif,version.txt,refresh.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
 
-%py_comp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
-%py_ocomp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
+%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 {} \;;
-rm -rf $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}/docs
+# 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
 
-%preun
-
 %postun
-if [ -f /var/lock/subsys/zope ]; then
-       /etc/rc.d/init.d/zope restart >&2
+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 %{zope_subname}/docs/*
-%{product_dir}/%{zope_subname}
+%doc AUTHORS README.txt ChangeLog DEPENDS
+%{_datadir}/%{name}
This page took 0.065174 seconds and 4 git commands to generate.