1 %include /usr/lib/rpm/macros.python
2 %define zope_subname CMFSin
3 Summary: CMFSin - a Zope product that is a simple syndication client for CMF
4 Summary(pl): CMFSin - dodatek do Zope bêd±cy prostym klientem "korporacyjnym" dla CMF
5 Name: Zope-%{zope_subname}
9 Group: Development/Tools
10 Source0: http://dl.sourceforge.net/collective/%{zope_subname}.tar.gz
11 # Source0-md5: a50ab5b9c13526a6a52397d556b09e84
12 URL: http://sourceforge.net/projects/collective/
13 %pyrequires_eq python-modules
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define product_dir /usr/lib/zope/Products
23 This is a simple syndication client for CMF. It uses rssparser and
24 shares many things in common with CMFNewsFeed but has a different
25 model for handling channels. It is designed to map _n_ channels or
26 feeds to sets of composite virtual channels which can then be called
27 in in a timely fashion.
30 CMFSin jest prostym klientem "korporacyjnym" dla CMF. Umo¿liwia
31 parsowanie rss i posiada wiele mo¿liwosæi jakie daje CMFNewsFeed, lecz
32 ró¿ni siê innym modelem obs³ugi kana³ów. Jest opracowany tak, by
33 odwzorowywaæ _n_ kana³ów lub strumieni na zbiory po³±czonych
34 wirtualnych kana³ów, które mog± byæ wywo³ywane o okre¶lonej porze.
37 %setup -q -n %{zope_subname}
39 find . -type d -name CVS | xargs rm -rf
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
45 cp -af {Extensions,skins,www,*.py,*.cfg,*.gif} $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
47 %py_comp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
48 %py_ocomp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
50 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
53 rm -rf $RPM_BUILD_ROOT
56 if [ -f /var/lock/subsys/zope ]; then
57 /etc/rc.d/init.d/zope restart >&2
61 if [ -f /var/lock/subsys/zope ]; then
62 /etc/rc.d/init.d/zope restart >&2
66 %defattr(644,root,root,755)
67 %doc docs/* README.txt
68 %{product_dir}/%{zope_subname}