]> git.pld-linux.org Git - packages/Zope-CPSSkins.git/blob - Zope-CPSSkins.spec
1fce8e9a71ac92d9dfc4aa363ec54d783f712c3e
[packages/Zope-CPSSkins.git] / Zope-CPSSkins.spec
1 %define         zope_subname    CPSSkins
2 # %%define              sub_ver rc5
3 Summary:        Theme creation and management product for CMF, Plone, CPS3
4 Summary(pl):    Kreator i zarz±dca "skórek" dla CMF, Plone, CPS3
5 Name:           Zope-%{zope_subname}
6 Version:        2.2.0
7 Release:        2
8 License:        GPL
9 Group:          Development/Tools
10 Source0:        http://www.medic.chalmers.se/~jmo/CPS/%{zope_subname}%{version}.tgz
11 # Source0-md5:  8c93bf1966633fa8cd69353ef9e1a7f9
12 URL:            http://www.medic.chalmers.se/~jmo/CPS/
13 Requires(post,postun):  /usr/sbin/installzopeproduct
14 %pyrequires_eq  python-modules
15 Requires:       Zope
16 Requires:       Zope-CMF
17 Requires:       Zope-CMFPlone
18 Requires:       Zope-OrderedFolderSupportPatch
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 Conflicts:      CMF
22 Conflicts:      Plone
23
24 %description
25 CPSSkins is theme creation and management product for CMF, Plone,
26 CPS3.
27
28 %description -l pl
29 CPSSkins jest kreatorem i zarz±dc± "skórek" dla CMF, Plone, CPS3.
30
31 %prep
32 %setup -q -c
33
34 %install
35 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
37
38 cp -af Products/%{zope_subname}/{Extensions,Install,i18n,icons,skins,tests,zmi,*.py,*.gif,version.txt,refresh.txt} \
39     $RPM_BUILD_ROOT%{_datadir}/%{name}
40
41 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
42 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
43
44 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
45
46 %clean
47 rm -rf $RPM_BUILD_ROOT
48
49 %post
50 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
51 if [ -f /var/lock/subsys/zope ]; then
52         /etc/rc.d/init.d/zope restart >&2
53 fi
54
55 %postun
56 if [ "$1" = "0" ]; then
57         /usr/sbin/installzopeproduct -d %{zope_subname}
58         if [ -f /var/lock/subsys/zope ]; then
59                 /etc/rc.d/init.d/zope restart >&2
60         fi
61 fi
62
63 %files
64 %defattr(644,root,root,755)
65 %doc Products/%{zope_subname}/{doc/*,AUTHORS.TXT,CHANGES.TXT,COPYRIGHT.TXT,CREDITS.TXT,DEPEN*.TXT,INSTALL.TXT,README.TXT,UPGRADE.TXT}
66 %{_datadir}/%{name}
This page took 0.087581 seconds and 2 git commands to generate.