]>
Commit | Line | Data |
---|---|---|
9a266148 | 1 | %define _class Translation |
010bafd1 | 2 | %define _status stable |
9a266148 | 3 | %define _pearname %{_class} |
9417244b | 4 | |
9a266148 | 5 | Summary: %{_pearname} - class for creating multilingual websites |
ae59de2e | 6 | Summary(pl.UTF-8): %{_pearname} - klasa do tworzenia wielojęzycznych portali |
9a266148 | 7 | Name: php-pear-%{_pearname} |
c11ee108 | 8 | Version: 1.2.6pl1 |
4acf3875 | 9 | Release: 5 |
9a266148 PG |
10 | License: PHP 2.02 |
11 | Group: Development/Languages/PHP | |
12 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
c11ee108 | 13 | # Source0-md5: 096296bfe322e4ba250f79bb885ac022 |
a939f413 | 14 | URL: http://pear.php.net/package/Translation/ |
dcb60e7f | 15 | BuildRequires: php-pear-PEAR |
c10d559c | 16 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
714bad8d | 17 | BuildRequires: rpmbuild(macros) >= 1.300 |
9a266148 | 18 | Requires: php-pear |
66e37b7f | 19 | Requires: php-pear-DB |
9a266148 PG |
20 | BuildArch: noarch |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | Class allows to store and retrieve all the strings on multilingual | |
25 | site in the database. Class connects to any database using PHP PEAR | |
26 | extension. The object should be created for every page. While creation | |
27 | all the strings connected with specific page and the strings connected | |
28 | with all the pages on the site are loaded into variable, so access to | |
29 | them is quite fast and does not overload database server connection. | |
30 | ||
4a367bc7 | 31 | In PEAR status of this package is: %{_status}. |
010bafd1 | 32 | |
5ad82413 JR |
33 | %description -l pl.UTF-8 |
34 | Klasa ta pozwala na przechowywanie wszystkich łańcuchów znaków dla | |
35 | wielojęzycznych serwisów w bazie danych i odczytywanie ich. Klasa | |
36 | łączy się z dowolną bazą używając rozszerzenia PHP PEAR. Obiekt może | |
37 | być tworzony dla każdej strony. Od utworzenia wszystkie łańcuchy | |
38 | powiązane z daną stroną, a także łańcuchy powiązane ze wszystkimi | |
39 | stronami z serwisu są wczytywane do zmiennej, więc dostęp do nich jest | |
40 | szybki i nie przeciąża połączenia z serwerem baz danych. | |
f0ebb744 | 41 | |
010bafd1 PG |
42 | Ta klasa ma w PEAR status: %{_status}. |
43 | ||
9a266148 | 44 | %prep |
c10d559c | 45 | %pear_package_setup |
9a266148 PG |
46 | |
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
c10d559c ER |
49 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
50 | %pear_package_install | |
9a266148 PG |
51 | |
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
c10d559c ER |
57 | %doc install.log |
58 | %doc docs/%{_pearname}/docs/* | |
9a266148 | 59 | %dir %{php_pear_dir}/%{_class} |
c10d559c | 60 | %{php_pear_dir}/.registry/*.reg |
9a266148 | 61 | %{php_pear_dir}/%{_class}/*.php |