1508f525b44ae1f96d95b9d5eb05b7b7831667de
[packages/Zope-CMFMPoll.git] / Zope-CMFMPoll.spec
1 %define         zope_subname    MPoll
2 Summary:        Sime cookie-based poll product based on Archetypes
3 Summary(pl):    Produkt bazuj±cy na Archetypes umo¿liwiaj±cy dodanie pola do g³osowañ
4 Name:           Zope-CMF%{zope_subname}
5 Version:        0.3.1
6 Release:        2
7 License:        GPL
8 Group:          Development/Tools
9 Source0:        http://dl.sourceforge.net/collective/%{zope_subname}-%{version}.tar.gz
10 # Source0-md5:  bc8dd0f835e51a16a421e550bb4667f3
11 URL:            http://sourceforge.net/projects/collective/
12 Requires(post,postun):  /usr/sbin/installzopeproduct
13 BuildRequires:  python
14 %pyrequires_eq  python-modules
15 Requires:       Zope
16 Requires:       Zope-CMF
17 Requires:       Zope-archetypes
18 BuildArch:      noarch
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Conflicts:      CMF
21
22 %description
23 Sime cookie-based poll product based on Archetypes.
24
25 %description -l pl
26 Produkt bazuj±cy na Archetypes umo¿liwiaj±cy dodanie pola do g³osowañ.
27
28 %prep
29 %setup -q -n %{zope_subname}
30
31 %install
32 rm -rf $RPM_BUILD_ROOT
33 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
34
35 cp -af {Extensions,i18n,skins,*.py,version.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
36
37 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
38 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
39
40 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
41
42 %clean
43 rm -rf $RPM_BUILD_ROOT
44
45 %post
46 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
47 if [ -f /var/lock/subsys/zope ]; then
48         /etc/rc.d/init.d/zope restart >&2
49 fi
50
51 %postun
52 if [ "$1" = "0" ]; then
53         /usr/sbin/installzopeproduct -d %{zope_subname}
54         if [ -f /var/lock/subsys/zope ]; then
55                 /etc/rc.d/init.d/zope restart >&2
56         fi
57 fi
58
59 %files
60 %defattr(644,root,root,755)
61 %doc HISTORY.txt README.txt LICENSE.txt
62 %{_datadir}/%{name}
This page took 0.08384 seconds and 2 git commands to generate.