X-Git-Url: http://git.pld-linux.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Zope-WebMail.spec;h=6ce0866808210d27996f7126318d1985885d5acc;hb=903e9b730750f15f7e4b0597de545dd29665aeb0;hp=3d4eea91376f8f5b4832546d84a977126ef8895d;hpb=64da60cddef3d80a69b6dd47f4bfc7121b507a38;p=packages%2FZope-WebMail.git diff --git a/Zope-WebMail.spec b/Zope-WebMail.spec index 3d4eea9..6ce0866 100644 --- a/Zope-WebMail.spec +++ b/Zope-WebMail.spec @@ -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}