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