1 %include /usr/lib/rpm/macros.php
3 %define _subclass SmartIRC
6 %define _pearname %{_class}_%{_subclass}
7 Summary: %{_pearname} - IRC Client Class
8 Summary(pl): %{_pearname} - Klasa klienta IRC
9 Name: php-pear-%{_pearname}
13 Group: Development/Languages/PHP
14 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
15 URL: http://sf.net/projects/phpsmartirc/
16 BuildRequires: rpm-php-pearprov >= 4.0.2-98
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Net_SmartIRC is a PHP class for communication with IRC networks,
23 which conforms to the RFC 2812 (IRC protocol).
24 It's an API that handles all IRC protocol messages.
25 This class is designed for creating IRC bots, chats and show irc related info on webpages.
28 - actionhandler for the API
29 - messagehandler for the API
30 - send/receive floodprotection
31 - detects and changes nickname on nickname collisions
33 - full object oriented programmed
35 - debugging/logging system
36 - supports fsocks and PHP socket extension
37 - supports PHP 4.1.x to 4.3.0
38 - sendbuffer with priority levels
39 - channel synching (tracking of users/modes/topic etc in variables)
40 - IRC functions: op, deop, voice, devoice, ban, unban, join, part, action, message, query, ctcp, mode, topic, nick, invite
42 This class has in PEAR status: %{_status}.
46 Ta klasa ma w PEAR status: %{_status}.
52 rm -rf $RPM_BUILD_ROOT
53 install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/%{_subclass}
55 install %{_pearname}-%{version}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}
56 install %{_pearname}-%{version}/SmartIRC/{defines,messagehandler}.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/%{_subclass}
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
63 %doc %{_pearname}-%{version}/%{_subclass}/{README,HOWTO,FEATURES,DOCUMENTATION,CHANGELOG,CREDITS,example*.php,docs}
64 %dir %{php_pear_dir}/%{_class}/%{_subclass}
65 %{php_pear_dir}/%{_class}/*.php
66 %{php_pear_dir}/%{_class}/%{_subclass}/*.php