1 %include /usr/lib/rpm/macros.php
3 %define _subclass Bittorrent
5 %define _pearname %{_class}_%{_subclass}
7 Summary: %{_pearname} - Decode and Encode data in Bittorrent format
8 Summary(pl): %{_pearname} - Kodowanie i dekodowanie danych w formacie Bittorent
9 Name: php-pear-%{_pearname}
13 Group: Development/Languages/PHP
14 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
15 # Source0-md5: bc276a2f4119527f6da9ac28016fb374
16 URL: http://pear.php.net/package/File_Bittorrent/
17 BuildRequires: rpm-php-pearprov >= 4.4.2-11
19 Requires: php-pear-PHP_Compat >= 1.1.0
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 This package consists of two classes which handles the encoding and
25 decoding of data in Bittorrent format.
27 You can also extract useful informations from .torrent files.
30 http://m.tacker.org/pear/File_Bittorrent/example.phps
32 In PEAR status of this package is: %{_status}.
35 Ten pakiet dostarcza dwie klasy obs³uguj±ce kodowanie i dekodowanie
36 danych w formacie Bittorent.
38 Mo¿na tak¿e wydobyæ wiele przydatnych informacji z plików .torrent.
41 http://m.tacker.org/pear/File_Bittorrent/example.phps
43 Ta klasa ma w PEAR status: %{_status}.
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT%{php_pear_dir}
54 rm -rf $RPM_BUILD_ROOT
57 %defattr(644,root,root,755)
59 %doc docs/%{_pearname}/{example.php,freebsd.torrent,torrentinfo.php}
60 %{php_pear_dir}/.registry/*.reg
61 %{php_pear_dir}/%{_class}/%{_subclass}