%include /usr/lib/rpm/macros.php %define _class Net %define _subclass SmartIRC %define _status stable %define _pearname %{_class}_%{_subclass} Summary: %{_pearname} - IRC Client Class Summary(pl): %{_pearname} - Klasa klienta IRC Name: php-pear-%{_pearname} Version: 0.5.1 Release: 1 License: LGPL Group: Development/Languages/PHP # Source0-md5: 971f0345e49f1318d31854ea96be0a17 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz URL: http://sf.net/projects/phpsmartirc/ BuildRequires: rpm-php-pearprov >= 4.0.2-98 Provides: pear(SmartIRC/defines.php) pear(SmartIRC/messagehandler.php) Requires: php-pear BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Net_SmartIRC is a PHP class for communication with IRC networks, which conforms to the RFC 2812 (IRC protocol). It's an API that handles all IRC protocol messages. This class is designed for creating IRC bots, chats and show irc related info on webpages. Featurelist: - actionhandler for the API - messagehandler for the API - send/receive floodprotection - detects and changes nickname on nickname collisions - time events - full object oriented programmed - autoreconnect - debugging/logging system - supports fsocks and PHP socket extension - supports PHP 4.1.x to 4.3.0 - sendbuffer with priority levels - channel synching (tracking of users/modes/topic etc in variables) - IRC functions: op, deop, voice, devoice, ban, unban, join, part, action, message, query, ctcp, mode, topic, nick, invite This class has in PEAR status: %{_status}. %description -l pl Net_SmartIRC to klasa PHP do komunikacji z sieciami IRC zgodnymi z RFC 2812 (protokołem IRC). Jest to API obsługujące wszystkie komunikaty protokołu IRC. Ta klasa została zaprojektowana do tworzenia botów ircowych, chatów i pokazywania informacji związanych z ircem na stronach WWW. Lista możliwości: - obsługa akcji dla API - obsługa komunikatów dla API - zabezpieczenie przed zapchaniem przy wysyłaniu/odbieraniu - wykrywanie i zmiana pseudonimów w przypadku kolizji - zdarzenia czasowe - w pełni obiektowo zorientowane programowanie - automatyczne wznawianie połączeń - system śledzenia i logowania - obsługa rozszerzeń PHP fsocks i socket - zgodność z PHP od 4.1.x do 4.3.0 - sendbuffer z priorytetami - synchronizacja kanałów (śledzienie użytkowników/trybów/motywów w zmiennych) - funkcje IRC: op, deop, voice, devoice, ban, unban, join, part, action, message, query, ctcp, mode, topic, nick, invite. Ta klasa ma w PEAR status: %{_status}. %prep %setup -q -c %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/%{_subclass} install %{_pearname}-%{version}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class} install %{_pearname}-%{version}/SmartIRC/{defines,messagehandler}.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/%{_subclass} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc %{_pearname}-%{version}/{CHANGELOG,CREDITS,FEATURES,LICENSE,README,docs,examples} %dir %{php_pear_dir}/%{_class}/%{_subclass} %{php_pear_dir}/%{_class}/*.php %{php_pear_dir}/%{_class}/%{_subclass}/*.php