X-Git-Url: http://git.pld-linux.org/?p=packages%2FZope-epoz.git;a=blobdiff_plain;f=Zope-epoz.spec;h=5bf623489f98a08e1942d053d0ba2d237019854f;hp=a717bb4fa078dbe934520a1c6034abc0f9ed8b7c;hb=0a6345c3282d7b20ff5ea6aa8e701a8932bfea6e;hpb=9eb4d122b7497faee51b5c5fdbfb894592008344 diff --git a/Zope-epoz.spec b/Zope-epoz.spec index a717bb4..5bf6234 100644 --- a/Zope-epoz.spec +++ b/Zope-epoz.spec @@ -1,28 +1,29 @@ -%include /usr/lib/rpm/macros.python %define zope_subname epoz -Summary: epoz allows you to edit Zope or Plone-objects with a wysiwyg-editor -Summary(pl): Dodatek do Zope lub Plone umo¿liwiaj±cy manipulacje na obiektach w trybie WYSIWYG +Summary: epoz allows you to edit Zope or Plone-objects with a WYSIWYG-editor +Summary(pl.UTF-8): Dodatek do Zope lub Plone umożliwiający manipulacje na obiektach w trybie WYSIWYG Name: Zope-%{zope_subname} Version: 1.0.2 -Release: 1 +Release: 2 License: ZPL 2.0 Group: Development/Tools Source0: http://dl.sourceforge.net/%{zope_subname}/%{zope_subname}-%{version}.tgz # Source0-md5: 4d941438805dd849d4a3256c52ba65a4 URL: http://sourceforge.net/projects/epoz/ +BuildRequires: python +BuildRequires: rpmbuild(macros) >= 1.268 %pyrequires_eq python-modules -Requires: Zope Requires(post,postun): /usr/sbin/installzopeproduct +Requires: Zope Obsoletes: Zope-Epoz BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description -epoz allows you to edit Zope or Plone-objects with a wysiwyg-editor. +epoz allows you to edit Zope or Plone-objects with a WYSIWYG-editor. -%description -l pl -Dodatek do Zope lub Plone umo¿liwiaj±cy manipulacje na obiektach w +%description -l pl.UTF-8 +Dodatek do Zope lub Plone umożliwiający manipulacje na obiektach w trybie WYSIWYG. %prep @@ -46,16 +47,12 @@ 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 +%service -q zope restart %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 + %service -q zope restart fi %files