]> git.pld-linux.org Git - packages/Zope-I18NLayer.git/blob - Zope-I18NLayer.spec
- release 2 for rebuild with python 2.4
[packages/Zope-I18NLayer.git] / Zope-I18NLayer.spec
1 %define         zope_subname    I18NLayer
2 Summary:        Provide multilanguage content support for existing document types
3 Summary(pl):    Umo¿liwia tworzenie wielojêzykowych dokumentów w ¶rodowisku Zope
4 Name:           Zope-%{zope_subname}
5 Version:        0.5.5
6 Release:        2
7 License:        GPL v2+
8 Group:          Development/Tools
9 Source0:        http://dl.sourceforge.net/collective/%{zope_subname}-%{version}.tar.gz
10 # Source0-md5:  c665c8dc212c3bd36a62df57fd60994d
11 URL:            http://plone.org/Members/longsleep/I18NLayer/
12 %pyrequires_eq  python-modules
13 Requires:       Zope
14 Requires:       Zope-CMFPlone
15 Requires:       Zope-archetypes
16 Requires:       Zope-PloneLanguageTool
17
18 Requires(post,postun):  /usr/sbin/installzopeproduct
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 I18NLayer provides a transparent overlay above multiple content
24 objects to provide multilanguage content support for existing document
25 types.
26
27 %description -l pl
28 I18NLayer dostarcza mechanizm tworzenia wielojêzykowych dokumentów dla
29 produktów Zope.
30
31 %prep
32 %setup -q -n %{zope_subname}
33
34 %install
35 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
37
38 cp -af {Extensions,i18n,skins,tests,*.py,version.txt} \
39         $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 ChangeLog
66 %{_datadir}/%{name}
This page took 0.052137 seconds and 3 git commands to generate.