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