3 %bcond_without tests # do not perform "make test"
6 %define pnam Component-Pluggable
7 Summary: POE::Component::Pluggable - A base class for creating plugin-enabled POE Components
8 Summary(pl.UTF-8): POE::Component::Pluggable - klasa bazowa do tworzenia komponentów POE jako wtyczek
9 Name: perl-POE-Component-Pluggable
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://search.cpan.org/CPAN/authors/id/B/BI/BINGOS/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 989a64c6c2939a19ee5844c9d9e87047
17 URL: http://search.cpan.org/dist/POE-Component-Pluggable/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-ExtUtils-MakeMaker >= 6.42
22 BuildRequires: perl-POE >= 1.004
23 BuildRequires: perl-Task-Weaken
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 POE::Component::Pluggable is a base class for creating plugin enabled
30 POE Components. It is a generic port of POE::Component::IRC's plugin
33 If your component dispatches events to registered POE sessions, then
34 POE::Component::Pluggable may be a good fit for you.
36 %description -l pl.UTF-8
37 POE::Component::Pluggable jest klasą bazową dla tworzenia komponentów
38 POE jako wtyczek. Jest to ogólny port systemu wtyczek
42 %setup -q -n %{pdir}-%{pnam}-%{version}
45 %{__perl} Makefile.PL \
49 %{?with_tests:%{__make} test}
52 rm -rf $RPM_BUILD_ROOT
54 %{__make} pure_install \
55 DESTDIR=$RPM_BUILD_ROOT
57 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
58 cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
61 rm -rf $RPM_BUILD_ROOT
64 %defattr(644,root,root,755)
66 %{perl_vendorlib}/POE/Component/*.pm
67 %{perl_vendorlib}/POE/Component/Pluggable
69 %{_examplesdir}/%{name}-%{version}