2 %define _pearname Services_Twitter
3 %include /usr/lib/rpm/macros.php
4 Summary: %{_pearname} - PHP interface to Twitter's API
5 Summary(pl.UTF-8): %{_pearname} - interfejs PHP do API serwisu Twitter
6 Name: php-pear-%{_pearname}
10 Group: Development/Languages/PHP
11 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
12 # Source0-md5: d08d1e3acef4cc5db7f9a1df6f237e56
13 URL: http://pear.php.net/package/Services_Twitter/
14 BuildRequires: php-pear-PEAR >= 1:1.4.0-0.b1
15 BuildRequires: rpm-php-pearprov >= 4.4.2-11
16 BuildRequires: rpmbuild(macros) >= 1.571
18 Requires: php(mbstring)
19 Requires: php(simplexml)
21 Requires: php-pear-HTTP_Request2
22 Requires: php-pear-PEAR-core >= 1:1.4.0
23 Suggests: php-pear-HTTP_OAuth
24 Obsoletes: php-pear-Services_Twitter-tests
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 # exclude optional dependencies
29 %define _noautoreq pear(HTTP/OAuth.*)
32 An interface for communicating with Twitter's public API. Send status
33 updates, fetch information, add friends, etc.
35 In PEAR status of this package is: %{_status}.
37 %description -l pl.UTF-8
38 Interfejs umożliwiający komunikację z publicznym API serwisu Twitter.
39 Pozwala na wysyłanie aktualizacji statusów, pobieranie informacji,
40 dodawanie znajomych, itp.
42 Ta klasa ma w PEAR status: %{_status}.
48 rm -rf $RPM_BUILD_ROOT
49 install -d $RPM_BUILD_ROOT%{php_pear_dir}
53 rm -rf $RPM_BUILD_ROOT
56 %pear_package_print_optionalpackages
59 %defattr(644,root,root,755)
60 %doc install.log optional-packages.txt
61 %{php_pear_dir}/.registry/*.reg
62 %{php_pear_dir}/Services/Twitter.php
63 %{php_pear_dir}/Services/Twitter
65 %{php_pear_dir}/data/%{_pearname}