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