]> git.pld-linux.org Git - packages/Zope-PlacelessTranslationService.git/blob - Zope-PlacelessTranslationService.spec
- tabs in preamble
[packages/Zope-PlacelessTranslationService.git] / Zope-PlacelessTranslationService.spec
1 %define         zope_subname    PlacelessTranslationService
2 Summary:        PTS is, a translation service for Zope
3 Summary(pl.UTF-8):      PTS - usługa pomagająca lokalizować usługi Zope
4 Name:           Zope-%{zope_subname}
5 Version:        1.2.6
6 Release:        1
7 License:        GPL v2
8 Group:          Development/Tools
9 Source0:        http://plone.org/products/pts/releases/%{version}/PlacelessTranslationService-%{version}.tar.gz
10 # Source0-md5:  c081dcc7379478e5dd9500419b2d557a
11 URL:            http://plone.org/products/pts/
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 Conflicts:      Zope-CMFPlone <= 2.0.5-4
18 BuildArch:      noarch
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 PTS is, a translation service. It's a zope-wide service, which reads
23 "PO" format files containing translations for messages, and provides
24 these translations to Zope software when requested.
25
26 %description -l pl.UTF-8
27 PTS jest usługą pomagającą lokalizować usługi Zope. Czyta pliki
28 formatu "PO" zawierające tłumaczenia i udostępnia te tłumaczenia,
29 kiedy odpowiedni produkt o to poprosi.
30
31 %prep
32 %setup -q -c
33 find . -type d -name .svn | xargs rm -rf
34 rm -rf %{zope_subname}/doc/license.txt
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
39 cp -af %{zope_subname}/{bin,i18n,tests,www,*.py,version.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
40
41 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
42 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
43
44 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
45
46 %clean
47 rm -rf $RPM_BUILD_ROOT
48
49 %post
50 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
51 %service -q zope restart
52
53 %postun
54 if [ "$1" = "0" ]; then
55         /usr/sbin/installzopeproduct -d %{zope_subname}
56         %service -q zope restart
57 fi
58
59 %files
60 %defattr(644,root,root,755)
61 %doc %{zope_subname}/doc/*
62 %{_datadir}/%{name}
This page took 0.0668879999999999 seconds and 3 git commands to generate.