]> git.pld-linux.org Git - packages/Zope-CMFPhoto.git/blob - Zope-CMFPhoto.spec
- added BR: python
[packages/Zope-CMFPhoto.git] / Zope-CMFPhoto.spec
1 %define         zope_subname    CMFPhoto
2 %define         sub_ver rc2
3 Summary:        A Zope product with wrapper objects and a Plone skin for the Photo product
4 Summary(pl):    Dodatek dla Zope umo¿liwiaj±cy operacje na obiektach i skórach w Plone
5 Name:           Zope-%{zope_subname}
6 Version:        0.4
7 Release:        0.%{sub_ver}.3
8 License:        GPL v2+
9 Group:          Development/Tools
10 Source0:        http://dl.sourceforge.net/collective/%{zope_subname}-%{version}%{sub_ver}.tar.gz
11 # Source0-md5:  b175ab4acf27fde98c61c03698ed1cbf
12 URL:            http://sourceforge.net/projects/collective/
13 BuildRequires:  python
14 %pyrequires_eq  python-modules
15 Requires:       Zope-CMF >= 1:1.4
16 Requires:       ImageMagick
17 Requires:       Zope-CMFPlone >= 1.0.1
18 Requires:       Zope >= 2.6.1
19 Requires(post,postun):  /usr/sbin/installzopeproduct
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Conflicts:      CMF
23 Conflicts:      Plone
24
25 %description
26 CMFPhoto is a Zope product with wrapper objects and a Plone skin for
27 the Photo product.
28
29 %description -l pl
30 CMFPhoto jest dodatkiem dla Zope umo¿liwiaj±cym operacje na obiektach
31 i skórach w Plone.
32
33 %prep
34 %setup -q -n %{zope_subname}
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
39
40 cp -af {Extensions,i18n,skins,*.py,refresh.txt,version.txt} $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 HISTORY.txt README.txt
67 %{_datadir}/%{name}
This page took 0.041324 seconds and 3 git commands to generate.