]>
Commit | Line | Data |
---|---|---|
91a09700 | 1 | %define zope_subname I18NLayer |
2 | Summary: Provide multilanguage content support for existing document types | |
8c715b9d | 3 | Summary(pl.UTF-8): Umożliwia tworzenie wielojęzykowych dokumentów w środowisku Zope |
91a09700 | 4 | Name: Zope-%{zope_subname} |
5f08cc68 | 5 | Version: 0.7.0 |
bcf88899 | 6 | Release: 1 |
91a09700 | 7 | License: GPL v2+ |
8 | Group: Development/Tools | |
68af0309 | 9 | #Source0: http://dl.sourceforge.net/collective/%{zope_subname}-%{version}.tar.gz |
f69b81c6 | 10 | Source0: http://dl.sourceforge.net/collective/I18NLayer-%{version}.tar.gz |
5f08cc68 | 11 | # Source0-md5: 3b01b48fda540e3c3c627738de34ccbb |
91a09700 | 12 | URL: http://plone.org/Members/longsleep/I18NLayer/ |
fa31008c | 13 | BuildRequires: python |
a5ce53ec | 14 | BuildRequires: rpmbuild(macros) >= 1.268 |
91a09700 | 15 | %pyrequires_eq python-modules |
16 | Requires: Zope | |
17 | Requires: Zope-CMFPlone | |
91a09700 | 18 | Requires: Zope-PloneLanguageTool |
a5ce53ec | 19 | Requires: Zope-archetypes |
91a09700 | 20 | |
21 | Requires(post,postun): /usr/sbin/installzopeproduct | |
22 | BuildArch: noarch | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | I18NLayer provides a transparent overlay above multiple content | |
27 | objects to provide multilanguage content support for existing document | |
28 | types. | |
29 | ||
37cb4ffc JR |
30 | %description -l pl.UTF-8 |
31 | I18NLayer dostarcza mechanizm tworzenia wielojęzykowych dokumentów dla | |
32 | produktów Zope. | |
91a09700 | 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,tests,*.py,version.txt} \ | |
42 | $RPM_BUILD_ROOT%{_datadir}/%{name} | |
43 | ||
44 | %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
45 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
46 | ||
47 | # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;; | |
48 | ||
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %post | |
53 | /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname} | |
a5ce53ec | 54 | %service -q zope restart |
91a09700 | 55 | |
56 | %postun | |
57 | if [ "$1" = "0" ]; then | |
58 | /usr/sbin/installzopeproduct -d %{zope_subname} | |
a5ce53ec | 59 | %service -q zope restart |
91a09700 | 60 | fi |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
91a09700 | 64 | %{_datadir}/%{name} |