]>
Commit | Line | Data |
---|---|---|
c765e4ee | 1 | %define zope_subname CMFContentPanels |
96d8f3d1 | 2 | #%%define sub_ver RC1 |
c765e4ee | 3 | Summary: A CMF/Plone portlets product |
487d20d2 | 4 | Summary(pl.UTF-8): Produkt dla CMF/Plone pozwalający na manipulacje panelami portalu |
c765e4ee | 5 | Name: Zope-%{zope_subname} |
9b367581 | 6 | Version: 2.0 |
9c5fcdc4 | 7 | Release: 1 |
c765e4ee | 8 | License: GPL |
9 | Group: Development/Tools | |
9b367581 | 10 | Source0: http://plone.org/products/cmfcontentpanels/releases/%{version}/contentpanels-2_0.tgz |
11 | # Source0-md5: 95e2e17255faca6f1122fc64723074b2 | |
9580bfcc | 12 | URL: http://www.zopechina.com/products-en/CMFContentPanels/ |
da97fe75 | 13 | BuildRequires: python |
d3da4ba0 ER |
14 | BuildRequires: rpmbuild(macros) >= 1.268 |
15 | Requires(post,postun): /usr/sbin/installzopeproduct | |
c765e4ee | 16 | %pyrequires_eq python-modules |
17 | Requires: Zope | |
18 | Requires: Zope-CMF | |
19 | Requires: Zope-CMFPlone | |
c765e4ee | 20 | Conflicts: CMF |
21 | Conflicts: Plone | |
d3da4ba0 ER |
22 | BuildArch: noarch |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
c765e4ee | 24 | |
25 | %description | |
26 | A CMF/Plone portlets product. | |
27 | ||
d008b134 JR |
28 | %description -l pl.UTF-8 |
29 | Produkt dla CMF/Plone pozwalający na manipulacje panelami portalu. | |
c765e4ee | 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} | |
d3da4ba0 | 53 | %service -q zope restart |
c765e4ee | 54 | |
55 | %postun | |
56 | if [ "$1" = "0" ]; then | |
1b7bd528 | 57 | /usr/sbin/installzopeproduct -d %{zope_subname} |
d3da4ba0 | 58 | %service -q zope restart |
c765e4ee | 59 | fi |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
9580bfcc | 63 | %doc HISTORY.txt SUPPORT_WIKI.txt README.txt INSTALL.txt TODO.txt CREDIT.txt FAQ.txt |
c765e4ee | 64 | %{_datadir}/%{name} |