1 %include /usr/lib/rpm/macros.php
2 %define _class Services
3 %define _subclass TwitPic
5 %define _pearname Services_TwitPic
6 Summary: %{_pearname} - PHP Interface to TwitPics API
7 Summary(pl.UTF-8): %{_pearname} - interfejs PHP do API TwitPics
8 Name: php-pear-%{_pearname}
12 Group: Development/Languages/PHP
13 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
14 # Source0-md5: 7c872e6139fca86f1aaa417c32194e46
15 URL: http://pear.php.net/package/Services_TwitPic/
16 BuildRequires: php-pear-PEAR
17 BuildRequires: rpm-php-pearprov >= 4.4.2-11
19 Requires: php-pear-HTTP_Request >= 1.4.3
20 Requires: php-pear-PEAR >= 1.4.0
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 An interface for uploading pictures to TwitPic and optionally posting
26 them (along with status messages) to Twitter as well.
28 In PEAR status of this package is: %{_status}.
30 %description -l pl.UTF-8
31 Interfejs do wgrywania zdjęć do serwisu TwitPic oraz opcjonalnie
32 wysyłanie ich (wraz z komunikatem) do serwisu Twitter.
34 Ta klasa ma w PEAR status: %{_status}.
37 Summary: Tests for PEAR::%{_pearname}
38 Summary(pl.UTF-8): Testy dla PEAR::%{_pearname}
39 Group: Development/Languages/PHP
41 Requires: %{name} = %{version}-%{release}
45 Tests for PEAR::%{_pearname}.
47 %description tests -l pl.UTF-8
48 Testy dla PEAR::%{_pearname}.
54 rm -rf $RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT%{php_pear_dir}
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
63 %doc install.log docs/Services_TwitPic/docs/example.php
64 %{php_pear_dir}/.registry/*.reg
65 %{php_pear_dir}/Services/TwitPic.php
66 %{php_pear_dir}/Services/TwitPic
69 %defattr(644,root,root,755)
70 %{php_pear_dir}/tests/Services_TwitPic