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-md5: 0bcf050d02a812ad3743be8f1b1fb3df
13 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
14 URL: http://pear.php.net/
15 BuildRequires: rpm-php-pearprov >= 4.0.2-98
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 Class allows to store and retrieve all the strings on multilingual
22 site in the database. Class connects to any database using PHP PEAR
23 extension. The object should be created for every page. While creation
24 all the strings connected with specific page and the strings connected
25 with all the pages on the site are loaded into variable, so access to
26 them is quite fast and does not overload database server connection.
28 This class has in PEAR status: %{_status}.
31 Klasa ta pozwala na przechowywanie wszystkich ³añcuchów znaków dla
32 wielojêzycznych serwisów w bazie danych i odczytywanie ich. Klasa
33 ³±czy siê z dowoln± baz± u¿ywaj±c rozszerzenia PHP PEAR. Obiekt mo¿e
34 byæ tworzony dla ka¿dej strony. Od utworzenia wszystkie ³añcuchy
35 powi±zane z dan± stron±, a tak¿e ³añcuchy powi±zane ze wszystkimi
36 stronami z serwisu s± wczytywane do zmiennej, wiêc dostêp do nich
37 jest szybki i nie przeci±¿a po³±czenia z serwerem baz danych.
39 Ta klasa ma w PEAR status: %{_status}.
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}
48 install %{_pearname}-%{version}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
55 %doc %{_pearname}-%{version}/doc/*
56 %dir %{php_pear_dir}/%{_class}
57 %{php_pear_dir}/%{_class}/*.php