1 %define _class Services
2 %define _subclass Amazon
4 %define _pearname %{_class}_%{_subclass}
5 Summary: %{_pearname} - access to Amazon.com's web services
6 Summary(pl.UTF-8): %{_pearname} - dostęp do usług sieciowych Amazon.com
7 Name: php-pear-%{_pearname}
11 Group: Development/Languages/PHP
12 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
13 # Source0-md5: be6bd85c3b65ba571fcff9eee78ee4c8
14 URL: http://pear.php.net/package/Services_Amazon/
15 BuildRequires: php-pear-PEAR >= 1:1.4.0-0.b1
16 BuildRequires: rpm-php-pearprov >= 4.4.2-11
17 BuildRequires: rpmbuild(macros) >= 1.300
19 Requires: php-pear-HTTP_Client
20 Requires: php-pear-HTTP_Request
21 Requires: php-pear-PEAR-core
22 Requires: php-pear-XML_Serializer >= 0.17.0
23 Suggests: php-pear-Cache
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 %define _noautoreq 'pear(Cache.*)'
30 Services_Amazon uses Amazon.com's web services to allow developers to
31 search and provide associate links for specific ISBN numbers, authors,
32 artist, directors, and publishers among other things.
34 In PEAR status of this package is: %{_status}.
36 %description -l pl.UTF-8
37 Services_Amazon za pomocą usług sieciowych Amazon.com pozwala
38 deweloperom na wyszukiwanie i dostarczanie adresów m.in. dla
39 konkretnych numerów ISBN, autorów, artystów, reżyserów czy wydawców.
41 Ta klasa ma w PEAR status: %{_status}.
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT%{php_pear_dir}
52 if [ -f %{_docdir}/%{name}-%{version}/optional-packages.txt ]; then
53 cat %{_docdir}/%{name}-%{version}/optional-packages.txt
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
61 %doc install.log optional-packages.txt
62 %doc docs/%{_pearname}/*
63 %{php_pear_dir}/.registry/*.reg
64 %{php_pear_dir}/%{_class}/*.php