]> git.pld-linux.org Git - packages/Zope-CMFPhoto.git/blob - Zope-CMFPhoto.spec
- tabs in preamble
[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.UTF-8):      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 BuildRequires:  rpmbuild(macros) >= 1.268
15 %pyrequires_eq  python-modules
16 Requires(post,postun):  /usr/sbin/installzopeproduct
17 Requires:       ImageMagick
18 Requires:       Zope >= 2.6.1
19 Requires:       Zope-CMF >= 1:1.4
20 Requires:       Zope-CMFPlone >= 1.0.1
21 Conflicts:      CMF
22 Conflicts:      Plone
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 CMFPhoto is a Zope product with wrapper objects and a Plone skin for
28 the Photo product.
29
30 %description -l pl.UTF-8
31 CMFPhoto jest dodatkiem dla Zope umożliwiającym operacje na obiektach
32 i skórach w Plone.
33
34 %prep
35 %setup -q -n %{zope_subname}
36
37 %install
38 rm -rf $RPM_BUILD_ROOT
39 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
40
41 cp -af {Extensions,i18n,skins,*.py,refresh.txt,version.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
42
43 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
44 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
45
46 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %post
52 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
53 %service -q zope restart
54
55 %postun
56 if [ "$1" = "0" ]; then
57         /usr/sbin/installzopeproduct -d %{zope_subname}
58         %service -q zope restart
59 fi
60
61 %files
62 %defattr(644,root,root,755)
63 %doc HISTORY.txt README.txt
64 %{_datadir}/%{name}
This page took 0.046706 seconds and 3 git commands to generate.