]> git.pld-linux.org Git - packages/Zope-CMFQuickInstallerTool.git/blobdiff - Zope-CMFQuickInstallerTool.spec
- tabs in preamble
[packages/Zope-CMFQuickInstallerTool.git] / Zope-CMFQuickInstallerTool.spec
index f68fa3eafa4a203431f74d505b6f66b2284f2dba..aa47a7bc66e25c7e8b1f330d77fbe7cbcf5ba386 100644 (file)
@@ -1,18 +1,21 @@
-%include       /usr/lib/rpm/macros.python
 %define                zope_subname    CMFQuickInstallerTool
-Summary:       CMFQuickInstallerTool - a Zope product independent from the former CMFQuickInstaller
-Summary(pl):   CMFQuickInstallerTool - dodatek do Zope niezale¿ny od poprzedniego CMFQuickInstallera
+Summary:       A Zope product independent from the former CMFQuickInstaller
+Summary(pl.UTF-8):     Dodatek do Zope niezależny od poprzedniego CMFQuickInstallera
 Name:          Zope-%{zope_subname}
-Version:       1.2.1
-Release:       2
-License:       GNU
+Version:       1.5.7
+Release:       1
+License:       GPL
 Group:         Development/Tools
-Source0:       http://dl.sourceforge.net/collective/%{zope_subname}_%{version}.tgz
-# Source0-md5: baf0d7949c238ecfe604bdcfb2398de0
-URL:           http://cvs.bluedynamics.org/viewcvs/CMFQuickInstallerTool/
+Source0:       http://plone.org/products/cmfquickinstallertool/releases/%{version}/%{zope_subname}-%{version}.tar.gz
+# Source0-md5: 1f662098e304c11167a2c5e8ed46eb14
+URL:           http://sourceforge.net/projects/collective/
+BuildRequires: python
+BuildRequires: rpmbuild(macros) >= 1.268
 %pyrequires_eq python-modules
-Requires:      CMF
+Requires(post,postun): /usr/sbin/installzopeproduct
 Requires:      Zope
+Requires:      Zope-CMF
+Conflicts:     CMF
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -23,48 +26,40 @@ 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
+%description -l pl.UTF-8
+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 -f .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 {Extensions,forms,interfaces,tests,*.py,*.gif,version.txt,actions,properties} $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
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
-if [ -f /var/lock/subsys/zope ]; then
-       /etc/rc.d/init.d/zope restart >&2
-fi
+/usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
+%service -q zope restart
 
 %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}
+       %service -q zope restart
 fi
 
 %files
 %defattr(644,root,root,755)
-%doc %{zope_subname}/docs/*
-%{product_dir}/%{zope_subname}
+%doc AUTHORS README.txt ChangeLog DEPENDS HISTORY.txt PLIP.TXT READMEPATCH.TXT
+%{_datadir}/%{name}
This page took 0.068364 seconds and 4 git commands to generate.