]> git.pld-linux.org Git - packages/Zope-CMFPhotoAlbum.git/blob - Zope-CMFPhotoAlbum.spec
- tabs in preamble
[packages/Zope-CMFPhotoAlbum.git] / Zope-CMFPhotoAlbum.spec
1 %define         zope_subname    CMFPhotoAlbum
2 %define         sub_ver rc2
3 Summary:        A Zope product providing Photo Album in your CMF
4 Summary(pl.UTF-8):      Dodatek dla Zope umożliwiający operacje na zdjęciach w CMF
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:  5b1157ccdbd7638495481db8c3aefcbe
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:       Zope >= 2.6.1
18 Requires:       Zope-BTreeFolder2 >= 0.5
19 Requires:       Zope-CMF >= 1:1.4
20 Requires:       Zope-CMFPhoto
21 Requires:       Zope-CMFPlone >= 1.0.1
22 Conflicts:      CMF
23 Conflicts:      Plone
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 CMFPhotoAlbum is a Zope product that provides Photo Album in your CMF.
29
30 %description -l pl.UTF-8
31 CMFPhotoAlbum jest dodatkiem dla Zope umożliwiającym operacje na
32 zdjęciach w CMF.
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,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.090807 seconds and 3 git commands to generate.