]>
Commit | Line | Data |
---|---|---|
97678ef0 | 1 | # |
2 | # Conditional build: | |
e210a199 | 3 | %bcond_without tests # do not perform "make test" |
97678ef0 | 4 | # |
5 | %include /usr/lib/rpm/macros.perl | |
c662c918 | 6 | %define pdir POE |
7 | %define pnam Component-IRC | |
b82726a0 | 8 | Summary: POE::Component::IRC - a fully event-driven IRC client module |
5b95f944 | 9 | Summary(pl.UTF-8): POE::Component::IRC - moduł w pełni sterowanego zdarzeniami klienta IRC |
97678ef0 | 10 | Name: perl-POE-Component-IRC |
44eadc08 | 11 | Version: 5.30 |
90ddaea6 | 12 | Release: 1 |
97678ef0 | 13 | # same as perl |
b82726a0 | 14 | License: GPL v1+ or Artistic |
97678ef0 | 15 | Group: Development/Languages/Perl |
fddcdb12 | 16 | Source0: http://www.cpan.org/modules/by-module/POE/%{pdir}-%{pnam}-%{version}.tar.gz |
44eadc08 | 17 | # Source0-md5: df69eccfc76a71415b7b2dd16afdd5f7 |
fddcdb12 | 18 | URL: http://search.cpan.org/dist/POE-Component-IRC/ |
820eb805 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
97678ef0 | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
e210a199 | 21 | %if %{with tests} |
97678ef0 | 22 | BuildRequires: perl-POE >= 0.06_07 |
90ddaea6 | 23 | BuildRequires: perl-POE-Component-Client-DNS >= 1:0.99 |
44068c12 | 24 | BuildRequires: perl-POE-Filter-IRCD |
97678ef0 | 25 | %endif |
26 | BuildArch: noarch | |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %description | |
b82726a0 JB |
30 | POE::Component::IRC is a POE component (who'd have guessed?) which |
31 | acts as an easily controllable IRC client for your other POE | |
32 | components and sessions. You create an IRC component and tell it what | |
33 | events your session cares about and where to connect to, and it sends | |
34 | back interesting IRC events when they happen. You make the client do | |
35 | things by sending it events. That's all there is to it. Cool, no? | |
97678ef0 | 36 | |
c92313d3 JR |
37 | %description -l pl.UTF-8 |
38 | POE::Component::IRC to komponent POE (któżby zgadł?), który | |
39 | funkcjonuje jako łatwo sterowalny klient IRC dla innych komponentów i | |
40 | sesji POE. Tworzy się komponent IRC i mówi mu, którymi zdarzeniami | |
41 | zajmuje się sesja oraz gdzie ma się połączyć, a on wysyła z powrotem | |
42 | interesujące zdarzenia IRC, kiedy wystąpią. Poprzez wysyłanie zdarzeń | |
43 | powoduje się, że klient wykonuje różne rzeczy. To wszystko, co trzeba | |
44 | zrobić. Fajnie, nie? | |
97678ef0 | 45 | |
46 | %prep | |
47 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
97678ef0 | 48 | |
49 | %build | |
44068c12 | 50 | %{__perl} Makefile.PL \ |
97678ef0 | 51 | INSTALLDIRS=vendor |
44068c12 | 52 | |
97678ef0 | 53 | %{__make} |
54 | ||
e210a199 | 55 | %{?with_tests:%{__make} test} |
97678ef0 | 56 | |
57 | %install | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %{__make} install \ | |
61 | DESTDIR=$RPM_BUILD_ROOT | |
62 | ||
63 | install -d $RPM_BUILD_ROOT%{_examplesdir} | |
64 | cp -r examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
65 | ||
66 | %clean | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %files | |
70 | %defattr(644,root,root,755) | |
44068c12 MP |
71 | %doc Changes README docs/* |
72 | %{perl_vendorlib}/POE/Component/IRC.pm | |
73 | %dir %{perl_vendorlib}/POE/Component/IRC | |
74 | %{perl_vendorlib}/POE/Component/IRC/*.pm | |
75 | %dir %{perl_vendorlib}/POE/Component/IRC/Plugin | |
76 | %{perl_vendorlib}/POE/Component/IRC/Plugin/*.pm | |
77 | %dir %{perl_vendorlib}/POE/Component/IRC/Qnet | |
78 | %{perl_vendorlib}/POE/Component/IRC/Qnet/*.pm | |
79 | %dir %{perl_vendorlib}/POE/Component/IRC/Test | |
80 | %{perl_vendorlib}/POE/Component/IRC/Test/*.pm | |
81 | %{perl_vendorlib}/POE/Filter/IRC.pm | |
82 | %{perl_vendorlib}/POE/Filter/CTCP.pm | |
83 | %dir %{perl_vendorlib}/POE/Filter/IRC | |
84 | %{perl_vendorlib}/POE/Filter/IRC/Compat.pm | |
85 | ||
97678ef0 | 86 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version} |
87 | %{_mandir}/man3/* |