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