2024-01-06 08:42:09 +01:00
|
|
|
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
|
|
|
|
Name: perl-Class-Trigger
|
2024-01-06 08:42:09 +01:00
|
|
|
Version: 0.15
|
2024-01-06 08:42:09 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: Class::Trigger - Mixin to add / call inheritable triggers
|
|
|
|
Group: System/Libraries/Perl
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-06 08:42:09 +01:00
|
|
|
Packager: Automatic Build System <autodist@mambasoft.it>
|
2024-01-06 08:42:09 +01:00
|
|
|
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
|
2024-01-06 08:42:09 +01:00
|
|
|
* Tue Apr 28 2020 Automatic Build System <autodist@mambasoft.it> 0.15-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-06 08:42:09 +01:00
|
|
|
* Mon Feb 21 2011 gil <puntogil@libero.it> 0.14-1mamba
|
|
|
|
- package created by autospec
|