]> git.pld-linux.org Git - packages/Zope-CMFContentPanels.git/blob - Zope-CMFContentPanels.spec
9a906c5198ea4aa22632a53b5c83de4a2f150c3d
[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.UTF-8):   Produkt dla CMF/Plone pozwalajÄ…cy na manipulacje panelami portalu
5 Name:           Zope-%{zope_subname}
6 Version:        2.0
7 Release:        1
8 License:        GPL
9 Group:          Development/Tools
10 Source0:        http://plone.org/products/cmfcontentpanels/releases/%{version}/contentpanels-2_0.tgz
11 # Source0-md5:  95e2e17255faca6f1122fc64723074b2
12 URL:            http://www.zopechina.com/products-en/CMFContentPanels/
13 BuildRequires:  python
14 BuildRequires:  rpmbuild(macros) >= 1.268
15 Requires(post,postun):  /usr/sbin/installzopeproduct
16 %pyrequires_eq  python-modules
17 Requires:       Zope
18 Requires:       Zope-CMF
19 Requires:       Zope-CMFPlone
20 Conflicts:      CMF
21 Conflicts:      Plone
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 A CMF/Plone portlets product.
27
28 %description -l pl.UTF-8
29 Produkt dla CMF/Plone pozwalajÄ…cy na manipulacje panelami portalu.
30
31 %prep
32 %setup -q -n %{zope_subname}
33
34 find . -type d -name .svn | xargs rm -rf
35 find . -type d -name CVS | xargs rm -rf
36
37 %install
38 rm -rf $RPM_BUILD_ROOT
39 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
40
41 cp -af {Extensions,i18n,skins,*.py,*.gif,version.txt,refresh.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
42
43 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
44 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
45
46 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %post
52 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
53 %service -q zope restart
54
55 %postun
56 if [ "$1" = "0" ]; then
57         /usr/sbin/installzopeproduct -d %{zope_subname}
58         %service -q zope restart
59 fi
60
61 %files
62 %defattr(644,root,root,755)
63 %doc HISTORY.txt SUPPORT_WIKI.txt README.txt INSTALL.txt TODO.txt CREDIT.txt FAQ.txt
64 %{_datadir}/%{name}
This page took 0.024809 seconds and 2 git commands to generate.