]> git.pld-linux.org Git - packages/php-pear-Services_ExchangeRates.git/blob - php-pear-Services_ExchangeRates.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/php-pear-Services_ExchangeRates.git] / php-pear-Services_ExchangeRates.spec
1 %define         status          beta
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}
6 Version:        0.8.0
7 Release:        1
8 License:        PHP 2.02
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
16 Requires:       php-pear
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
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
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).
31
32 In PEAR status of this package is: %{status}.
33
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
40 wymiany).
41
42 Ta klasa ma w PEAR status: %{status}.
43
44 %prep
45 %pear_package_setup
46
47 install -d examples
48 mv docs/%{pearname}/*.php examples
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT%{php_pear_dir}
53 %pear_package_install
54
55 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
56 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %files
62 %defattr(644,root,root,755)
63 %doc install.log
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}
This page took 0.082601 seconds and 3 git commands to generate.