perl-Class-Trigger/perl-Class-Trigger.spec

54 lines
1.5 KiB
RPMSpec
Raw Permalink Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Class-Trigger
Version: 0.14
Release: 1mamba
Summary: Class::Trigger - Mixin to add / call inheritable triggers
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: gil <puntogil@libero.it>
URL: http://www.cpan.org
Source: http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/Class-Trigger-%{version}.tar.gz
License: GPL, Artistic
BuildRequires: perl(IO::Scalar)
BuildRequires: perl(IO::WrapTie)
BuildRequires: perl(Test::More)
BuildRequires: perl-devel
Requires: perl >= %perl_major_ver
Requires: perl(IO::Scalar)
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Class::Trigger is a mixin class to add / call triggers (or hooks) that get called at some points you specify.
%prep
%setup -q -n Class-Trigger-%{version}
%build
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
%make
%make test
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall_perl
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
chmod -R u+w %{buildroot}/*
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{perl_vendorlib}/Class/*
%{_mandir}/man3/*.3pm.gz
%doc Changes README
%changelog
* Mon Feb 21 2011 gil <puntogil@libero.it> 0.14-1mamba
- package created by autospec