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