1 %include /usr/lib/rpm/macros.php
2 %define _class Translation
4 %define _pearname %{_class}
5 Summary: %{_pearname} - class for creating multilingual websites
6 Summary(pl): %{_pearname} - klasa do tworzenia wielojêzycznych portali
7 Name: php-pear-%{_pearname}
11 Group: Development/Languages/PHP
12 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
13 URL: http://pear.php.net/
14 BuildRequires: rpm-php-pearprov >= 4.0.2-98
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Class allows to store and retrieve all the strings on multilingual
21 site in the database. Class connects to any database using PHP PEAR
22 extension. The object should be created for every page. While creation
23 all the strings connected with specific page and the strings connected
24 with all the pages on the site are loaded into variable, so access to
25 them is quite fast and does not overload database server connection.
27 This class has in PEAR status: %{_status}.
30 Klasa ta pozwala na przechowywanie wszystkich ³añcuchów znaków dla
31 wielojêzycznych serwisów w bazie danych i odczytywanie ich. Klasa
32 ³±czy siê z dowoln± baz± u¿ywaj±c rozszerzenia PHP PEAR. Obiekt mo¿e
33 byæ tworzony dla ka¿dej strony. Od utworzenia wszystkie ³añcuchy
34 powi±zane z dan± stron±, a tak¿e ³añcuchy powi±zane ze wszystkimi
35 stronami z serwisu s± wczytywane do zmiennej, wiêc dostêp do nich
36 jest szybki i nie przeci±¿a po³±czenia z serwerem baz danych.
38 Ta klasa ma w PEAR status: %{_status}.
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}
47 install %{_pearname}-%{version}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)
54 %doc %{_pearname}-%{version}/doc/*
55 %dir %{php_pear_dir}/%{_class}
56 %{php_pear_dir}/%{_class}/*.php