2 %define _pearname File_Bittorrent2
3 Summary: %{_pearname} - Decode and Encode data in Bittorrent format
4 Summary(pl.UTF-8): %{_pearname} - Kodowanie i dekodowanie danych w formacie Bittorrent
5 Name: php-pear-%{_pearname}
9 Group: Development/Languages/PHP
10 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
11 # Source0-md5: 32f58ecd1ed6ed397d002c26f0f343d3
12 URL: http://pear.php.net/package/File_Bittorrent2/
13 BuildRequires: php-pear-PEAR
14 BuildRequires: rpm-php-pearprov >= 4.4.2-11
15 BuildRequires: rpmbuild(macros) >= 1.300
16 Requires: php(core) >= 5.0.0
18 Obsoletes: php-pear-File_Bittorrent2-tests
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 This package consists of three classes which handles the encoding and
24 decoding of data in Bittorrent format.
26 You can also extract useful informations from .torrent files, create
27 .torrent files and query the torrent's scrape page to get its
32 In PEAR status of this package is: %{_status}.
34 %description -l pl.UTF-8
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
39 oraz pobrać statystykę ze strony danego torrenta.
41 Ta klasa ma w PEAR status: %{_status}.
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT%{php_pear_dir}
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
57 %doc docs/File_Bittorrent2/{example.php,example_mktorrent.php,install-x86-universal-2005.0.iso.torrent,scrape.php,torrentinfo.php}
58 %{php_pear_dir}/.registry/*.reg
59 %{php_pear_dir}/File/Bittorrent2