]> git.pld-linux.org Git - packages/Zope-CMFContentPanels.git/blob - Zope-CMFContentPanels.spec
- spaces -> tabs
[packages/Zope-CMFContentPanels.git] / Zope-CMFContentPanels.spec
1 %define         zope_subname    CMFContentPanels
2 #%%define               sub_ver RC1
3 Summary:        A CMF/Plone portlets product
4 Summary(pl):    Produkt dla CMF/Plone pozwalaj±cy na manipulacje panelami portalu
5 Name:           Zope-%{zope_subname}
6 Version:        1.7.1
7 Release:        2
8 License:        GPL
9 Group:          Development/Tools
10 Source0:        http://zope.org/Members/panjunyong/%{zope_subname}/contentpanels-1_7/contentpanels-1_7_1.tgz
11 # Source0-md5:  bb0babbed01ae0f838c8e64185549416
12 URL:            http://zope.org/Members/panjunyong/CMFContentPanels/
13 Requires(post,postun):  /usr/sbin/installzopeproduct
14 BuildRequires:  python
15 %pyrequires_eq  python-modules
16 Requires:       Zope
17 Requires:       Zope-CMF
18 Requires:       Zope-CMFPlone
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 Conflicts:      CMF
22 Conflicts:      Plone
23
24 %description
25 A CMF/Plone portlets product.
26
27 %description -l pl
28 Produkt dla CMF/Plone pozwalaj±cy na manipulacje panelami portalu.
29
30 %prep
31 %setup -q -n %{zope_subname}
32
33 find . -type d -name .svn | xargs rm -rf
34 find . -type d -name CVS | xargs rm -rf
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
39
40 cp -af {Extensions,i18n,skins,*.py,*.gif,version.txt,refresh.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
41
42 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
43 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
44
45 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %post
51 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
52 if [ -f /var/lock/subsys/zope ]; then
53         /etc/rc.d/init.d/zope restart >&2
54 fi
55
56 %postun
57 if [ "$1" = "0" ]; then
58         /usr/sbin/installzopeproduct -d %{zope_subname}
59         if [ -f /var/lock/subsys/zope ]; then
60                 /etc/rc.d/init.d/zope restart >&2
61         fi
62 fi
63
64 %files
65 %defattr(644,root,root,755)
66 %doc HISTORY.txt README.txt INSTALL.txt TODO.txt CREDIT.txt FAQ.txt
67 %{_datadir}/%{name}
This page took 0.042653 seconds and 3 git commands to generate.