]>
Commit | Line | Data |
---|---|---|
1 | %define zope_subname TranslationService | |
2 | Summary: A placeful translation service for Zope | |
3 | Summary(pl.UTF-8): Środowisko dla tłumaczeń językowych dla Zope | |
4 | Name: Zope-%{zope_subname} | |
5 | Version: 0.4 | |
6 | Release: 6 | |
7 | License: GPL v2 | |
8 | Group: Development/Tools | |
9 | Source0: http://www.zope.org/Members/efge/%{zope_subname}/%{zope_subname}-%{version}.tgz | |
10 | # Source0-md5: b1399f80dc71ea8a54f4c6dc179c12dd | |
11 | URL: http://www.zope.org/Members/efge/TranslationService | |
12 | BuildRequires: python | |
13 | BuildRequires: rpmbuild(macros) >= 1.268 | |
14 | %pyrequires_eq python-modules | |
15 | Requires(post,postun): /usr/sbin/installzopeproduct | |
16 | Requires: Zope | |
17 | Requires: Zope-Localizer | |
18 | BuildArch: noarch | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | TranslationService is a placeful translation service for Zope. | |
23 | ||
24 | %description -l pl.UTF-8 | |
25 | TranslationService jest środowiskiem dla tłumaczeń językowych dla | |
26 | Zope. | |
27 | ||
28 | %prep | |
29 | %setup -q -n %{zope_subname} | |
30 | ||
31 | %install | |
32 | rm -rf $RPM_BUILD_ROOT | |
33 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name} | |
34 | ||
35 | cp -af {zmi,*.py,*.gif,version.txt} $RPM_BUILD_ROOT%{_datadir}/%{name} | |
36 | ||
37 | %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
38 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
39 | ||
40 | # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;; | |
41 | ||
42 | %clean | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | %post | |
46 | /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname} | |
47 | %service -q zope restart | |
48 | ||
49 | %postun | |
50 | if [ "$1" = "0" ]; then | |
51 | /usr/sbin/installzopeproduct -d %{zope_subname} | |
52 | %service -q zope restart | |
53 | fi | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
57 | %doc HISTORY.txt | |
58 | %{_datadir}/%{name} |