340c7307370c80f42d437cdb3ecd612b9805be30
[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.6.0
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:        http://dl.sourceforge.net/collective/I18NLayer-%{version}.tar.gz
11 # Source0-md5:  63097d2b464724c381afd3d598233994
12 URL:            http://plone.org/Members/longsleep/I18NLayer/
13 BuildRequires:  python
14 %pyrequires_eq  python-modules
15 Requires:       Zope
16 Requires:       Zope-CMFPlone
17 Requires:       Zope-archetypes
18 Requires:       Zope-PloneLanguageTool
19
20 Requires(post,postun):  /usr/sbin/installzopeproduct
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 I18NLayer provides a transparent overlay above multiple content
26 objects to provide multilanguage content support for existing document
27 types.
28
29 %description -l pl
30 I18NLayer dostarcza mechanizm tworzenia wielojêzykowych dokumentów dla
31 produktów Zope.
32
33 %prep
34 %setup -q -n %{zope_subname}
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
39
40 cp -af {Extensions,i18n,skins,tests,*.py,version.txt} \
41         $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 if [ -f /var/lock/subsys/zope ]; then
54         /etc/rc.d/init.d/zope restart >&2
55 fi
56
57 %postun
58 if [ "$1" = "0" ]; then
59         /usr/sbin/installzopeproduct -d %{zope_subname}
60         if [ -f /var/lock/subsys/zope ]; then
61                 /etc/rc.d/init.d/zope restart >&2
62         fi
63 fi
64
65 %files
66 %defattr(644,root,root,755)
67 %doc CHANGELOG
68 %{_datadir}/%{name}
This page took 0.023859 seconds and 2 git commands to generate.