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