]> git.pld-linux.org Git - packages/Zope-CMFSin.git/blob - Zope-CMFSin.spec
- removed %%include /usr/lib/rpm/macros.python
[packages/Zope-CMFSin.git] / Zope-CMFSin.spec
1 %define         zope_subname    CMFSin
2 Summary:        A Zope product that is a simple syndication client for CMF
3 Summary(pl):    Dodatek do Zope bêd±cy prostym klientem "korporacyjnym" dla CMF
4 Name:           Zope-%{zope_subname}
5 Version:        0.6.1
6 Release:        6
7 License:        GPL
8 Group:          Development/Tools
9 Source0:        http://dl.sourceforge.net/collective/%{zope_subname}.tar.gz
10 # Source0-md5:  a50ab5b9c13526a6a52397d556b09e84
11 URL:            http://sourceforge.net/projects/collective/
12 %pyrequires_eq  python-modules
13 Requires:       Zope-CMF
14 Requires:       Zope
15 Requires(post,postun):  /usr/sbin/installzopeproduct
16 BuildArch:      noarch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 Conflicts:      CMF
19
20 %description
21 This is a simple syndication client for CMF. It uses rssparser and
22 shares many things in common with CMFNewsFeed but has a different
23 model for handling channels. It is designed to map _n_ channels or
24 feeds to sets of composite virtual channels which can then be called
25 in in a timely fashion.
26
27 %description -l pl
28 CMFSin jest prostym klientem "korporacyjnym" dla CMF. Umo¿liwia
29 parsowanie rss i posiada wiele mo¿liwosæi jakie daje CMFNewsFeed, lecz
30 ró¿ni siê innym modelem obs³ugi kana³ów. Jest opracowany tak, by
31 odwzorowywaæ _n_ kana³ów lub strumieni na zbiory po³±czonych
32 wirtualnych kana³ów, które mog± byæ wywo³ywane o okre¶lonej porze.
33
34 %prep
35 %setup -q -n %{zope_subname}
36
37 find . -type d -name CVS | xargs rm -rf
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
42
43 cp -af {Extensions,skins,www,*.py,*.cfg,*.gif,version.txt,refresh.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
44
45 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
46 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
47
48 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %post
54 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
55 if [ -f /var/lock/subsys/zope ]; then
56         /etc/rc.d/init.d/zope restart >&2
57 fi
58
59 %postun
60 if [ "$1" = "0" ]; then
61         /usr/sbin/installzopeproduct -d %{zope_subname}
62         if [ -f /var/lock/subsys/zope ]; then
63                 /etc/rc.d/init.d/zope restart >&2
64         fi
65 fi
66
67 %files
68 %defattr(644,root,root,755)
69 %doc docs/* README.txt
70 %{_datadir}/%{name}
This page took 0.066738 seconds and 3 git commands to generate.