2 %define pearname Services_ExchangeRates
3 Summary: %{pearname} - performs currency conversion
4 Summary(pl.UTF-8): %{pearname} - konwersja między walutami
5 Name: php-pear-%{pearname}
9 Group: Development/Languages/PHP
10 Source0: http://pear.php.net/get/%{pearname}-%{version}.tgz
11 # Source0-md5: 4b19b31222496c465fc3bdedc414bfbd
12 URL: http://pear.php.net/package/Services_ExchangeRates/
13 BuildRequires: php-pear-PEAR >= 1:1.9.0
14 BuildRequires: rpm-php-pearprov >= 4.4.2-11
15 BuildRequires: rpmbuild(macros) >= 1.580
17 Requires: php-pear-Cache_Lite
18 Requires: php-pear-HTTP_Request2
19 Requires: php-pear-XML_Serializer >= 0.20.0
20 Requires: php-pear-XML_Tree >= 2.0.0-0.RC2
21 Obsoletes: php-pear-Services_ExchangeRates-tests
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Extendable to work with any source that provides exchange rate data,
27 this class downloads exchange rates and the name of each currency (US
28 Dollar, Euro, Maltese Lira, etc.) and converts between any two of the
29 available currencies (the actual number of currencies supported
30 depends on the exchange rate feed used).
32 In PEAR status of this package is: %{status}.
34 %description -l pl.UTF-8
35 Ta klasa, rozszerzalna tak, żeby działała z dowolnymi źródłami danych
36 o współczynnikach wymiany, pobiera współczynniki i nazwy każdej z
37 walut (dolara amerykańskiego, euro, liry maltańskiej itp.) i
38 konwertuje pomiędzy dwiema dowolnymi z dostępnych walut (właściwa
39 liczba obsługiwanych walut zależy od używanych źródeł współczynników
42 Ta klasa ma w PEAR status: %{status}.
48 mv docs/%{pearname}/*.php examples
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT%{php_pear_dir}
55 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
56 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
64 %{php_pear_dir}/.registry/*.reg
65 %{php_pear_dir}/Services/*.php
66 %{php_pear_dir}/Services/ExchangeRates
67 %{php_pear_dir}/data/Services_ExchangeRates
68 %{_examplesdir}/%{name}-%{version}