From c765e4ee07ffae3d223eaba8eaa6accd9db275c4 Mon Sep 17 00:00:00 2001 From: ciesiel Date: Sun, 14 Dec 2003 21:58:23 +0000 Subject: [PATCH] - initial release Changed files: Zope-CMFContentPanels.spec -> 1.1 --- Zope-CMFContentPanels.spec | 66 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 Zope-CMFContentPanels.spec diff --git a/Zope-CMFContentPanels.spec b/Zope-CMFContentPanels.spec new file mode 100644 index 0000000..3354c85 --- /dev/null +++ b/Zope-CMFContentPanels.spec @@ -0,0 +1,66 @@ +%include /usr/lib/rpm/macros.python +%define zope_subname CMFContentPanels +Summary: A CMF/Plone portlets product +Summary(pl): Produkt dla CMF/Plone pozwalaj±cy na manipulacje panelami portalu +Name: Zope-%{zope_subname} +Version: 1.2.0 +Release: 1 +License: GPL +Group: Development/Tools +Source0: http://zope.org/Members/panjunyong/%{zope_subname}/%{zope_subname}-1_2_0/contentpanels-1_2_0.tgz +# Source0-md5: e882c30a13af77cb3af3c328a6c83aed +URL: http://zope.org/Members/panjunyong/CMFContentPanels/ +Requires(post,postun): /usr/sbin/installzopeproduct +%pyrequires_eq python-modules +Requires: Zope +Requires: Zope-CMF +Requires: Zope-CMFPlone +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +Conflicts: CMF +Conflicts: Plone + +%description +A CMF/Plone portlets product. + +%description -l pl +Produkt dla CMF/Plone pozwalaj±cy na manipulacje panelami portalu. + +%prep +%setup -q -n %{zope_subname} + +find . -type d -name .svn | xargs rm -rf +find . -type d -name CVS | xargs rm -rf + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_datadir}/%{name} + +cp -af {Extensions,i18n,skins,*.py,*.gif,version.txt,refresh.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 HISTORY.txt README.txt INSTALL.txt +%{_datadir}/%{name} -- 2.44.0