1 %include /usr/lib/rpm/macros.php
2 %define _class Translation
4 %define _pearname %{_class}
6 Summary: %{_pearname} - class for creating multilingual websites
7 Summary(pl.UTF-8): %{_pearname} - klasa do tworzenia wielojęzycznych portali
8 Name: php-pear-%{_pearname}
12 Group: Development/Languages/PHP
13 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
14 # Source0-md5: 096296bfe322e4ba250f79bb885ac022
15 URL: http://pear.php.net/package/Translation/
16 BuildRequires: php-pear-PEAR
17 BuildRequires: rpm-php-pearprov >= 4.4.2-11
18 BuildRequires: rpmbuild(macros) >= 1.300
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Class allows to store and retrieve all the strings on multilingual
26 site in the database. Class connects to any database using PHP PEAR
27 extension. The object should be created for every page. While creation
28 all the strings connected with specific page and the strings connected
29 with all the pages on the site are loaded into variable, so access to
30 them is quite fast and does not overload database server connection.
32 In PEAR status of this package is: %{_status}.
34 %description -l pl.UTF-8
35 Klasa ta pozwala na przechowywanie wszystkich łańcuchów znaków dla
36 wielojęzycznych serwisów w bazie danych i odczytywanie ich. Klasa
37 łączy się z dowolną bazą używając rozszerzenia PHP PEAR. Obiekt może
38 być tworzony dla każdej strony. Od utworzenia wszystkie łańcuchy
39 powiązane z daną stroną, a także łańcuchy powiązane ze wszystkimi
40 stronami z serwisu są wczytywane do zmiennej, więc dostęp do nich jest
41 szybki i nie przeciąża połączenia z serwerem baz danych.
43 Ta klasa ma w PEAR status: %{_status}.
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT%{php_pear_dir}
54 rm -rf $RPM_BUILD_ROOT
57 %defattr(644,root,root,755)
59 %doc docs/%{_pearname}/docs/*
60 %dir %{php_pear_dir}/%{_class}
61 %{php_pear_dir}/.registry/*.reg
62 %{php_pear_dir}/%{_class}/*.php