3 %bcond_without tests # do not perform "make test"
7 Summary: Class:Trigger - mixin to add / call inheritable triggers
8 Summary(pl.UTF-8): Class:Trigger - dodawanie / wołanie wyzwalaczy umożliwiających dziedziczenie
9 Name: perl-Class-Trigger
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Class/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: b0a95ebe359a3c4e768d81fc58031c83
17 URL: http://search.cpan.org/dist/Class-Trigger/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-Class-Data-Inheritable
22 BuildRequires: perl-IO-stringy
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 Class::Trigger is a mixin class to add / call triggers (or hooks) that
29 get called at some points you specify.
31 %description -l pl.UTF-8
32 Class::Trigger jest klasą służącą do dodawania i wywoływania
33 wyzwalaczy (lub hooków), które są wywoływane w podanych miejscach.
36 %setup -q -n %{pdir}-%{pnam}-%{version}
39 %{__perl} Makefile.PL \
43 %{?with_tests:%{__make} test}
46 rm -rf $RPM_BUILD_ROOT
48 DESTDIR=$RPM_BUILD_ROOT
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
56 %{perl_vendorlib}/Class/Trigger.pm
57 %{_mandir}/man3/Class::Trigger.3pm*