%define zope_subname ZAAPlugins
Summary: A set of plugins for use with ZAttachmentAttribute
-Summary(pl): Zestaw wtyczek do wykorzystania z ZAttachmentAttribute
+Summary(pl.UTF-8): Zestaw wtyczek do wykorzystania z ZAttachmentAttribute
Name: Zope-%{zope_subname}
Version: 2.3
Release: 1
Source0: http://dl.sourceforge.net/ingeniweb/%{zope_subname}-%{version}.tar.gz
# Source0-md5: 64f6476d8ae6f2a572a8a2662fa5ec7c
URL: http://sourceforge.net/projects/ingeniweb/
+BuildRequires: rpmbuild(macros) >= 1.268
%pyrequires_eq python-modules
-Requires: Zope
Requires(post,postun): /usr/sbin/installzopeproduct
+Requires: Zope
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
A set of plugins for use with ZAttachmentAttribute.
-%description -l pl
+%description -l pl.UTF-8
Zestaw wtyczek do wykorzystania z ZAttachmentAttribute.
%prep
%setup -q -n %{zope_subname}
-%build
-
%install
rm -rf $RPM_BUILD_ROOT
-
install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
cp -af Audio Autocad Extensions HTML Image \
%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