]> git.pld-linux.org Git - packages/Zope-I18NLayer.git/blob - Zope-I18NLayer.spec
44f50b032239fccd1ae7b5da40e22016c32d8d06
[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.6
6 Release:        1
7 License:        GPL v2+
8 Group:          Development/Tools
9 Source0:        http://dl.sourceforge.net/collective/%{zope_subname}-%{version}.tar.gz
10 # Source0-md5:  733ef1dfe1b7ff211893b08b9e7c9862
11 URL:            http://plone.org/Members/longsleep/I18NLayer/
12 BuildRequires:  python
13 %pyrequires_eq  python-modules
14 Requires:       Zope
15 Requires:       Zope-CMFPlone
16 Requires:       Zope-archetypes
17 Requires:       Zope-PloneLanguageTool
18
19 Requires(post,postun):  /usr/sbin/installzopeproduct
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 I18NLayer provides a transparent overlay above multiple content
25 objects to provide multilanguage content support for existing document
26 types.
27
28 %description -l pl
29 I18NLayer dostarcza mechanizm tworzenia wielojêzykowych dokumentów dla
30 produktów Zope.
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,tests,*.py,version.txt} \
40         $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 ChangeLog
67 %{_datadir}/%{name}
This page took 0.052099 seconds and 2 git commands to generate.