]> git.pld-linux.org Git - packages/Zope-WebMail.git/blobdiff - Zope-WebMail.spec
- rel. 2 for rebuild with python 2.4
[packages/Zope-WebMail.git] / Zope-WebMail.spec
index 3d4eea91376f8f5b4832546d84a977126ef8895d..6ce0866808210d27996f7126318d1985885d5acc 100644 (file)
@@ -1,59 +1,61 @@
-%include       /usr/lib/rpm/macros.python
 %define                zope_subname    WebMail
-Summary:       Webmail - a mail client for Zope
-Summary(pl):   Webmail - klient poczty elektronicznej dla Zope
+Summary:       A mail client for Zope
+Summary(pl):   Klient poczty elektronicznej dla Zope
 Name:          Zope-%{zope_subname}
-Version:       4.1
-Release:       1
-License:       GNU
-Group:         Development/Tools      
-Source0:       http://zope.org/Members/sgiraud/%{zope_subname}/%{zope_subname}/%{zope_subname}_%{version}.tar.gz
-# Source0-md5: 3cc5047f150c66be431a6d1babc403c6
-URL:           http://zope.org/Members/sgiraud/WebMail
+Version:       4.3.1
+Release:       2
+License:       GPL v2+
+Group:         Development/Tools
+Source0:       http://www.pentila.com/produits/WebMail/%{zope_subname}-%{version}.tgz
+# Source0-md5: b35b48977be73eb8511296f3d3f7a244
+URL:           http://www.pentila.com/produits/WebMail/
 %pyrequires_eq python-modules
 Requires:      Zope
+Requires(post,postun): /usr/sbin/installzopeproduct
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define        product_dir     /usr/lib/zope/Products
-
 %description
-Webmail is a mail client for Zope.
+WebMail is a mail client for Zope.
 
 %description -l pl
-Webmail jest klientem poczty elektronicznej dla Zope.
+WebMail jest klientem poczty elektronicznej dla Zope.
 
 %prep
-%setup -q -c %{zope_subname}-%{version}
+%setup -q -n %{zope_subname}
 
-%build
-rm -rf `find . -type d -name CVS`
+find . -type d -name CVS | xargs rm -rf
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{product_dir}
-cp -af * $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
+install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
+
+cp -af {dtml,style_sheet,www,*.py,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}/*.txt
 
 %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 [ -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}/*.txt
-%{product_dir}/%{zope_subname}
+# contains authors
+%doc LICENSE.txt CHANGES.txt
+%{_datadir}/%{name}
This page took 0.091368 seconds and 4 git commands to generate.