From 9a26614874076ae72697ea0f7bb44df328f01881 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pawe=C5=82=20Go=C5=82aszewski?= Date: Thu, 10 Oct 2002 17:20:59 +0000 Subject: [PATCH] - initial release - STBR Changed files: php-pear-Translation.spec -> 1.1 --- php-pear-Translation.spec | 42 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 php-pear-Translation.spec diff --git a/php-pear-Translation.spec b/php-pear-Translation.spec new file mode 100644 index 0000000..f581f47 --- /dev/null +++ b/php-pear-Translation.spec @@ -0,0 +1,42 @@ +%include /usr/lib/rpm/macros.php +%define _class Translation +%define _pearname %{_class} +Summary: %{_pearname} - class for creating multilingual websites +Summary(pl): %{_pearname} - klasa do tworzenia wielojêzycznych portali +Name: php-pear-%{_pearname} +Version: 1.2 +Release: 1 +License: PHP 2.02 +Group: Development/Languages/PHP +Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz +URL: http://pear.php.net/ +BuildRequires: rpm-php-pearprov +Requires: php-pear +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Class allows to store and retrieve all the strings on multilingual +site in the database. Class connects to any database using PHP PEAR +extension. The object should be created for every page. While creation +all the strings connected with specific page and the strings connected +with all the pages on the site are loaded into variable, so access to +them is quite fast and does not overload database server connection. + +%prep +%setup -q -c + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{_class} + +install %{_pearname}-%{version}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc %{_pearname}-%{version}/doc/* +%dir %{php_pear_dir}/%{_class} +%{php_pear_dir}/%{_class}/*.php -- 2.44.0