]> git.pld-linux.org Git - packages/Zope-TranslationService.git/blame_incremental - Zope-TranslationService.spec
- tabs in preamble
[packages/Zope-TranslationService.git] / Zope-TranslationService.spec
... / ...
CommitLineData
1%define zope_subname TranslationService
2Summary: A placeful translation service for Zope
3Summary(pl.UTF-8): Środowisko dla tłumaczeń językowych dla Zope
4Name: Zope-%{zope_subname}
5Version: 0.4
6Release: 6
7License: GPL v2
8Group: Development/Tools
9Source0: http://www.zope.org/Members/efge/%{zope_subname}/%{zope_subname}-%{version}.tgz
10# Source0-md5: b1399f80dc71ea8a54f4c6dc179c12dd
11URL: http://www.zope.org/Members/efge/TranslationService
12BuildRequires: python
13BuildRequires: rpmbuild(macros) >= 1.268
14%pyrequires_eq python-modules
15Requires(post,postun): /usr/sbin/installzopeproduct
16Requires: Zope
17Requires: Zope-Localizer
18BuildArch: noarch
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
22TranslationService is a placeful translation service for Zope.
23
24%description -l pl.UTF-8
25TranslationService jest środowiskiem dla tłumaczeń językowych dla
26Zope.
27
28%prep
29%setup -q -n %{zope_subname}
30
31%install
32rm -rf $RPM_BUILD_ROOT
33install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
34
35cp -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
43rm -rf $RPM_BUILD_ROOT
44
45%post
46/usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
47%service -q zope restart
48
49%postun
50if [ "$1" = "0" ]; then
51 /usr/sbin/installzopeproduct -d %{zope_subname}
52 %service -q zope restart
53fi
54
55%files
56%defattr(644,root,root,755)
57%doc HISTORY.txt
58%{_datadir}/%{name}
This page took 0.053018 seconds and 4 git commands to generate.