]> git.pld-linux.org Git - packages/Zope-CPSSkins.git/blob - Zope-CPSSkins.spec
- upgraded to version 2.0rc1
[packages/Zope-CPSSkins.git] / Zope-CPSSkins.spec
1 %include        /usr/lib/rpm/macros.python
2 %define         zope_subname    CPSSkins
3 %define         sub_ver rc1
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:        2.0
8 Release:        1.%{sub_ver}.1
9 License:        GPL
10 Group:          Development/Tools
11 Source0:        http://zope.org/Members/jmo/%{zope_subname}/%{zope_subname}-%{version}-%{sub_ver}/%{zope_subname}%{version}-%{sub_ver}.tgz
12 # Source0-md5:  81cdbbd81e3acebe369326a0affdbba9
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-OrderedFolderSupportPatch
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Conflicts:      CMF
23 Conflicts:      Plone
24
25 %description
26 CPSSkins is theme creation and management product for CMF, Plone,
27 CPS3.
28
29 %description -l pl
30 CPSSkins jest kreatorem i zarz±dc± "skórek" dla CMF, Plone, CPS3.
31
32 %prep
33 %setup -q -c
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
38
39 cp -af Products/%{zope_subname}/{Extensions,Install,Misc,i18n,icons,skins,tests,zmi,*.py,*.gif,version.txt,refresh.txt} \
40     $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 Products/%{zope_subname}/{doc/*,AUTHORS.TXT,COPYRIGHT.TXT,CREDITS.TXT,INSTALL.TXT,README.TXT}
67 %{_datadir}/%{name}
This page took 0.051512 seconds and 3 git commands to generate.