# # Conditional build: %bcond_without tests # do not perform "make test" # %define pdir POE %define pnam Component-IRC Summary: POE::Component::IRC - a fully event-driven IRC client module Summary(pl.UTF-8): POE::Component::IRC - moduł w pełni sterowanego zdarzeniami klienta IRC Name: perl-POE-Component-IRC Version: 6.12 Release: 1 # same as perl License: GPL v1+ or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/POE/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: db28b438ce523308ee12d0a21736502f URL: http://search.cpan.org/dist/POE-Component-IRC/ BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 %if %{with tests} BuildRequires: perl(POE::Component::Pluggable) >= 1.24 BuildRequires: perl-POE >= 0.3202 BuildRequires: perl-POE-Component-Client-DNS >= 1:0.99 BuildRequires: perl-POE-Filter-IRCD >= 1.7 BuildRequires: perl-ExtUtils-MakeMaker >= 6.42 %endif BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description POE::Component::IRC is a POE component (who'd have guessed?) which acts as an easily controllable IRC client for your other POE components and sessions. You create an IRC component and tell it what events your session cares about and where to connect to, and it sends back interesting IRC events when they happen. You make the client do things by sending it events. That's all there is to it. Cool, no? %description -l pl.UTF-8 POE::Component::IRC to komponent POE (któżby zgadł?), który funkcjonuje jako łatwo sterowalny klient IRC dla innych komponentów i sesji POE. Tworzy się komponent IRC i mówi mu, którymi zdarzeniami zajmuje się sesja oraz gdzie ma się połączyć, a on wysyła z powrotem interesujące zdarzenia IRC, kiedy wystąpią. Poprzez wysyłanie zdarzeń powoduje się, że klient wykonuje różne rzeczy. To wszystko, co trzeba zrobić. Fajnie, nie? %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} %{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_examplesdir} cp -r examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes README docs/* %{perl_vendorlib}/POE/Component/IRC.pm %dir %{perl_vendorlib}/POE/Component/IRC %{perl_vendorlib}/POE/Component/IRC/*.pm %dir %{perl_vendorlib}/POE/Component/IRC/Plugin %{perl_vendorlib}/POE/Component/IRC/Plugin/*.pm %dir %{perl_vendorlib}/POE/Component/IRC/Qnet %{perl_vendorlib}/POE/Component/IRC/Qnet/*.pm %{perl_vendorlib}/POE/Filter/IRC.pm %dir %{perl_vendorlib}/POE/Filter/IRC %{perl_vendorlib}/POE/Filter/IRC/Compat.pm %attr(755,root,root) %{_examplesdir}/%{name}-%{version} %{_mandir}/man3/*