%define zope_subname BTreeFolder2 Summary: Zope product that acts like a Zope folder but can store many more items Summary(pl): Dodatek do Zope rozszerzający możliwości pracy na folderach Name: Zope-%{zope_subname} Version: 1.0.1 Release: 1 License: ZPL 2.0 Group: Development/Tools Source0: http://hathawaymix.org/Software/%{zope_subname}/%{zope_subname}-%{version}.tar.gz # Source0-md5: 14c5904cd5b4fd1f64e89ca489e4e049 URL: http://hathawaymix.org/Software/BTreeFolder2/ %pyrequires_eq python-modules Requires: Zope Requires(post,postun): /usr/sbin/installzopeproduct BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description BTreeFolder2 is a Zope product that acts like a Zope folder but can store many more items. %description -l pl BTreeFolder2 jest dodatkiem do Zope rozszerzającym możliwości pracy na folderach. %prep %setup -q -n %{zope_subname} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_datadir}/%{name} cp -af tests *.py *.dtml *.gif version.txt $RPM_BUILD_ROOT%{_datadir}/%{name} %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 {} \;; %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 [ "$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 README.txt CHANGES.txt %{_datadir}/%{name}